Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Unanswered
AnFox asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 1 comment

Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #623 on August 26, 2024 06:59.

AltStyle によって変換されたページ (->オリジナル) /