Welcome to AvirA
Join this amazing community.
Register now

#espDX2 Как добавить бота в Telegram/How to add Telegram bot.

Status
Not open for further replies.

Support

Administrator
Staff member
Nov 29, 2024
112
4
18
🇷🇺 Что бы добавить бота для уведомлений вам понадобится:
1. Создать telegram бота (Как создать бота можно найти в google) взять его TOKEN (выглядит примерно так 1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef1234567890 )

2. Создать telegram канал и добавить созданного вами бота в этот канал ( Что бы добавить бота, откройте свой канал, перейдите в раздел "Администраторы", нажмите "Добавить администратора", найдите бота, введя его имя (например, @example_bot), выберите бота и подтвердите добавление.).

3. После добавления бота скопируйте свой chat ID, (как это сделать можно найти в гугл) проще всего найти его можно в web версии telegram. Выберите канал оповещения и обратите внимание на ссылку в адресной строке. Например https://web.telegram.org/a/#-10099999999999 Нам нужно -10099999999999

4. Берем значение YOUR_BOT_TOKEN и YOUR_CHAT_ID и вставляем в файле default в папке CFG.
Если все сделано правильно должно выглядеть так:
[TelegramBot]
YOUR_BOT_TOKEN=1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef1234567890
YOUR_CHAT_ID=-10099999999999

5. Заходим в раздел Walkbot и нажимаем "Тестовое сообщение" если все сделано правильно, бот в телеграм напишет "is Alive"


🇺🇸 To add a bot for notifications you will need:
1. Create a telegram bot (How to create a bot can be found in google) take its TOKEN (looks like this 1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef1234567890 ).

2. Create a telegram channel and add the bot you created to that channel ( To add a bot, open your channel, go to the “Admins” section, click “Add Admin”, find the bot by entering its name (for example, @example_bot), select the bot and confirm the addition).

3. After adding the bot, copy your chat ID, (how to do this can be found on google) the easiest way to find it is in the web version of telegram. Select the notification channel and pay attention to the link in the address bar. For example https://web.telegram.org/a/#-10099999999999 We need -10099999999999

4. Take the value of YOUR_BOT_TOKEN and YOUR_CHAT_ID and insert it into the default file in the CFG folder.
If everything is done correctly, it should look like this:
[TelegramBot]
YOUR_BOT_TOKEN=1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef1234567890
YOUR_CHAT_ID=-10099999999999

5. Go to the Walkbot section and click “Test Message” if everything is done correctly, the bot will write “is Alive” in Telegram
 
Last edited:
Status
Not open for further replies.