Skip to content

Commit

Permalink
Improve documentation of send_video
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Dec 8, 2024
1 parent 58c2f09 commit 92ed23d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/topics/message-identifiers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://core.telegram.org/api/scheduled-messages>`__
4 changes: 4 additions & 0 deletions pyrogram/methods/messages/send_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 92ed23d

Please sign in to comment.