Skip to content

How to get a user who pressed a button? #623

Description

@AnFox

My bot replies to a message with his answer and a button with some action on it.
There are several users in the chat, and I wonder how I get the user who pressed this button in the action method.

Activity

  1. fabio-ivona commented on Aug 26, 2024

    @fabio-ivona
    Member

    You can retrieve user information from the $callbackQuery property in your Webhook Handler

    then I think you can store the telegram user ID in your application user model

  2. locked and limited conversation to collaborators on Aug 26, 2024
  3. converted this issue into a discussion #625 on Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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