telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

Question about Contact Update

Open MarioGattolla opened this issue 4 months ago • 1 comments

Hello, I created a webhook to receive updates from users. A user sent a contact to the bot's private chat, and I received this data (private information has been changed for privacy) : { "update_id": 111, "message": { "message_id": 111, "from": { "id": 11111, "is_bot": false, "first_name": null, "language_code": "ru" }, "chat": { "id": 1111, "first_name": null, "type": "private" }, "date": 1757477109, "contact": { "phone_number": "1111", "first_name": null, "user_id": 11111 } } }

As stated in the documentation, the “from.first_name” field and the “contact.first_name” field cannot be null. Any idea? Thank you very much for your help.

MarioGattolla avatar Sep 11 '25 08:09 MarioGattolla