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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ Changes in this Fork
26
26
| Scheme layer used: 198 |
27
27
+------------------------+
28
28
29
+
- 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.
29
30
- Added the ``cover`` and ``start_timestamp`` parameters in :meth:`~pyrogram.Client.send_video` and :obj:`~pyrogram.types.InputPaidMediaVideo`.
30
31
- Added the ``new_video_start_timestamp`` and renamed the ``send_copy`` and ``remove_caption`` parameters in :meth:`~pyrogram.Client.forward_messages` and :meth:`~pyrogram.types.Message.forward`.
31
32
- Added the ``gift_count`` to the :obj:`~pyrogram.types.Chat`.
You must use exactly one of ``message_ids`` OR (``chat_id``, ``message_ids``) OR (``chat_id``, ``reply_to_message_ids``) OR ``link``.
49
+
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``.
49
50
50
51
Parameters:
51
52
chat_id (``int`` | ``str``, *optional*):
@@ -60,15 +61,20 @@ async def get_messages(
60
61
reply_to_message_ids (``int`` | Iterable of ``int``, *optional*):
61
62
Pass a single message identifier or an iterable of message ids (as integers) to get the content of
62
63
the previous message you replied to using this message.
63
-
If *message_ids* is set, this argument will be ignored.
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.
64
68
65
69
replies (``int``, *optional*):
66
70
The number of subsequent replies to get for each message.
67
71
Pass 0 for no reply at all or -1 for unlimited replies.
68
72
Defaults to 1.
73
+
Is ignored if ``is_scheduled`` parameter is set.
69
74
70
75
is_scheduled (``bool``, *optional*):
71
76
Whether to get scheduled messages. Defaults to False.
77
+
Only supported if both ``chat_id`` and ``message_ids`` are passed. Other parameters are ignored when this is set.
72
78
73
79
link (``str``):
74
80
A link of the message, usually can be copied using ``Copy Link`` functionality OR obtained using :obj:`~pyrogram.raw.types.Message.link` OR :obj:`~pyrogram.raw.functions.channels.ExportMessageLink`
Copy file name to clipboardExpand all lines: pyrogram/types/business/successful_payment.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@
26
26
27
27
28
28
classSuccessfulPayment(Object):
29
-
"""This object contains basic information about a successful payment.
29
+
"""This object contains basic information about a successful payment. Note that if the buyer initiates a chargeback with the relevant payment provider following this transaction, the funds may be debited from your balance. This is outside of Telegram's control.
0 commit comments