mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-07 20:42:32 +00:00
Upgrade to layer 75
Captions are now "messages" and also support message entities.
This commit is contained in:
@@ -222,10 +222,8 @@ class InteractiveTelegramClient(TelegramClient):
|
||||
# Format the message content
|
||||
if getattr(msg, 'media', None):
|
||||
self.found_media[msg.id] = msg
|
||||
# The media may or may not have a caption
|
||||
caption = getattr(msg.media, 'caption', '')
|
||||
content = '<{}> {}'.format(
|
||||
type(msg.media).__name__, caption)
|
||||
type(msg.media).__name__, msg.message)
|
||||
|
||||
elif hasattr(msg, 'message'):
|
||||
content = msg.message
|
||||
|
Reference in New Issue
Block a user