Skip to content

Commit 30a4125

Browse files
committed
Fix
1 parent 5f23d6f commit 30a4125

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telebot/formatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def format_entity(entity, content):
425425
elif entity_type == "text_link" and hasattr(entity, 'url'):
426426
return _subs["text_link"].format(url=entity.url, text=content)
427427
elif entity_type == "custom_emoji" and hasattr(entity, 'custom_emoji_id'):
428-
return _subs["custom_emoji"].format(emoji_id=entity.emoji_id, content=content)
428+
return _subs["custom_emoji"].format(emoji_id=entity.custom_emoji_id, content=content)
429429
elif entity_type == "date_time" and hasattr(entity, 'unix_time') and hasattr(entity, 'date_time_format'):
430430
return _subs["date_time"].format(unix=entity.unix_time, date_time_format=entity.date_time_format, content=content)
431431
elif entity_type == "pre" and hasattr(entity, 'language') and entity.language:

0 commit comments

Comments
 (0)