- Create a bot by contacting @BotFather.
- Create a new channel or group.
- Add the bot you created.
- Open the settings of a repository.
- Go to the Webhooks tab.
- Click Add webhook.
- Set the Payload URL to
https://ghb.deno.dev/?token=your_bot_token&chatId=your_chat_id
- Set the Content type to
application/json
. - Choose Send me everything.
- Click Add webhook.