Telegram Configuration
Kogno::Application.configure do |config|
config.telegram.bot_name = "<Your Bot Name in Telegram>"
config.telegram.api_url = "https://api.telegram.org"
config.telegram.token = "<Your token here>"
config.telegram.webhook_https_server = "https://yourdomain.com"
config.telegram.webhook_route = "/webhook_telegram"
config.telegram.webhook_drop_pending_updates = true
config.routes.inline_query = :main
config.routes.chat_activity = :main
config.telegram.commands = [
{
scope: :default,
commands:{
start: "Here, the command's description"
}
},
# {
# scope: :all_private_chats,
# commands:{
# start: "Here, the command's description",
# command2: "Here, the command's description"
# }
# }
]
config.routes.commands = {
start: :main
}
endField Description
Configuration
Description
Webhook
Start to receiving incoming updates
To stop
Last updated
Was this helpful?