Bots and Webhooks
telegram-bot
- to send messages on telegram channel using telegram-api, with bot-account
flow
-
create bot using
bot_father, and save the access_token- edit bot's permission to give it ability to interact with
channels
- edit bot's permission to give it ability to interact with
-
create a new private-channel
-
add new_bot as
adminin new_channel- try adding using mobile-phone, if unable to do from web
-
remove
excess permissions, keep only related topost_message -
send message to channel using bot-api by providing
channel_idin query param or as json_payload
always prefix channel_id with
-100
sample
refer
discord-webhook
flow
- create new channel, and then click on edit-channel
- click on integration and then click webhooks
- click
new-webhookand copy the url
sample
Send webhook on a thread