-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the disk_notify wiki!
how to get bot_token and chat_id?
-
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:
12341234:ABCD39kkdpWt3ywyRZergyOLMaJhac60qc -
send a msg from your telegram to bot
// say hello to bot, so that bot can discover your chat -
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
https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot#42b6d092
-
add custom_bot (自定义机器人) to your chat group
// seems need Desktop Client; maybe mobile or web can't add that bot) -
get the bot_token (the uuid) from
Bot Betails > Webhook URL
https://open.dingtalk.com/document/robots/custom-robot-access
群聊 > 群设置 > 机器人 > 添加 自定义机器人
//安全设置, 不选加签
获得 webhook 地址 https://oapi.dingtalk.com/robot/send?access_token=AAAAAAAAAAAAAAAABBBBBBBBBBBBBCCCCCCCCCCCCCCC
结尾 access_token 的值
https://hiflow.tencent.com/docs/applications/wwx-robot/
https://developer.work.weixin.qq.com/document/path/99110#markdown%E7%B1%BB%E5%9E%8B
-
add bot to your chat group // in your wework app
-
get the bot webhook address, something like:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=AAAAAAAA-1111-2222-3333-AAAAAAAAAAAA
get the value of key=...
//push msg to wechat
get your push token (and topic) from
http://www.pushplus.plus/
http://www.pushplus.plus/push2.html
//can't push to wechat anymore, need install app
get your SPT (simple push token)
https://wxpusher.zjiecode.com/docs/#/?id=spt
//push msg to wechat
get your sendkey from
https://sct.ftqq.com/