mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Add stub .get_input_entity() to TelegramBareClient
.resolve() calls should now work even if the subclass isn't in use.
This commit is contained in:
@@ -556,6 +556,13 @@ class TelegramBareClient:
|
|||||||
(code request sent and confirmed)?"""
|
(code request sent and confirmed)?"""
|
||||||
return self._authorized
|
return self._authorized
|
||||||
|
|
||||||
|
def get_input_entity(self, peer):
|
||||||
|
"""
|
||||||
|
Stub method, no functionality so that calling
|
||||||
|
``.get_input_entity()`` from ``.resolve()`` doesn't fail.
|
||||||
|
"""
|
||||||
|
return peer
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
# region Updates handling
|
# region Updates handling
|
||||||
|
Reference in New Issue
Block a user