Closed AnFox closed 1 month ago
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 can retrieve user information from the $callbackQuery property in your Webhook Handler
$callbackQuery
then I think you can store the telegram user ID in your application user model
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.