mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix opposite condition
This commit is contained in:
@@ -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
|
||||||
)):
|
)):
|
||||||
|
Reference in New Issue
Block a user