mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 21:24:35 +03:00
Fix opposite condition
This commit is contained in:
parent
cedf90eb57
commit
0f5f6cc050
|
@ -410,7 +410,10 @@ class Message:
|
||||||
"""
|
"""
|
||||||
Returns the total button count.
|
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, (
|
self.original_message.reply_markup, (
|
||||||
types.ReplyInlineMarkup, types.ReplyKeyboardMarkup
|
types.ReplyInlineMarkup, types.ReplyKeyboardMarkup
|
||||||
)):
|
)):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user