mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 14:25:55 +00:00
Merge remote-tracking branch 'pyrogram/develop' into session_storage
This commit is contained in:
@@ -1092,7 +1092,7 @@ class Client(Methods, BaseClient):
|
||||
|
||||
if include is None:
|
||||
for path in sorted(Path(root).rglob("*.py")):
|
||||
module_path = os.path.splitext(str(path))[0].replace("/", ".")
|
||||
module_path = '.'.join(path.parent.parts + (path.stem,))
|
||||
module = import_module(module_path)
|
||||
|
||||
for name in vars(module).keys():
|
||||
|
@@ -63,7 +63,7 @@ class InlineKeyboardButton(PyrogramType):
|
||||
callback_game: CallbackGame = None):
|
||||
super().__init__(None)
|
||||
|
||||
self.text = text
|
||||
self.text = str(text)
|
||||
self.url = url
|
||||
self.callback_data = callback_data
|
||||
self.switch_inline_query = switch_inline_query
|
||||
|
@@ -46,7 +46,7 @@ class KeyboardButton(PyrogramType):
|
||||
request_location: bool = None):
|
||||
super().__init__(None)
|
||||
|
||||
self.text = text
|
||||
self.text = str(text)
|
||||
self.request_contact = request_contact
|
||||
self.request_location = request_location
|
||||
|
||||
|
Reference in New Issue
Block a user