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:
Lonami Exo 2018-01-19 11:52:44 +01:00
parent 1c9fa76ede
commit f6d98a61cf

View File

@ -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