1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Badiboy
80cf5d8d5b
Merge pull request #1427 from barbax7/user
The output of get_me() is already an User object
2022-01-30 19:56:19 +03:00
Andrea Barbagallo
69277400b7 The output of get_me() is already an User object 2022-01-30 17:53:55 +01:00

View File

@ -223,7 +223,7 @@ class TeleBot:
Equivalent to bot.get_me() but the result is cached so only one API call is needed Equivalent to bot.get_me() but the result is cached so only one API call is needed
""" """
if not hasattr(self, "_user"): if not hasattr(self, "_user"):
self._user = types.User.de_json(self.get_me()) self._user = self.get_me()
return self._user return self._user
def enable_save_next_step_handlers(self, delay=120, filename="./.handler-saves/step.save"): def enable_save_next_step_handlers(self, delay=120, filename="./.handler-saves/step.save"):