Activating work with comments
To activate work with comments in the module, you need to add your bot to the group to which channel comments are transferred. After that, the transfer of comments and messages from the group will be enabled.
Attempting to add the bot to additional groups will not switch the receipt of comments to other groups - the bot will automatically quit such groups.
If your bot is already added to the group, but comments are inactive - delete the bot from the group, and then add it again.
The channel-related group can be opened via the "View discussion" item in the channel options (the triple dot button in the upper right part of the window). If the channel does not have the ability to transfer comments - it can be enabled by linking an existing group to the channel, or by creating a new group and linking it.
Adding a bot to a group activates work with comments in the module, but the messages and comments from the group will not start to be transferred after that. In order for them to be transferred you can either make the bot the administrator in the chat linked to the group or disable privacy in groups for the bot.
To disable privacy in groups you need to do the following:
- Go to the bot @BotFather.
- Type the command
/mybotsand press Enter.
- Select your bot from the list that appears.
- Press the button
- Press the button
- Press the button
After that, the bot will have access to the group's messages without the need to grant administrator rights.
Deactivation of the comments operation
To deactivate the comments operation delete the bot from the group it is in. If you do not remember which group your bot was added to - you can deactivate comments in the transport interface by clicking on the checkbox and confirming the disabling of comments.
Working with comments
Comments in Telegram are ordinary messages in the group linked to the channel. These messages are divided into two types:
- ordinary messages.
Telegram transmits posts from the channel to the linked group. Comments are considered to be those messages that contain a response to the initial post. That is why the ability to comment does not appear in older posts - they are not in the group.
Those messages that do not contain a response to the post are considered ordinary messages. Therefore, some comments can be transferred as an ordinary message - they contain a response to another comment, which does not allow the system to distinguish them from ordinary messages.
The transfer of comments works the same way as in other transports. Comments from the same person from different posts are collected in one dialog.
Each comment contains a link to the post below which it is left (the link opens not only the Telegram post itself, but also highlights the comment below it).
To respond to a comment just quote the desired message-comment and write a response. If you try to write to the chat with comments without quoting, an error will be returned informing you about the need to quote a comment.
The transfer of ordinary messages works differently. All messages of a group (except for channel posts) are transferred to a dialog that has the same name as the group.
If you send a message to this dialog, it will be sent to the group on behalf of the bot. That is, you can communicate with members of the group using Chats. In this case, the body of the message always contains the signature of its author (so that you can somehow understand who exactly sent the message), as well as information about the type of the author is transferred. Ordinary users and groups are marked with emoji 👤, channels are marked with emoji 💬