Skip to content

Commit 49784f4

Browse files
committed
Updated documentation
1 parent b3e9d45 commit 49784f4

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

docs/source/releases/changes-in-this-fork.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@ it can take advantage of new goodies!
1111

1212
If you found any issue or have any suggestions, feel free to make `an issue <https://github.com/TelegramPlayGround/pyrogram/issues>`_ on github.
1313

14-
Breaking Changes
15-
=================
14+
Breaking Changes in this Fork
15+
==============================
1616

17+
- Make :meth:`~pyrogram.Client.get_messages` accept only keyword-only arguments. `48d4230 <https://github.com/TelegramPlayGround/pyrogram/commit/48d42304f3ee51034d515919320634935e6b2c83>`_
1718
- 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.
18-
- PR from upstream: `1411 <https://github.com/pyrogram/pyrogram/pull/1411>`_ without attribution.
19+
- PR from upstream: `#1411 <https://github.com/pyrogram/pyrogram/pull/1411>`_ without attribution.
1920

2021
Changes in this Fork
2122
=====================
2223

24+
+------------------------+
25+
| Scheme layer used: 195 |
26+
+------------------------+
27+
28+
- View `new and changed <https://telegramplayground.github.io/TG-APIs/TL/diff/tdlib.html?from=194&to=195>`__ `raw API methods <https://telegramplayground.github.io/TG-APIs/TL/diff/tdesktop.html?from=194&to=195>`__.
29+
2330
+------------------------+
2431
| Scheme layer used: 194 |
2532
+------------------------+

pyrogram/methods/business/create_invoice_link.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def create_invoice_link(
7676
Payment provider token, obtained via `@BotFather <https://t.me/botfather>`_. Pass an empty string for payments in `Telegram Stars <https://t.me/BotNews/90>`_.
7777
7878
subscription_period (:py:obj:`~datetime.datetime`, *optional*):
79-
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.
79+
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.
8080
8181
max_tip_amount (``int``, *optional*):
8282
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 <https://core.telegram.org/bots/payments/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 <https://t.me/BotNews/90>`_.

pyrogram/methods/messages/get_messages.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ async def get_messages(
4444
List["types.Message"],
4545
"types.DraftMessage"
4646
]:
47-
"""Get one or more messages from a chat by using message identifiers.
48-
49-
You can retrieve up to 200 messages at once.
47+
"""Get one or more messages from a chat by using message identifiers. You can retrieve up to 200 messages at once.
5048
5149
.. include:: /_includes/usable-by/users-bots.rst
5250

0 commit comments

Comments
 (0)