A
A
Alexander2019-10-01 16:57:29
PHP
Alexander, 2019-10-01 16:57:29

How to send data from Telegram Bot to the site?

There is a site in PHP, in which users exchange messages in topics. Each new message in a topic is sent to users subscribed to the topic in the telegram bot.
When a user opens a topic, he sees unread comments that he has already read in the bot.
In order for comments to be marked as read, I need to send data from the bot to the site, but I don’t quite understand how to do this. If I add an "inline_keyboard" button to each message sent to the chat and specify a url for it, then when I click, telegram offers to go to this url, and I need to send a request to this address and get a response.
How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2019-10-01
@vaserguy

you need to specify not url, but callback_data
api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question