Top.Mail.Ru

Platform connection

How to connect a bot to available instant messengers
Telegram
How to create new bot
Telegram bots are created and configured using the official @BotFather bot.
1. Open the @BotFather bot in Telegram.
2. Send him command /newbot
3. Set a name for your new bot. The name of your bot is displayed in contact details and elsewhere.
4. Create a username and submit it.
The username is a short name, to be used in mentions and telegram.me links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot's username must end in "bot", e.g. "tetris_bot" or "TetrisBot".
5. For the bot to work, it needs to be connected to botmother. Copy the received token and paste it into the constructor on the Settings page. Do not forget to save.
If you lost the token, send command /token. To generate a new one, send command /revoke
How to change the name of the bot
1. Open the @BotFather bot in Telegram and send him command /setname
2. Select bot whose name you want to change.
3. Enter the new name of your bot and send it.
How to add a bot description
The bot's description is short text of up to 512 characters, describing your bot. Users will see this text at the beginning of the conversation with the bot, titled "What can this bot do?".
  1. Open the @BotFather bot in Telegram and send him command /setdescription
2. Select bot whose description you want to change.
3. Enter a new description of your bot (maximum 512 characters) and send it.
How to add the bot's about info
About info is an even shorter text of up to 120 characters. Users will see this text on the bot's profile page. When they share your bot with someone, this text is sent together with the link.
1. Open the @BotFather bot in Telegram and send him command /setabouttext
2. Select bot whose about info you want to change.
3. Enter the new about info text (maximum 120 characters) and send it.
How to add userpic
1. Open the @BotFather bot in Telegram and send him command /setuserpic
2. Select the bot whose userpic you want to change.
3. Send the bot a photo as a picture. If send as a file, @BotFather will send an error.
How to make Telegram menu
If you want to make a bot menu Telegram, you need to configure it via @BotFather bot.
1. Open the @BotFather bot in Telegram and send him command /setcommands
2. Select the bot for which you are making the menu.
3. Send the bot commands as:
command1 - Screen1
command2 - Screen2

Where command — command name (maximum 32 characters), Screen — name of the screen in the constructor.
The name of the screen will fall into the description of the command and will be visible to users, so rename the screens according to the command.
4. Go to your bot in Telegram and type "/" without sending.
Viber
To create a bot in Viber, follow the link: https://partners.viber.com/login
The specified number will receive a message in Viber. A one-time code from there you must enter in a special field.
So that everyone has access to the public account and bot, publish it through the application:
      1. Open the Viber app on your phone
      2. Go to "More" — "Discover"
      3. Select your account and click "Edit Info"
      4. Turn on "Control the visibility of your Public Account in search results"
        Facebook