mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +03:00
Better document MESSAGE_ID_INVALID
This commit is contained in:
parent
cbcbda5276
commit
ae620db0c5
|
@ -936,6 +936,11 @@ class MessageMethods:
|
|||
``MessageNotModifiedError`` if the contents of the message were
|
||||
not modified at all.
|
||||
|
||||
``MessageIdInvalidError`` if the ID of the message is invalid
|
||||
(the ID itself may be correct, but the message with that ID
|
||||
cannot be edited). For example, when trying to edit messages
|
||||
with a reply markup (or clear markup) this error will be raised.
|
||||
|
||||
Example
|
||||
.. code-block:: python
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ MESSAGE_DELETE_FORBIDDEN,403,"You can't delete one of the messages you tried to
|
|||
MESSAGE_EDIT_TIME_EXPIRED,400,"You can't edit this message anymore, too much time has passed since its creation."
|
||||
MESSAGE_EMPTY,400,Empty or invalid UTF-8 message was sent
|
||||
MESSAGE_IDS_EMPTY,400,No message ids were provided
|
||||
MESSAGE_ID_INVALID,400,The specified message ID is invalid
|
||||
MESSAGE_ID_INVALID,400,"The specified message ID is invalid or you can't do that operation on such message"
|
||||
MESSAGE_NOT_MODIFIED,400,Content of the message was not modified
|
||||
MESSAGE_TOO_LONG,400,Message was too long. Current maximum length is 4096 UTF-8 characters
|
||||
MSG_WAIT_FAILED,400,A waiting call returned an error
|
||||
|
|
|
Loading…
Reference in New Issue
Block a user