mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Actually add callbacks registered through Button
This commit is contained in:
@@ -29,6 +29,11 @@ class Button:
|
||||
self.callback = callback
|
||||
self.is_inline = self._is_inline(button)
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
if isinstance(self.button, types.KeyboardButtonCallback):
|
||||
return self.button.data
|
||||
|
||||
@classmethod
|
||||
def _is_inline(cls, button):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user