Add "emoji_ascii" option to control if emojis are converted to ASCII emoticons
patch 0bfa5e100cf36ddf987dd40df98b4fdbaa90728f
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sat Apr 29 20:47:52 CEST 2023
* Add "emoji_ascii" option to control if emojis are converted to ASCII emoticons
hunk ./irgramd 75
+ tornado.options.define('emoji_ascii', default=False, help='Replace emoji with ASCII emoticons')
hunk ./telegram.py 26
-from emoji2emoticon import emo
+import emoji2emoticon as e
hunk ./telegram.py 51
+ if not settings['emoji_ascii']:
+ e.emo = {}
hunk ./telegram.py 402
- react_icon = emo[emoji] if emoji in emo else emoji
+ react_icon = e.emo[emoji] if emoji in e.emo else emoji