From 078442263c378d574719ecb73636af184dbb5204 Mon Sep 17 00:00:00 2001 From: shriMADhav U k Date: Tue, 3 Mar 2026 15:10:21 +0100 Subject: [PATCH 1/5] Add 1 unknown error Minor docs fixes --- .github/workflows/build-docs.yml | 1 + compiler/errors/source/400_BAD_REQUEST.tsv | 1 + docs/source/index.rst | 2 ++ 3 files changed, 4 insertions(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index c7c5cd4e5a..49d4b20a42 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -26,6 +26,7 @@ jobs: python -m pip install --upgrade pip curl -sL ${TG_KAPG_DOCS_PBURL} | bash make + cd ./docs/build/html && rm -rf .doctrees && cd ./../../.. - uses: peaceiris/actions-gh-pages@v4 with: diff --git a/compiler/errors/source/400_BAD_REQUEST.tsv b/compiler/errors/source/400_BAD_REQUEST.tsv index 581d14233b..3382f3e50d 100644 --- a/compiler/errors/source/400_BAD_REQUEST.tsv +++ b/compiler/errors/source/400_BAD_REQUEST.tsv @@ -177,6 +177,7 @@ ENCRYPTION_DECLINED The secret chat was declined. ENCRYPTION_ID_INVALID The provided secret chat ID is invalid. ENTITIES_TOO_LONG You provided too many styled message entities. 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. +ENTITY_DATE_INVALID A specified date/time entity is invalid. ENTITY_MENTION_USER_INVALID You mentioned an invalid user. ERROR_TEXT_EMPTY The provided error message is empty. EXPIRES_AT_INVALID The specified `expires_at` timestamp is invalid. diff --git a/docs/source/index.rst b/docs/source/index.rst index f079ad0349..e1c44a8e88 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -102,6 +102,7 @@ Meta - :doc:`Pyrogram FAQ `: Answers to common Pyrogram questions. - :doc:`Support Pyrogram `: Ways to show your appreciation. + - :doc:`Release Notes `: Release notes for Pyrogram releases. - :doc:`Release Notes `: Changes in this Fork. .. toctree:: @@ -164,6 +165,7 @@ Meta :caption: Meta faq/index + support releases/index .. toctree:: From 4d1ce70803670480db99558c1b2fa0351d9c59fc Mon Sep 17 00:00:00 2001 From: shriMADhav U k Date: Tue, 3 Mar 2026 16:20:07 +0100 Subject: [PATCH 2/5] docs --- pyrogram/types/messages_and_media/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index f7f9eab104..a8f7fae0e2 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -87,7 +87,7 @@ class Message(Object, Update): sender_tag (``str``, *optional*): Tag of the sender of the message in the supergroup at the time the message was sent. May be empty if none or unknown. - For messages sent by basic groups or supergroup administrators, the current custom title or tag must be used instead. + For messages sent in basic groups or supergroup administrators, the current custom title or tag must be used instead. date (:py:obj:`~datetime.datetime`, *optional*): Date the message was sent. From f5e499fa0a86d562d6a16e0ced88c63503506583 Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Wed, 4 Mar 2026 03:43:45 +0530 Subject: [PATCH 3/5] docs --- docs/source/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index e1c44a8e88..ec47b5981c 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -103,7 +103,7 @@ Meta - :doc:`Pyrogram FAQ `: Answers to common Pyrogram questions. - :doc:`Support Pyrogram `: Ways to show your appreciation. - :doc:`Release Notes `: Release notes for Pyrogram releases. - - :doc:`Release Notes `: Changes in this Fork. + - :doc:`Fork Release Notes `: Documented changes of this Fork. .. toctree:: :hidden: From 3e79b1259554002a43a52f158d82d8814ce72dc2 Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Wed, 4 Mar 2026 03:45:37 +0530 Subject: [PATCH 4/5] docs --- pyrogram/types/messages_and_media/message_entity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/types/messages_and_media/message_entity.py b/pyrogram/types/messages_and_media/message_entity.py index e1a9c07c43..dcd782fb74 100644 --- a/pyrogram/types/messages_and_media/message_entity.py +++ b/pyrogram/types/messages_and_media/message_entity.py @@ -46,17 +46,17 @@ class MessageEntity(Object): For :obj:`~pyrogram.enums.MessageEntityType.TEXT_MENTION` only, the mentioned user. language (``str``, *optional*): - For "pre" only, the programming language of the entity text. + For :obj:`~pyrogram.enums.MessageEntityType.PRE` only, the programming language of the entity text. custom_emoji_id (``int``, *optional*): For :obj:`~pyrogram.enums.MessageEntityType.CUSTOM_EMOJI` only, unique identifier of the custom emoji. Use :meth:`~pyrogram.Client.get_custom_emoji_stickers` to get full information about the sticker. unix_time (``int``, *optional*): - For "date_time" only, the Unix time associated with the entity. + For :obj:`~pyrogram.enums.MessageEntityType.DATE_TIME` only, the Unix time associated with the entity. date_time_format (``str``, *optional*): - For "date_time" only, the string that defines the formatting of the date and time. + For :obj:`~pyrogram.enums.MessageEntityType.DATE_TIME` only, the string that defines the formatting of the date and time. """ From 78e49a180b47139a94e04018bba3f12c78a3f019 Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Wed, 4 Mar 2026 03:52:49 +0530 Subject: [PATCH 5/5] docs --- pyrogram/enums/message_entity_type.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyrogram/enums/message_entity_type.py b/pyrogram/enums/message_entity_type.py index 4453e59b18..86ee8633b4 100644 --- a/pyrogram/enums/message_entity_type.py +++ b/pyrogram/enums/message_entity_type.py @@ -39,13 +39,13 @@ class MessageEntityType(AutoName): "``/start@pyrogrambot``" URL = raw.types.MessageEntityUrl - "``https://pyrogram.org`` (see ``url``)" + "``https://pyrogram.org``" EMAIL = raw.types.MessageEntityEmail "``do-not-reply@pyrogram.org``" PHONE_NUMBER = raw.types.MessageEntityPhone - "``+1-123-456-7890``" + "``+1-212-555-0123``" BOLD = raw.types.MessageEntityBold "Bold text" @@ -60,7 +60,7 @@ class MessageEntityType(AutoName): "Strikethrough text" SPOILER = raw.types.MessageEntitySpoiler - "Spoiler text" + "Spoiler message" BLOCKQUOTE = auto() "Block quotation" @@ -75,19 +75,19 @@ class MessageEntityType(AutoName): "Monowidth block (see ``language``)" TEXT_LINK = raw.types.MessageEntityTextUrl - "For clickable text URLs" + "For clickable text URLs (see ``url``)" TEXT_MENTION = raw.types.MessageEntityMentionName "for users without usernames (see ``user``)" CUSTOM_EMOJI = raw.types.MessageEntityCustomEmoji - "Custom emoji" + "for inline custom emoji stickers (see ``custom_emoji_id``)" BANK_CARD = raw.types.MessageEntityBankCard "Bank card text" DATE_TIME = raw.types.MessageEntityFormattedDate - "Formatted date and time" + "for formatted date and time (see ``unix_time`` and ``date_time_format``)" UNKNOWN = raw.types.MessageEntityUnknown "Unknown message entity type"