Channel setting
Overview
The latest version of Maxbot
has a built-in support of Telegram
, Viber
and VK
messengers, but you can always add the messenger you need.
Each messenger has its own differences in controls, features, etc. If you want to expand the possibilities of dialogue, for example, add sending location to Viber
or sending money to VK
, read about it in Coding Guide.
Telegram
If a bot in Telegram
messenger has already created, the steps 1 - 5 described below can be skipped.
To set up bot integration with Telegram
it is necessary:
- Open the
Telegram
messenger. - Go @BotFacther and send
/start
command to the dialog. - Send the
/newbot
command. - Set the user and system name for the new bot.
- Save the resulting bot token.
- Specify parameter in the bot resources. You can find all of them in Telegram schema:
channels:
telegram:
api_token: 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw
Viber
Connection to Viber
is similar to connection to Telegram
. You need to create a bot and get an API token, see instruction.
If the company has already created a bot in Viber, the steps 1 - 4 described below can be skipped.
To set up bot integration with Viber
you need to:
- Go to link and enter the control panel.
- Click on
Create Bot Account
. - Fill in the data for the bot and click on
Create
. - The account will be created. The next window will display the token that you need to use in
Maxbot
to integrate the bot withViber
messenger. - Specify parameter in the bot resources. You can find all of them in Viber schema:
channels:
viber:
api_token: 511c56j76j44dcb2-d80de780c65cd798-cbdf5833d0a9aa3c
VK
If the company has already had a VK
community to integrate with the bot, the steps 1 - 5 described below can be skipped. Steps 6 to 11 are mandatory.
To configure the integration of the bot with the VK
community it is necessary:
- Log in to the
VK
social network. - Go to the section
Communities
. - In the section
Communities
click on the buttonCreate community
. - In the opened window fill in the name and theme of the community.
- Click on
Create community
. - On the community page click on the link
Manage
. - In the list of sections of settings click on
API usage
->Callback API
->Secret key
. - Fill in the
Secret key
field by yourself. This is asecret_key
parameter. - Select a tab
Access tokens
->Show
. This is aaccess_token
parameter. - Look at the URL of your community. The numbers in the string is the
group_id
parameter. - Specify parameters in the bot resources. You can find all of them in VK schema:
channels:
vk:
secret_key: 9rLP4x4xLX4fg
access_token: 99fa2e47fe664da97f3d166c7c32c226370ef9d6e5026a97f3d166c7c32c226370026160db99
group_id: 123456789