Skip to content

Port rich message shortcut and inline extras#1

Merged
Phil9l merged 1 commit into
Phil9l:api-10.1-rich-messagesfrom
tymrtn:merge-rich-message-extras
Jun 18, 2026
Merged

Port rich message shortcut and inline extras#1
Phil9l merged 1 commit into
Phil9l:api-10.1-rich-messagesfrom
tymrtn:merge-rich-message-extras

Conversation

@tymrtn

@tymrtn tymrtn commented Jun 18, 2026

Copy link
Copy Markdown

Summary

This ports the non-overlapping pieces from python-telegram-bot#5275 onto your api-10.1-rich-messages branch so maintainers can use python-telegram-bot#5263 as the courtesy base if preferred.

Added on top of your branch:

  • InputRichMessageContent
  • docs tree entry for InputRichMessageContent
  • inline InputMessageContent docs mention
  • Chat.send_rich_message / Chat.send_rich_message_draft
  • User.send_rich_message / User.send_rich_message_draft
  • Message.reply_rich_message
  • focused tests for the shortcut methods and InputRichMessageContent

I did not replace your existing InputRichMessage, Bot.send_rich_message, Bot.send_rich_message_draft, ExtBot, changelog fragment, or basic tests.

Tests

  • python -m pytest -o 'addopts=' tests/test_inputrichmessage.py tests/test_bot.py tests/test_chat.py tests/test_user.py tests/test_message.py -k 'rich_message or inputrichmessage' -q
  • python -m ruff check src/telegram/_inputrichmessage.py src/telegram/_chat.py src/telegram/_inline/inputmessagecontent.py src/telegram/_message.py src/telegram/_user.py tests/test_inputrichmessage.py tests/test_chat.py tests/test_message.py tests/test_user.py
  • python -m ruff format --check src/telegram/_inputrichmessage.py src/telegram/_chat.py src/telegram/_inline/inputmessagecontent.py src/telegram/_message.py src/telegram/_user.py tests/test_inputrichmessage.py tests/test_chat.py tests/test_message.py tests/test_user.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants