Advertisement
para_bellum

DafangHack Telegram bot

Jul 24th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. 1. First create a bot [https://www.alphr.com/telegram-create-bot/] on Telegram:
  2. - Create a chat with @BotFather
  3. - /newbot
  4. - Keep the API key given by BotFather.
  5.  
  6. 2. Create a group chat with your new bot and send a first message to initiate the conversation.
  7. 3. Add @getidsbot to the chat, it will give you the chat ID.
  8. 4. In the Dafang web interface, go to "Settings > Network Services > Telegram" and input both API key and chat ID (including the minus sign if any!).
  9. 5. Go to "Settings > Motion Detection > Notifications" and set the Telegram settings you like.
  10. 6. Go to "Control System" and enable the "Telegram Bot" service.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement