mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +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]
|
return ContentType.INVOICE[0]
|
||||||
if self.successful_payment:
|
if self.successful_payment:
|
||||||
return ContentType.SUCCESSFUL_PAYMENT[0]
|
return ContentType.SUCCESSFUL_PAYMENT[0]
|
||||||
|
if self.connected_website:
|
||||||
|
return ContentType.CONNECTED_WEBSITE[0]
|
||||||
else:
|
else:
|
||||||
return ContentType.UNKNOWN[0]
|
return ContentType.UNKNOWN[0]
|
||||||
|
|
||||||
|
|
@ -680,6 +682,7 @@ class ContentType(helper.Helper):
|
||||||
LEFT_CHAT_MEMBER = helper.ListItem() # left_chat_member
|
LEFT_CHAT_MEMBER = helper.ListItem() # left_chat_member
|
||||||
INVOICE = helper.ListItem() # invoice
|
INVOICE = helper.ListItem() # invoice
|
||||||
SUCCESSFUL_PAYMENT = helper.ListItem() # successful_payment
|
SUCCESSFUL_PAYMENT = helper.ListItem() # successful_payment
|
||||||
|
CONNECTED_WEBSITE = helper.ListItem() # connected_website
|
||||||
|
|
||||||
UNKNOWN = helper.ListItem() # unknown
|
UNKNOWN = helper.ListItem() # unknown
|
||||||
ANY = helper.ListItem() # any
|
ANY = helper.ListItem() # any
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue