H
H
Head Hunter2021-02-17 01:26:41
Web development
Head Hunter, 2021-02-17 01:26:41

How to make a link from the site to the bot with sending a message?

Greetings to the people - who can tell if there is such an opportunity for the telegram to make a link to the bot from the site so that the bot opens and some kind of message is automatically sent?!
Example.
https://t.me/BotName?messageSend=tra-ta-ta

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex K, 2021-02-17
@alexk111

No, you can't send the message explicitly. But it is possible to preserve ready-made messages (or message templates) in the bot, and specify them with the parameter startthat is passed to the bot when the user clicks the Start button.
For example, for: https://t.me/BotName?start=tra-ta-ta after pressing `Start` - the message '/start tra-ta-ta' will fly to the bot. Retrieve the id after `/start ` and send back the message corresponding to that id.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question