Skip to content

Commit 6faa5fa

Browse files
authored
Update Pyrogram to v2.2.21
1 parent 91fd584 commit 6faa5fa

File tree

8 files changed

+19
-15
lines changed

8 files changed

+19
-15
lines changed

.github/workflows/build-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
python -m pip install --upgrade pip
2727
curl -sL ${TG_KAPG_DOCS_PBURL} | bash
2828
make
29+
cd ./docs/build/html && rm -rf .doctrees && cd ./../../..
2930
3031
- uses: peaceiris/actions-gh-pages@v4
3132
with:

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ ENCRYPTION_DECLINED The secret chat was declined.
177177
ENCRYPTION_ID_INVALID The provided secret chat ID is invalid.
178178
ENTITIES_TOO_LONG You provided too many styled message entities.
179179
ENTITY_BOUNDS_INVALID A specified [entity offset or length](https://core.telegram.org/api/entities#entity-length) is invalid, see [here](https://core.telegram.org/api/entities#entity-length) for info on how to properly compute the entity offset/length.
180+
ENTITY_DATE_INVALID A specified date/time entity is invalid.
180181
ENTITY_MENTION_USER_INVALID You mentioned an invalid user.
181182
ERROR_TEXT_EMPTY The provided error message is empty.
182183
EXPIRES_AT_INVALID The specified `expires_at` timestamp is invalid.

docs/source/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ Meta
102102

103103
- :doc:`Pyrogram FAQ <faq/index>`: Answers to common Pyrogram questions.
104104
- :doc:`Support Pyrogram <support>`: Ways to show your appreciation.
105-
- :doc:`Release Notes <releases/changes-in-this-fork>`: Changes in this Fork.
105+
- :doc:`Release Notes <releases/index>`: Release notes for Pyrogram releases.
106+
- :doc:`Fork Release Notes <releases/changes-in-this-fork>`: Documented changes of this Fork.
106107

107108
.. toctree::
108109
:hidden:
@@ -164,6 +165,7 @@ Meta
164165
:caption: Meta
165166

166167
faq/index
168+
support
167169
releases/index
168170

169171
.. toctree::

pyrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

1919
__fork_name__ = "pyrotgfork"
20-
__version__ = "2.2.20"
20+
__version__ = "2.2.21"
2121
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
2222
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
2323

pyrogram/enums/message_entity_type.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ class MessageEntityType(AutoName):
3939
"``/start@pyrogrambot``"
4040

4141
URL = raw.types.MessageEntityUrl
42-
"``https://pyrogram.org`` (see ``url``)"
42+
"``https://pyrogram.org``"
4343

4444
EMAIL = raw.types.MessageEntityEmail
4545
"``do-not-reply@pyrogram.org``"
4646

4747
PHONE_NUMBER = raw.types.MessageEntityPhone
48-
"``+1-123-456-7890``"
48+
"``+1-212-555-0123``"
4949

5050
BOLD = raw.types.MessageEntityBold
5151
"Bold text"
@@ -60,7 +60,7 @@ class MessageEntityType(AutoName):
6060
"Strikethrough text"
6161

6262
SPOILER = raw.types.MessageEntitySpoiler
63-
"Spoiler text"
63+
"Spoiler message"
6464

6565
BLOCKQUOTE = auto()
6666
"Block quotation"
@@ -75,19 +75,19 @@ class MessageEntityType(AutoName):
7575
"Monowidth block (see ``language``)"
7676

7777
TEXT_LINK = raw.types.MessageEntityTextUrl
78-
"For clickable text URLs"
78+
"For clickable text URLs (see ``url``)"
7979

8080
TEXT_MENTION = raw.types.MessageEntityMentionName
8181
"for users without usernames (see ``user``)"
8282

8383
CUSTOM_EMOJI = raw.types.MessageEntityCustomEmoji
84-
"Custom emoji"
84+
"for inline custom emoji stickers (see ``custom_emoji_id``)"
8585

8686
BANK_CARD = raw.types.MessageEntityBankCard
8787
"Bank card text"
8888

8989
DATE_TIME = raw.types.MessageEntityFormattedDate
90-
"Formatted date and time"
90+
"for formatted date and time (see ``unix_time`` and ``date_time_format``)"
9191

9292
UNKNOWN = raw.types.MessageEntityUnknown
9393
"Unknown message entity type"

pyrogram/handlers/raw_update_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ class RawUpdateHandler(Handler):
5454
client (:obj:`~pyrogram.Client`):
5555
The Client itself, useful when you want to call other API methods inside the update handler.
5656
57-
update (``Update``):
57+
update (:obj:`~pyrogram.raw.base.Update`):
5858
The received update, which can be one of the many single Updates listed in the
5959
:obj:`~pyrogram.raw.base.Update` base type.
6060
6161
users (``dict``):
62-
Dictionary of all :obj:`~pyrogram.types.User` mentioned in the update.
62+
Dictionary of all :obj:`~pyrogram.raw.base.User` mentioned in the update.
6363
You can access extra info about the user (such as *first_name*, *last_name*, etc...) by using
6464
the IDs you find in the *update* argument (e.g.: *users[1768841572]*).
6565
6666
chats (``dict``):
67-
Dictionary of all :obj:`~pyrogram.types.Chat` and
67+
Dictionary of all :obj:`~pyrogram.raw.base.Chat` and
6868
:obj:`~pyrogram.raw.types.Channel` mentioned in the update.
6969
You can access extra info about the chat (such as *title*, *participants_count*, etc...)
7070
by using the IDs you find in the *update* argument (e.g.: *chats[1701277281]*).

pyrogram/types/messages_and_media/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Message(Object, Update):
8787
sender_tag (``str``, *optional*):
8888
Tag of the sender of the message in the supergroup at the time the message was sent.
8989
May be empty if none or unknown.
90-
For messages sent by basic groups or supergroup administrators, the current custom title or tag must be used instead.
90+
For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead.
9191
9292
date (:py:obj:`~datetime.datetime`, *optional*):
9393
Date the message was sent.

pyrogram/types/messages_and_media/message_entity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ class MessageEntity(Object):
4646
For :obj:`~pyrogram.enums.MessageEntityType.TEXT_MENTION` only, the mentioned user.
4747
4848
language (``str``, *optional*):
49-
For "pre" only, the programming language of the entity text.
49+
For :obj:`~pyrogram.enums.MessageEntityType.PRE` only, the programming language of the entity text.
5050
5151
custom_emoji_id (``int``, *optional*):
5252
For :obj:`~pyrogram.enums.MessageEntityType.CUSTOM_EMOJI` only, unique identifier of the custom emoji.
5353
Use :meth:`~pyrogram.Client.get_custom_emoji_stickers` to get full information about the sticker.
5454
5555
unix_time (``int``, *optional*):
56-
For "date_time" only, the Unix time associated with the entity.
56+
For :obj:`~pyrogram.enums.MessageEntityType.DATE_TIME` only, the Unix time associated with the entity.
5757
5858
date_time_format (``str``, *optional*):
59-
For "date_time" only, the string that defines the formatting of the date and time.
59+
For :obj:`~pyrogram.enums.MessageEntityType.DATE_TIME` only, the string that defines the formatting of the date and time.
6060
6161
"""
6262

0 commit comments

Comments
 (0)