zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.09k stars 85 forks source link

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

Closed BlindingDark closed 1 year ago

BlindingDark commented 1 year ago

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 commented 1 year ago

Merged in, thanks!