Skip to content

Commit 16fd536

Browse files
chore: update pyproject.toml
1 parent 9936b98 commit 16fd536

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ Community = "https://t.me/kurigram_chat"
5959
[project.optional-dependencies]
6060
dev = [
6161
"keyring<=25.7.0",
62-
"hatch<=1.16.5",
63-
"pytest<=9.0.3",
64-
"pytest-asyncio<=1.3.0",
62+
"hatch<=1.17.0",
63+
"pytest<=9.1.1",
64+
"pytest-asyncio<=1.4.0",
6565
"pytest-cov<=7.1.0",
6666
"twine<=6.2.0",
6767
]
6868

6969
docs = [
7070
"Sphinx<=9.1.0",
71-
"shibuya<=2026.1.9",
71+
"shibuya<=2026.5.19",
7272
"sphinx-autobuild<=2025.8.25",
7373
"sphinx-copybutton<=0.5.2",
7474
"sphinx-iconify<=0.3.0",

pyrogram/methods/messages/send_rich_message.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,18 @@ async def send_rich_message(
105105
Example:
106106
.. code-block:: python
107107
108-
from pyrogram.types import (
109-
ReplyKeyboardMarkup, InlineKeyboardMarkup, InlineKeyboardButton, InputRichMessage)
108+
from pyrogram import types
110109
111110
await app.send_rich_message(
112-
chat_id, InputRichMessage(html="Hello <b>World</b>"),
113-
reply_markup=InlineKeyboardMarkup(
111+
chat_id=chat_id,
112+
rich_message=types.InputRichMessage(html="Hello <b>World</b>"),
113+
reply_markup=types.InlineKeyboardMarkup(
114114
[
115-
[InlineKeyboardButton("Data", callback_data="callback_data")],
116-
[InlineKeyboardButton("Docs", url="https://docs.pyrogram.org")]
117-
]))
115+
[types.InlineKeyboardButton("Data", callback_data="callback_data")],
116+
[types.InlineKeyboardButton("Docs", url="https://docs.pyrogram.org")],
117+
]
118+
),
119+
)
118120
"""
119121
r = await self.invoke(
120122
raw.functions.messages.SendMessage(

pyrogram/methods/messages/send_rich_message_draft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def send_rich_message_draft(
3535
.. note::
3636
3737
The streamed draft is ephemeral and acts as a temporary 30-second preview - once the output is finalized,
38-
you must call :meth:`~pyrogram.Client.send_message` with the complete message to persist it in the user's chat.
38+
you must call :meth:`~pyrogram.Client.send_rich_message` with the complete message to persist it in the user's chat.
3939
4040
.. include:: /_includes/usable-by/bots.rst
4141

pyrogram/types/messages_and_media/rich_block.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,6 @@ def __init__(
470470
async def _parse(
471471
client, list_item: Union["raw.base.PageListItem", "raw.base.PageListOrderedItem"]
472472
):
473-
"""Парсит PageListItem (как обычный, так и упорядоченный список)"""
474-
475473
if isinstance(list_item, raw.types.PageListItemBlocks):
476474
blocks = types.List(
477475
[await types.RichBlock._parse(client, block) for block in list_item.blocks]

0 commit comments

Comments
 (0)