Edit/delete messages
You can edit or delete messages
Edit message text
To edit message text, use Edit class-method or .edit
answer/api method
Edit class-method or .edit method take arguments:
Content you want to edit
Required
Keyboard you want to add
Optional
Optional
Message id you want to edit
Optional. Current message id by default
If you want to know what arguments an API method takes, see the IDE hint
Edit message caption
To edit message caption, pass Caption class-mark to Edit class-method or to .edit
answer/api method
Edit message media
To edit message media, pass media class you want to edit to Edit class-method or to .edit
answer/api method
Edit message keyboard
To edit message keyboard, pass Keyboard class you want to edit to Edit class-method or to .edit
answer/api method
Edit message: example
Delete message
To delete message, use Delete class-method or .delete
answer/api method
Delete class-method or .delete answer method take arguments:
Message id you want to delete
Optional. Current message id by default
Chat id in which the message you want to delete is located
Optional. Current chat id by default
If you want to know what arguments an API method takes, see the IDE hint
Last updated