From 49784f40bedd7015545c5b6dcb3ccf4e30fc7fd1 Mon Sep 17 00:00:00 2001 From: shriMADhav U k Date: Wed, 4 Dec 2024 13:27:27 +0100 Subject: [PATCH] Updated documentation --- docs/source/releases/changes-in-this-fork.rst | 13 ++++++++++--- pyrogram/methods/business/create_invoice_link.py | 2 +- pyrogram/methods/messages/get_messages.py | 4 +--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/source/releases/changes-in-this-fork.rst b/docs/source/releases/changes-in-this-fork.rst index 325e5785c..a6fff3e54 100644 --- a/docs/source/releases/changes-in-this-fork.rst +++ b/docs/source/releases/changes-in-this-fork.rst @@ -11,15 +11,22 @@ it can take advantage of new goodies! If you found any issue or have any suggestions, feel free to make `an issue `_ on github. -Breaking Changes -================= +Breaking Changes in this Fork +============================== +- Make :meth:`~pyrogram.Client.get_messages` accept only keyword-only arguments. `48d4230 `_ - PR `#115 `_ This `change `_ breaks some usages with offset-naive and offset-aware datetimes. -- PR from upstream: `1411 `_ without attribution. +- PR from upstream: `#1411 `_ without attribution. Changes in this Fork ===================== ++------------------------+ +| Scheme layer used: 195 | ++------------------------+ + +- View `new and changed `__ `raw API methods `__. + +------------------------+ | Scheme layer used: 194 | +------------------------+ diff --git a/pyrogram/methods/business/create_invoice_link.py b/pyrogram/methods/business/create_invoice_link.py index 94847abb8..6adb7556f 100644 --- a/pyrogram/methods/business/create_invoice_link.py +++ b/pyrogram/methods/business/create_invoice_link.py @@ -76,7 +76,7 @@ async def create_invoice_link( Payment provider token, obtained via `@BotFather `_. Pass an empty string for payments in `Telegram Stars `_. subscription_period (:py:obj:`~datetime.datetime`, *optional*): - The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. + The number of seconds the subscription will be active for before the next payment. The currency must be set to "XTR" (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user. Subscription price must no exceed ``stars_paid_post_amount_max`` Telegram Stars. max_tip_amount (``int``, *optional*): The maximum accepted amount for tips in the smallest units of the currency (integer, **not** float/double). For example, for a maximum tip of ``US$ 1.45`` pass ``max_tip_amount = 145``. See the exp parameter in `currencies.json `_, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in `Telegram Stars `_. diff --git a/pyrogram/methods/messages/get_messages.py b/pyrogram/methods/messages/get_messages.py index 74ae8faf7..2df6d9b06 100644 --- a/pyrogram/methods/messages/get_messages.py +++ b/pyrogram/methods/messages/get_messages.py @@ -44,9 +44,7 @@ async def get_messages( List["types.Message"], "types.DraftMessage" ]: - """Get one or more messages from a chat by using message identifiers. - - You can retrieve up to 200 messages at once. + """Get one or more messages from a chat by using message identifiers. You can retrieve up to 200 messages at once. .. include:: /_includes/usable-by/users-bots.rst