From 92ed23d52eaf7131746f5e4c2e697bc291b97c2c Mon Sep 17 00:00:00 2001 From: shriMADhav U k Date: Fri, 6 Dec 2024 18:57:56 +0100 Subject: [PATCH] Improve documentation of send_video --- docs/source/topics/message-identifiers.rst | 3 +-- pyrogram/methods/messages/send_video.py | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/source/topics/message-identifiers.rst b/docs/source/topics/message-identifiers.rst index f529ead43..5a6607080 100644 --- a/docs/source/topics/message-identifiers.rst +++ b/docs/source/topics/message-identifiers.rst @@ -110,5 +110,4 @@ Megagroups behave differently:: The group has its own message counter. Each user won't get a copy of the message with their own identifier, but rather everyone sees the same message. -For scheduled messages, the message counter instead belongs to the peer itself. -Bots cannot schedule messages in Telegram, and only users can schedule messages. +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 `__ diff --git a/pyrogram/methods/messages/send_video.py b/pyrogram/methods/messages/send_video.py index 815acbb5e..8b1160943 100644 --- a/pyrogram/methods/messages/send_video.py +++ b/pyrogram/methods/messages/send_video.py @@ -72,6 +72,10 @@ async def send_video( ) -> Optional["types.Message"]: """Send video files. + .. note:: + + 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. + .. include:: /_includes/usable-by/users-bots.rst Parameters: