Telegram Configuration
In Order to configure this section you must have created a bot following the Telegram instructions.
The Telegram configuration file is located at config/platforms/telegram.rb
Field Description
Configuration | Description |
---|---|
config.telegram.bot_name | Your bot's name, normally ended with the string "bot". Example: |
config.telegram.api_url | The telegram api url. |
config.telegram.token | The BotFather will provide you with one after you have created a bot on Telegram. |
config.telegram.webhook_https_server | Your public https url for you project. |
config.telegram.webhook_route | The CallBack url path where Telegram will send the notifications. |
config.telegram.webhook_drop_pending_updates | Pass |
config.routes.inline_query | Configure the default context which will handle incoming inline query. |
config.routes.chat_activity | Configure the default context which will handle changes on member status in a group or channel. Read more in Telegram. |
config.telegram.commands | Configure the bot command in the following scopes: |
config.routes.commands | Configure the context which will handle each command. If isn't defined the context will be the defined in |
Webhook
In order to start to receive incoming updates via an outgoing webhook, you must have configured config.telegram.webhook_https_server
and config.telegram.webhook_route
.
Start to receiving incoming updates
To stop
Last updated