mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 21:44:51 +00:00
Merge remote-tracking branch 'pyrogram/develop' into session_storage
This commit is contained in:
commit
5874e521ba
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue