Update message to include ttl_period

This commit is contained in:
Lonami Exo
2021-02-23 19:42:09 +01:00
parent 2c2a07d02f
commit 0d05d0d8f5
3 changed files with 14 additions and 3 deletions

View File

@@ -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