Answer the question
In order to leave comments, you need to log in
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
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 start
that 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 questionAsk a Question
731 491 924 answers to any question