mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-11 19:40:36 +00:00
Update message to include ttl_period
This commit is contained in:
@@ -114,7 +114,8 @@ class NewMessage(EventBuilder):
|
||||
fwd_from=update.fwd_from,
|
||||
via_bot_id=update.via_bot_id,
|
||||
reply_to=update.reply_to,
|
||||
entities=update.entities
|
||||
entities=update.entities,
|
||||
ttl_period=update.ttl_period
|
||||
))
|
||||
elif isinstance(update, types.UpdateShortChatMessage):
|
||||
event = cls.Event(types.Message(
|
||||
@@ -130,7 +131,8 @@ class NewMessage(EventBuilder):
|
||||
fwd_from=update.fwd_from,
|
||||
via_bot_id=update.via_bot_id,
|
||||
reply_to=update.reply_to,
|
||||
entities=update.entities
|
||||
entities=update.entities,
|
||||
ttl_period=update.ttl_period
|
||||
))
|
||||
else:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user