Skip to content

Commit

Permalink
Merge pull request #2285 from coder2020official/botapi-74
Browse files Browse the repository at this point in the history
Bot API 7.4: Stars, effects, etc
  • Loading branch information
Badiboy authored Jun 1, 2024
2 parents faa60f1 + 2e4f92d commit 6455bf6
Show file tree
Hide file tree
Showing 7 changed files with 573 additions and 147 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p align="center">A simple, but extensible Python implementation for the <a href="https://core.telegram.org/bots/api">Telegram Bot API</a>.</p>
<p align="center">Both synchronous and asynchronous.</p>

## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#may-6-2024">7.3</a>!
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api-changelog#may-28-2024">7.4</a>!

<h2><a href='https://pytba.readthedocs.io/en/latest/index.html'>Official documentation</a></h2>
<h2><a href='https://pytba.readthedocs.io/ru/latest/index.html'>Official ru documentation</a></h2>
Expand Down
209 changes: 166 additions & 43 deletions telebot/__init__.py

Large diffs are not rendered by default.

102 changes: 81 additions & 21 deletions telebot/apihelper.py

Large diffs are not rendered by default.

196 changes: 154 additions & 42 deletions telebot/async_telebot.py

Large diffs are not rendered by default.

100 changes: 78 additions & 22 deletions telebot/asyncio_helper.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions telebot/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ def apply_html_entities(text: str, entities: Optional[List], custom_subs: Option
"spoiler": "<span class=\"tg-spoiler\">{text}</span>",
"custom_emoji": "<tg-emoji emoji-id=\"{custom_emoji_id}\">{text}</tg-emoji>",
"blockquote": "<blockquote>{text}</blockquote>",
"expandable_blockquote": "<blockquote expandable>{text}</blockquote>",

}

if custom_subs:
Expand Down
109 changes: 91 additions & 18 deletions telebot/types.py

Large diffs are not rendered by default.

0 comments on commit 6455bf6

Please sign in to comment.