From 69277400b76b2cf67c581657f5af1a7c1b4b8a4b Mon Sep 17 00:00:00 2001 From: Andrea Barbagallo Date: Sun, 30 Jan 2022 17:53:55 +0100 Subject: [PATCH] The output of get_me() is already an User object --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 7695a8a..c1948a3 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -223,7 +223,7 @@ class TeleBot: Equivalent to bot.get_me() but the result is cached so only one API call is needed """ if not hasattr(self, "_user"): - self._user = types.User.de_json(self.get_me()) + self._user = self.get_me() return self._user def enable_save_next_step_handlers(self, delay=120, filename="./.handler-saves/step.save"):