Swap around checking of VENUE and LOCATION content

This commit is contained in:
Olegt0rr 2018-03-25 10:56:07 +03:00 committed by GitHub
parent 4e7ab9c16d
commit c144156f43
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] return ContentType.VOICE[0]
if self.contact: if self.contact:
return ContentType.CONTACT[0] return ContentType.CONTACT[0]
if self.location:
return ContentType.LOCATION[0]
if self.venue: if self.venue:
return ContentType.VENUE[0] return ContentType.VENUE[0]
if self.location:
return ContentType.LOCATION[0]
if self.new_chat_members: if self.new_chat_members:
return ContentType.NEW_CHAT_MEMBERS[0] return ContentType.NEW_CHAT_MEMBERS[0]
if self.left_chat_member: if self.left_chat_member: