Skip to content

Commit adc3e19

Browse files
committed
Add changelog entries for the deleteMessage API
1 parent 907a4ee commit adc3e19

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/api/telegram.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

docs/changelog/0.4.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
3844
Performance improvements
3945
------------------------
4046

0 commit comments

Comments
 (0)