Add new is_bot method to check if the logged-in user is a bot

This commit is contained in:
Lonami Exo
2018-12-24 17:32:34 +01:00
parent ab557a8cef
commit f16ed8235c
3 changed files with 13 additions and 0 deletions

View File

@@ -289,6 +289,7 @@ class TelegramBaseClient(abc.ABC):
# Sometimes we need to know who we are, cache the self peer
self._self_input_peer = None
self._bot = None
# endregion