Added 3 missing content types

This commit is contained in:
Groosha 2022-05-10 22:56:24 +03:00
parent f2e02e2a7c
commit 0f8fcbecab

View file

@ -250,8 +250,14 @@ class Message(TelegramObject):
return ContentType.DELETE_CHAT_PHOTO return ContentType.DELETE_CHAT_PHOTO
if self.group_chat_created: if self.group_chat_created:
return ContentType.GROUP_CHAT_CREATED return ContentType.GROUP_CHAT_CREATED
if self.supergroup_chat_created:
return ContentType.SUPERGROUP_CHAT_CREATED
if self.channel_chat_created:
return ContentType.CHANNEL_CHAT_CREATED
if self.passport_data: if self.passport_data:
return ContentType.PASSPORT_DATA return ContentType.PASSPORT_DATA
if self.proximity_alert_triggered:
return ContentType.PROXIMITY_ALERT_TRIGGERED
if self.poll: if self.poll:
return ContentType.POLL return ContentType.POLL
if self.dice: if self.dice:
@ -1900,7 +1906,10 @@ class ContentType(helper.Helper):
NEW_CHAT_PHOTO = helper.Item() # new_chat_photo NEW_CHAT_PHOTO = helper.Item() # new_chat_photo
DELETE_CHAT_PHOTO = helper.Item() # delete_chat_photo DELETE_CHAT_PHOTO = helper.Item() # delete_chat_photo
GROUP_CHAT_CREATED = helper.Item() # group_chat_created GROUP_CHAT_CREATED = helper.Item() # group_chat_created
SUPERGROUP_CHAT_CREATED = helper.Item() # supergroup_chat_created
CHANNEL_CHAT_CREATED = helper.Item() # channel_chat_created
PASSPORT_DATA = helper.Item() # passport_data PASSPORT_DATA = helper.Item() # passport_data
PROXIMITY_ALERT_TRIGGERED = helper.Item() # proximity_alert_triggered
POLL = helper.Item() # poll POLL = helper.Item() # poll
DICE = helper.Item() # dice DICE = helper.Item() # dice
MESSAGE_AUTO_DELETE_TIMER_CHANGED = helper.Item() # message_auto_delete_timer_changed MESSAGE_AUTO_DELETE_TIMER_CHANGED = helper.Item() # message_auto_delete_timer_changed