Skip to content

Commit 92ed23d

Browse files
committed
Improve documentation of send_video
1 parent 58c2f09 commit 92ed23d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/source/topics/message-identifiers.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,4 @@ Megagroups behave differently::
110110
The group has its own message counter.
111111
Each user won't get a copy of the message with their own identifier, but rather everyone sees the same message.
112112

113-
For scheduled messages, the message counter instead belongs to the peer itself.
114-
Bots cannot schedule messages in Telegram, and only users can schedule messages.
113+
For scheduled messages, the ``message_id`` is equal to the ID of the message in the schedule queue for the current chat (each PM, chat, supergroup and channel has its own schedule queue and ID sequence). This counter is distinct from the message counter of the normal messages. Since December 1, 2024, scheduled messages can also have messages automatically scheduled by server, to generate alternative qualities for videos in **big** channels. You can distinguish the messages manually scheduled by the user and that automatically scheduled by the server using the :obj:`~pyrogram.raw.types.Message.video_processing_pending` parameter. `Read More <https://core.telegram.org/api/scheduled-messages>`__

pyrogram/methods/messages/send_video.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ async def send_video(
7272
) -> Optional["types.Message"]:
7373
"""Send video files.
7474
75+
.. note::
76+
77+
Starting December 1, 2024 messages with video that are sent, copied or forwarded to groups and channels with a sufficiently large audience can be automatically scheduled by the server until the respective video is reencoded. Such messages will have ``scheduled`` property set and beware of using the correct :doc:`Message Identifiers <../../topics/message-identifiers>` when using such :obj:`~pyrogram.types.Message` objects.
78+
7579
.. include:: /_includes/usable-by/users-bots.rst
7680
7781
Parameters:

0 commit comments

Comments
 (0)