Skip to content

Bot dict return wrong value for first_name #1519

@ARSujonID

Description

@ARSujonID

Steps to reproduce

  1. from telegram import Bot

  2. bot: Bot = Bot(token='708626524:abc-token')

  3. print(bot.to_dict())

Expected behaviour

{'id': 708626524, 'username': 'for_testx_bot', 'first_name': 'For Test'}

Actual behaviour

{'id': 708626524, 'username': 'for_testx_bot', 'first_name': 'for_testx_bot'}

Configuration

Microsoft Windows [Version 10.0.16299.15]
(c) 2017 Microsoft Corporation. All rights reserved.

(venv) E:\Working\Running_Projects\abc>python -m telegram
python-telegram-bot 12.1.1
certifi 2019.09.11
future 0.17.1
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)]

More Info

bot_issue

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions