Answer the question
In order to leave comments, you need to log in
Why messages only come to one Telegram bot instance?
Created a bot in Telegram (via Botfather). I send messages to it from the computer with the following line:
https://api.telegram.org/bot<Token>/sendMessage?chat_id=<ChatID>&text=Hello.
Answer the question
In order to leave comments, you need to log in
Understood. For those who are interested:
1. Create a bot through Botfather, press START. During the creation process, BotFather will issue a unique Token.
2. In the browser, execute
https://api.telegram.org/bot[ТОКЕН_БОТА]/getUpdates
, find the chat id. https://api.telegram.org/bot[ТОКЕН_БОТА]/sendMessage?chat_id=[ChatID]&text=Hello.
https://api.telegram.org/bot[ТОКЕН_БОТА]/[email protected][USERNAME_ГРУППЫ]&text=тест
, we get the group id (it is negative). https://api.telegram.org/bot[ТОКЕН_БОТА]/[email protected][ID_КАНАЛА]&text=тест
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question