A
A
Alexander2019-10-22 11:31:24
PHP
Alexander, 2019-10-22 11:31:24

How to request a comment from the user in telegram after clicking on the inline button?

I send a message to the user in a chat with an inline keyboard of two buttons:
1. When you click on the first one, some information is sent to the server. There are no problems with this.
2. When you click on the second button, you need to somehow get a comment from the user.
Can you please tell me if there is any way to implement this? So that, for example, some form for entering a comment appears.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Enj0y, 2019-10-22
@Enj0y

Yes, you can, by pressing the second button, send a message and the ForceReply keyboard, and then catch the message, and it will contain the reply_to_message parameter, which will contain the message that the user answered and are already processing it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question