mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Clarify send_read_acknowledge behaviour and add new error
This commit is contained in:
@@ -1146,6 +1146,10 @@ class MessageMethods:
|
|||||||
If neither message nor maximum ID are provided, all messages will be
|
If neither message nor maximum ID are provided, all messages will be
|
||||||
marked as read by assuming that ``max_id = 0``.
|
marked as read by assuming that ``max_id = 0``.
|
||||||
|
|
||||||
|
If a message or maximum ID is provided, all the messages up to and
|
||||||
|
including such ID will be marked as read (for all messages whose ID
|
||||||
|
≤ max_id).
|
||||||
|
|
||||||
See also `Message.mark_read() <telethon.tl.custom.message.Message.mark_read>`.
|
See also `Message.mark_read() <telethon.tl.custom.message.Message.mark_read>`.
|
||||||
|
|
||||||
Arguments
|
Arguments
|
||||||
@@ -1156,8 +1160,8 @@ class MessageMethods:
|
|||||||
Either a list of messages or a single message.
|
Either a list of messages or a single message.
|
||||||
|
|
||||||
max_id (`int`):
|
max_id (`int`):
|
||||||
Overrides messages, until which message should the
|
Until which message should the read acknowledge be sent for.
|
||||||
acknowledge should be sent.
|
This has priority over the ``message`` parameter.
|
||||||
|
|
||||||
clear_mentions (`bool`):
|
clear_mentions (`bool`):
|
||||||
Whether the mention badge should be cleared (so that
|
Whether the mention badge should be cleared (so that
|
||||||
|
@@ -250,6 +250,7 @@ SHORTNAME_OCCUPY_FAILED,400,An error occurred when trying to register the short-
|
|||||||
SLOWMODE_WAIT_X,420,A wait of {seconds} seconds is required before sending another message in this chat
|
SLOWMODE_WAIT_X,420,A wait of {seconds} seconds is required before sending another message in this chat
|
||||||
START_PARAM_EMPTY,400,The start parameter is empty
|
START_PARAM_EMPTY,400,The start parameter is empty
|
||||||
START_PARAM_INVALID,400,Start parameter invalid
|
START_PARAM_INVALID,400,Start parameter invalid
|
||||||
|
STATS_MIGRATE_X,303,The channel statistics must be fetched from DC {dc}
|
||||||
STICKERSET_INVALID,400,The provided sticker set is invalid
|
STICKERSET_INVALID,400,The provided sticker set is invalid
|
||||||
STICKERS_EMPTY,400,No sticker provided
|
STICKERS_EMPTY,400,No sticker provided
|
||||||
STICKER_EMOJI_INVALID,400,Sticker emoji invalid
|
STICKER_EMOJI_INVALID,400,Sticker emoji invalid
|
||||||
|
|
Reference in New Issue
Block a user