mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
Merge branch 'dev-1.x' of github.com:aiogram/aiogram into dev-1.x
This commit is contained in:
commit
483c1b295d
1 changed files with 4 additions and 0 deletions
|
|
@ -100,6 +100,8 @@ class Message(base.TelegramObject):
|
|||
return ContentType.VENUE[0]
|
||||
if self.new_chat_members:
|
||||
return ContentType.NEW_CHAT_MEMBERS[0]
|
||||
if self.left_chat_member:
|
||||
return ContentType.LEFT_CHAT_MEMBER[0]
|
||||
if self.invoice:
|
||||
return ContentType.INVOICE[0]
|
||||
if self.successful_payment:
|
||||
|
|
@ -655,6 +657,7 @@ class ContentType(helper.Helper):
|
|||
:key: LOCATION
|
||||
:key: VENUE
|
||||
:key: NEW_CHAT_MEMBERS
|
||||
:key: LEFT_CHAT_MEMBER
|
||||
:key: INVOICE
|
||||
:key: SUCCESSFUL_PAYMENT
|
||||
"""
|
||||
|
|
@ -673,6 +676,7 @@ class ContentType(helper.Helper):
|
|||
LOCATION = helper.ListItem() # location
|
||||
VENUE = helper.ListItem() # venue
|
||||
NEW_CHAT_MEMBERS = helper.ListItem() # new_chat_member
|
||||
LEFT_CHAT_MEMBER = helper.ListItem() # left_chat_member
|
||||
INVOICE = helper.ListItem() # invoice
|
||||
SUCCESSFUL_PAYMENT = helper.ListItem() # successful_payment
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue