Skip to content

Commit 45e9832

Browse files
artgas1chigwell
andauthored
Update telegram_mcp/tools/messages.py
Co-authored-by: Eugene Evstafev <36392751+chigwell@users.noreply.github.com>
1 parent 54d499c commit 45e9832

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telegram_mcp/tools/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_media_label(msg) -> str:
1313
msg.message but the media stays in msg.media).
1414
"""
1515
try:
16-
# Веб-превью ссылки — НЕ вложение. Проверяем ПЕРВЫМ: у сообщения со
16+
# Link web preview is NOT an attachment. Check it FIRST: for a message with a
1717
# ссылкой Telethon отдаёт картинку превью через msg.photo, иначе она
1818
# ложно пометилась бы как "photo".
1919
if getattr(msg, "web_preview", None) is not None:

0 commit comments

Comments
 (0)