mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added 3 missing content types
This commit is contained in:
parent
f2e02e2a7c
commit
0f8fcbecab
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue