E
E
Evgeny2021-10-08 22:24:34
PHP
Evgeny, 2021-10-08 22:24:34

How can I make the bot see an empty inline request?

The bottom line is this - the user writes a message through an inline request, but when requested, you can not send anything. In this case, I made a conditional operator that checks requests - if they contain text, then the bot sends a message, otherwise the bot writes that there is no message. Requests with text are saved in the database and retrieved from there, they can be easily checked, but empty requests are saved only if you start writing something, which can be seen in the screenshot below.

61609ab6e84cf816010693.png

If you send a request with text and after it an empty request, the text from the first request

I hope I explained everything correctly

61609ac77a595269792006.png
61609ad187e5b530928289.png
61609ad912000360821866.png
61609ae11a14c297149134.png
61609ae84132a249641868.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question