mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +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)?"""
|
||||
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
|
||||
|
||||
# region Updates handling
|
||||
|
Reference in New Issue
Block a user