The translation was generated automatically and may contain mistakes
Message management
Working with conversation_message_id
Parameter conversation_message_id allows the bot to interact with messages without the use of a common message identifier, which may be missing in some cases.
Using the method messages.getByConversationMessageId You can get information about the report on conversation_message_id . The bot must have access to correspondence.
The bot has access to:
- •
Messages in personal dialogue with the bot.
- •
The bot's outgoing message.
- •
Messages sent after the bot gained access to the correspondence. Access is granted if:
- •The bot was mentioned in the message.
- •The message starts with a symbol
/. - •The bot was given the right to view all messages.
- •
In some methods, the parameter
conversation_message_idcalledcmid.
Editing
Use the method to edit the message messages.edit . In the parameter conversation_message_id Pass the message ID.
The required message identifier can be obtained in advance using the method messages.send with parameter peer_ids and API version not lower than 5.124.
Removing
To delete a message, call the method messages.delete with parameters peer_id , cmids and delete_for_all .
Reinforcement
Method messages.pin It helps to keep the message in the conversation. Use the parameter to secure the desired message conversation_message_id .
Materials on the topic
- •
- •
- •
- •
- •