You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/releases/changes-in-this-fork.rst
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ Breaking Changes in this Fork
15
15
==============================
16
16
17
17
- In :meth:`~pyrogram.Client.download_media`, if the message is a :obj:`~pyrogram.types.PaidMediaInfo` with more than one ``paid_media`` **and** ``idx`` was not specified, then a list of paths or binary file-like objects is returned.
18
-
- Make :meth:`~pyrogram.Client.get_messages` accept only keyword-only arguments. `48d4230 <https://github.com/TelegramPlayGround/pyrogram/commit/48d42304f3ee51034d515919320634935e6b2c83>`_
19
18
- PR `#115 <https://github.com/TelegramPlayGround/pyrogram/pull/115>`_ This `change <https://github.com/pyrogram/pyrogram/pull/966#issuecomment-1108858881>`_ breaks some usages with offset-naive and offset-aware datetimes.
20
19
- PR from upstream: `#1411 <https://github.com/pyrogram/pyrogram/pull/1411>`_ without attribution.
21
20
@@ -32,9 +31,9 @@ Changes in this Fork
32
31
| Scheme layer used: 198 |
33
32
+------------------------+
34
33
34
+
- Splitted the :meth:`~pyrogram.Client.get_messages` into :meth:`~pyrogram.Client.get_chat_pinned_message`, :meth:`~pyrogram.Client.get_callback_query_message`, and :meth:`~pyrogram.Client.get_replied_message`.
- Added the parameter ``pinned`` and made the parameter ``chat_id`` optional in :meth:`~pyrogram.Client.get_messages`. **NOTE**: Please be aware about using the correct :doc:`Message Identifiers <../../topics/message-identifiers>`, when using this method.
38
37
- Added the ``cover`` and ``start_timestamp`` parameters in :meth:`~pyrogram.Client.send_video` and :obj:`~pyrogram.types.InputPaidMediaVideo`.
39
38
- Added the ``video_start_timestamp`` and renamed the ``send_copy`` and ``remove_caption`` parameters in :meth:`~pyrogram.Client.forward_messages` and :meth:`~pyrogram.types.Message.forward`.
40
39
- Added the ``gift_count`` to the :obj:`~pyrogram.types.Chat`.
You must use exactly one of ``message_ids`` OR ``reply_to_message_ids`` OR (``chat_id``, ``message_ids``) OR (``chat_id``, ``reply_to_message_ids``) OR (``chat_id``, ``pinned``) OR ``link``.
47
+
You must use exactly one of ``message_ids`` OR (``chat_id``, ``message_ids``) OR ``link``.
50
48
51
49
Parameters:
52
50
chat_id (``int`` | ``str``, *optional*):
@@ -58,14 +56,6 @@ async def get_messages(
58
56
Pass a single message identifier or an iterable of message ids (as integers) to get the content of the
59
57
message themselves.
60
58
61
-
reply_to_message_ids (``int`` | Iterable of ``int``, *optional*):
62
-
Pass a single message identifier or an iterable of message ids (as integers) to get the content of
63
-
the previous message you replied to using this message.
64
-
65
-
pinned (``bool``, *optional*):
66
-
Returns information about the newest pinned message in the specified ``chat_id``. Other parameters are ignored when this is set.
67
-
Use :meth:`~pyrogram.Client.search_messages` to return all the pinned messages.
68
-
69
59
replies (``int``, *optional*):
70
60
The number of subsequent replies to get for each message.
71
61
Pass 0 for no reply at all or -1 for unlimited replies.
@@ -98,22 +88,13 @@ async def get_messages(
98
88
# Get message with all chained replied-to messages
0 commit comments