Webhook Format: Telegram
When format is set to telegram, incoming emails are sent to a Telegram chat via the Bot API. This format requires a bot token in the URL and a chat_id option.
Get the Bot Token and Chat ID
Section titled “Get the Bot Token and Chat ID”Create a Bot
Section titled “Create a Bot”- Open Telegram and search for @BotFather.
- Send
/newbotand follow the instructions. - Copy the bot token:
1234567890:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi
Find the Chat ID
Section titled “Find the Chat ID”- Send any message to your bot.
- Open
https://api.telegram.org/bot{TOKEN}/getUpdates. - Find the
chat.idvalue in the response.
Configure in echoValue
Section titled “Configure in echoValue”curl 'https://api.echovalue.dev/webhook' \ -H 'x-token: mytoken' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://api.telegram.org/bot1234567890:ABCDEFGHIJKLMN/sendMessage", "format": "telegram", "options": { "chat_id": "123456789" } }'Output Preview
Section titled “Output Preview”<b>Subject line</b>From: Sender Name <sender@example.com>Email body text