mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
Merge pull request #14 from surik00/dev-1.x
Message CONNECTED_WEBSITE content type
This commit is contained in:
commit
20c9f8e030
1 changed files with 3 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ class Message(base.TelegramObject):
|
|||
return ContentType.INVOICE[0]
|
||||
if self.successful_payment:
|
||||
return ContentType.SUCCESSFUL_PAYMENT[0]
|
||||
if self.connected_website:
|
||||
return ContentType.CONNECTED_WEBSITE[0]
|
||||
else:
|
||||
return ContentType.UNKNOWN[0]
|
||||
|
||||
|
|
@ -680,6 +682,7 @@ class ContentType(helper.Helper):
|
|||
LEFT_CHAT_MEMBER = helper.ListItem() # left_chat_member
|
||||
INVOICE = helper.ListItem() # invoice
|
||||
SUCCESSFUL_PAYMENT = helper.ListItem() # successful_payment
|
||||
CONNECTED_WEBSITE = helper.ListItem() # connected_website
|
||||
|
||||
UNKNOWN = helper.ListItem() # unknown
|
||||
ANY = helper.ListItem() # any
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue