We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f23d6f commit 30a4125Copy full SHA for 30a4125
1 file changed
telebot/formatting.py
@@ -425,7 +425,7 @@ def format_entity(entity, content):
425
elif entity_type == "text_link" and hasattr(entity, 'url'):
426
return _subs["text_link"].format(url=entity.url, text=content)
427
elif entity_type == "custom_emoji" and hasattr(entity, 'custom_emoji_id'):
428
- return _subs["custom_emoji"].format(emoji_id=entity.emoji_id, content=content)
+ return _subs["custom_emoji"].format(emoji_id=entity.custom_emoji_id, content=content)
429
elif entity_type == "date_time" and hasattr(entity, 'unix_time') and hasattr(entity, 'date_time_format'):
430
return _subs["date_time"].format(unix=entity.unix_time, date_time_format=entity.date_time_format, content=content)
431
elif entity_type == "pre" and hasattr(entity, 'language') and entity.language:
0 commit comments