Merge pull request #27 from Olegt0rr/patch-3

Swap around checking of VENUE and LOCATION content
This commit is contained in:
Alex Root Junior 2018-03-25 14:21:31 +03:00 committed by GitHub
commit 014271c139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,10 +95,10 @@ class Message(base.TelegramObject):
return ContentType.VOICE[0]
if self.contact:
return ContentType.CONTACT[0]
if self.location:
return ContentType.LOCATION[0]
if self.venue:
return ContentType.VENUE[0]
if self.location:
return ContentType.LOCATION[0]
if self.new_chat_members:
return ContentType.NEW_CHAT_MEMBERS[0]
if self.left_chat_member: