mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-14 19:48:57 +01:00
Fixes base_url when pickling object
This commit is contained in:
parent
66b3f8bbd3
commit
3974690b90
1 changed files with 2 additions and 1 deletions
|
@ -675,4 +675,5 @@ class Bot(TelegramObject):
|
|||
return data
|
||||
|
||||
def __reduce__(self):
|
||||
return (self.__class__, (self.token, self.base_url))
|
||||
return (self.__class__, (self.token,
|
||||
self.base_url.replace(self.token, '')))
|
||||
|
|
Loading…
Add table
Reference in a new issue