Merge pull request #14 from surik00/dev-1.x

Message CONNECTED_WEBSITE content type
This commit is contained in:
Alex Root Junior 2018-02-16 21:20:22 +02:00 committed by GitHub
commit 20c9f8e030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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