mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 07:06:26 +01:00
parent
1d007b1b60
commit
2cc9aac7dc
1 changed files with 1 additions and 1 deletions
|
@ -3439,7 +3439,7 @@ class Bot(TelegramObject):
|
|||
return Poll.de_json(result, self)
|
||||
|
||||
def to_dict(self):
|
||||
data = {'id': self.id, 'username': self.username, 'first_name': self.username}
|
||||
data = {'id': self.id, 'username': self.username, 'first_name': self.first_name}
|
||||
|
||||
if self.last_name:
|
||||
data['last_name'] = self.last_name
|
||||
|
|
Loading…
Reference in a new issue