Fix opposite condition

This commit is contained in:
Lonami Exo 2018-06-28 15:50:26 +02:00
parent cedf90eb57
commit 0f5f6cc050

View File

@ -410,7 +410,10 @@ class Message:
"""
Returns the total button count.
"""
if self._buttons_count is not None and isinstance(
if not isinstance(self.original_message, types.Message):
return 0
if self._buttons_count is None and isinstance(
self.original_message.reply_markup, (
types.ReplyInlineMarkup, types.ReplyKeyboardMarkup
)):