Collecting messages sent directly to the bot

To listen messages sent directly to the bot, no additional settings are required.
Private messages will begin to be collected from the moment the bot is connected to the service according to theinstructions.

Check that the collection of private messages is enabled in the bot settings in the service.

In the"Settings - Social profiles"section, click on the gear icon next to the desired account and make sure that the checkbox for the "Messages" item is checked.

Private messages fo bot

Additionally, you can set a welcome message that the bot will automatically send to the user.

This message will be sent to the user when a dialogue with the bot is initiated after the /start command.

Private messages fo bot

Important! How to avoid collecting spam from third-party groups/channels?

Please note that your bot may be added to a third-party chat or channel without your knowledge, and spam will begin to be collected in the service, which will be counted in the statistics and, accordingly, in the final cost of the service.
After adding the Telegram bot, perform the actions specified inTHIS ARTICLE.
This will help avoid spam comments getting into the service.