Telegram is a cloud-based mobile and desktop messaging app.
- VMR receives SMTP email.
- VMR sends HTTPS request to Telegram bot to send message to chat group.
Please follow the following configuration steps.
- Launch Telegram.
- Search @botfather to send message to it.
This is a bot used to create other bots. - Type /newbot to create a new bot.
- Give your new bot a name and user name.
- Once created, your bot will have a token string in the form of “111111111:AAAAAAA”.
Take note of the token string as VMR will use it to control the bot.
- Create a new group in Telegram.
This group will receive VMR alerts. - Add your bot to the chat group.
- Name the group.
- Add contacts to this group.
- Add @RawDataBot to this group.
This bot will reply with the group chat_id.
Take note of this chat_id. - Get each contact to send a message to your new bot so that the bot can send message to them in a group.
- From VMR’s web interface, access Outbound Profiles > HTTP Profiles.
- Create a new HTTP Profile.
- Profile name: Telegram bot
- Type: GET
- Base URL: https://api.telegram.org/bot<%newbot_tokenstring%>/sendMessage.
Replace <%newbot_tokenstring%> with your new bot’s token string. - Key/Value: chat_id / <%chat_id%>
Replace <%chat_id%> with your group chat_id - Key/Value: text={MessageText}
- From VMR’s web interface, access Message Processing > Transmission Actions
- Create a new Transmission Action
- Action Name: Telegram bot action
- Delivery Method: HTTP
- Use Cellular Data: Check if Telegram will be sent using cellular data
- HTTP Profiles: Check “Telegram bot” created in the last step.
- From VMR’s web interface, access Control Panel.
- Stop and start the service.
Now you can send an email to VMR and convert it to Telegram message.