Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[telega-bridge-bot] fix: get text without format #418

Merged
merged 1 commit into from
Jun 18, 2023

Conversation

BlindingDark
Copy link
Contributor

Username may not be a plain string, for example

#("     " 0 2 (telega-display "𝐿") 2 4 (telega-display "𝑢") 4 6 (telega-display "𝑐") 6 8 (telega-display "𝑖") 8 10 (telega-display "𝑢") 10 12 (telega-display "𝑠"))

This can cause problems since we use it as a hash table key.
So here we use (telega-tl-str content-text :text 'no-props) to get the string without props.

@zevlg zevlg merged commit 9da96ed into zevlg:master Jun 18, 2023
2 checks passed
@zevlg
Copy link
Owner

zevlg commented Jun 18, 2023

Merged in, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants