Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Question about Contact Update #778

@MarioGattolla

Description

@MarioGattolla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions