Skip to content

Commit 78a42f5

Browse files
Fix tests and README
1 parent bf1ae82 commit 78a42f5

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<p align="center">A simple, but extensible Python implementation for the <a href="https://core.telegram.org/bots/api">Telegram Bot API</a>.</p>
1111
<p align="center">Both synchronous and asynchronous.</p>
1212

13-
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api#march-1-2026"><img src="https://img.shields.io/badge/Bot%20API-9.5-blue?logo=telegram" alt="Supported Bot API version"></a>
13+
## <p align="center">Supported Bot API version: <a href="https://core.telegram.org/bots/api-changelog#april-3-2026"><img src="https://img.shields.io/badge/Bot%20API-9.6-blue?logo=telegram" alt="Supported Bot API version"></a>
1414

1515
<h2><a href='https://pytba.readthedocs.io/en/latest/index.html'>Official documentation</a></h2>
1616
<h2><a href='https://pytba.readthedocs.io/ru/latest/index.html'>Official ru documentation</a></h2>

tests/test_handler_backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def update_type(message):
7171
chat_boost_removed = None
7272
return types.Update(1001234038283, message, edited_message, channel_post, edited_channel_post, inline_query,
7373
chosen_inline_result, callback_query, shipping_query, pre_checkout_query, poll, poll_answer,
74-
my_chat_member, chat_member, chat_join_request, message_reaction, message_reaction_count, chat_boost, chat_boost_removed, None, None, None, None, None)
74+
my_chat_member, chat_member, chat_join_request, message_reaction, message_reaction_count, chat_boost, chat_boost_removed, None, None, None, None, None, None)
7575

7676

7777
@pytest.fixture()
@@ -95,7 +95,7 @@ def reply_to_message_update_type(reply_to_message):
9595
chat_boost_removed = None
9696
return types.Update(1001234038284, reply_to_message, edited_message, channel_post, edited_channel_post,
9797
inline_query, chosen_inline_result, callback_query, shipping_query, pre_checkout_query,
98-
poll, poll_answer, my_chat_member, chat_member, chat_join_request, message_reaction, message_reaction_count, chat_boost, chat_boost_removed, None, None, None, None, None)
98+
poll, poll_answer, my_chat_member, chat_member, chat_join_request, message_reaction, message_reaction_count, chat_boost, chat_boost_removed, None, None, None, None, None, None)
9999

100100

101101
def next_handler(message):

tests/test_telebot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ def create_message_update(text):
554554
business_message=None,
555555
business_connection=None,
556556
edited_business_message=None,
557-
deleted_business_messages=None, )
557+
deleted_business_messages=None,
558+
managed_bot=None)
558559

559560
def test_is_string_unicode(self):
560561
s1 = u'string'

0 commit comments

Comments
 (0)