From c144156f43a339170be1d9fb2c7a9e62f7f9478a Mon Sep 17 00:00:00 2001 From: Olegt0rr Date: Sun, 25 Mar 2018 10:56:07 +0300 Subject: [PATCH] Swap around checking of VENUE and LOCATION content --- aiogram/types/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 5b267a6b..d3ee1833 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -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: