Answer the question
In order to leave comments, you need to log in
How to link to Telegram Bot with a team?
Hello, I want to make a bot in telegrams, there are three qr codes and when you go into it, a bot with a running command opens, for example, you scan a specially created qr code from an antiseptic and it goes into a bot and shows an antiseptic, then you scan, I created a qr code of greenery and open green in the bot. How can this be done?
Answer the question
In order to leave comments, you need to log in
I’ll make a reservation right away: I don’t remember if this works if the dialogue with the bot has already begun.
https://tlgrm.ru/docs/bots#deep-linking
Bots have an external linking mechanism that allows you to pass additional parameters at startup. For example, to transfer the user's authorization token in order to connect his account with some external service.
Each robot has a link with which you can start a dialogue with it - https://t.me/<имя бота>
. You can add parameters to this link, *start
or startgroup
with a value of up to 64 characters. Example:
https://t.me/triviabot?startgroup=test
The characters allowed are AZ, az, 0-9, _ and -. We recommend using base64url to encode parameters.
Following the link with the start parameter will start a chat with the bot, while the START button will be displayed in the text input field. When clicking on a link with the startgroup parameter, the user will be prompted to add the bot to one of the available groups. As soon as the user confirms his action (presses the START button or selects a group), the bot will receive a message in the following format:
/start PAYLOAD
PAYLOAD will contain the value of the start or startgroup parameter that was passed in the link.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question