Skip to content
yurenchen000 edited this page Oct 22, 2024 · 4 revisions

Welcome to the disk_notify wiki!

backends

telegram

how to get bot_token and chat_id?

  1. create your bot & get bot_token
    https://core.telegram.org/bots#how-do-i-create-a-bot
    @BotFather will send you bot_token like this:
    4839574812:AAFD39kkdpWt3ywyRZergyOLMaJhac60qc

  2. send a msg from your telegram to bot
    // say hello to bot, so that bot can discover your chat

  3. get chat_id via http api
    https://core.telegram.org/bots/api#getupdates
    BOT_TOKEN='put your bot token'
    curl -s "https://api.telegram.org/bot$BOT_TOKEN/getUpdates" | jq
    pick the .chat.id from result json

feishu

https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot#42b6d092

  1. add custom_bot (自定义机器人) to your chat group
    // seems need Desktop Client; maybe mobile or web can't add that bot)

  2. get the bot_token (the uuid) from Bot Betails > Webhook URL

Clone this wiki locally