File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -913,6 +913,16 @@ about its business.
913913
914914 .. versionadded :: 0.3
915915
916+ .. py :method :: delete_message(message)
917+
918+ Delete the message with the provided ID or :py:class: `~botogram.Message ` object.
919+ A message can be deleted only if is sent by the bot or sent in a supergroup by an user where the bot is admin.
920+ It can also be deleted if it's one of the supported service messages.
921+
922+ :param message: The message to delete (can be an ID too)
923+
924+ .. versionadded :: 0.4
925+
916926.. py :class :: botogram.ParsedText
917927
918928 This class contains the parsed representation of the text of a received
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ New features
3535 * New argument ``order `` in :py:meth: `botogram.Bot.command `
3636 * New argument ``order `` in :py:meth: `botogram.Component.add_command `
3737
38+ * Added ability to delete messages
39+
40+ * New method :py:meth: `botogram.User.delete_message `
41+ * New method :py:meth: `botogram.Chat.delete_message `
42+ * New method :py:meth: `botogram.Message.delete `
43+
3844Performance improvements
3945------------------------
4046
You can’t perform that action at this time.
0 commit comments