Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
406 changes: 382 additions & 24 deletions telebot/__init__.py

Large diffs are not rendered by default.

146 changes: 135 additions & 11 deletions telebot/apihelper.py

Large diffs are not rendered by default.

413 changes: 389 additions & 24 deletions telebot/async_telebot.py

Large diffs are not rendered by default.

142 changes: 130 additions & 12 deletions telebot/asyncio_helper.py

Large diffs are not rendered by default.

1,006 changes: 996 additions & 10 deletions telebot/types.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions telebot/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
'checklist_tasks_done', 'checklist_tasks_added', 'direct_message_price_changed', 'suggested_post_refunded',
'suggested_post_info', 'suggested_post_approved', 'suggested_post_approval_failed', 'suggested_post_declined',
'suggested_post_paid', 'gift_upgrade_sent', 'chat_owner_left', 'chat_owner_changed', 'managed_bot_created',
'poll_option_added', 'poll_option_deleted'
'poll_option_added', 'poll_option_deleted', 'community_chat_added', 'community_chat_removed'
]

#: All update types, should be used for allowed_updates parameter in polling.
Expand All @@ -53,7 +53,7 @@
"callback_query", "shipping_query", "pre_checkout_query", "poll", "poll_answer", "my_chat_member", "chat_member",
"chat_join_request", "message_reaction", "message_reaction_count", "removed_chat_boost", "chat_boost",
"business_connection", "business_message", "edited_business_message", "deleted_business_messages",
"purchased_paid_media", "managed_bot", "guest_message"
"purchased_paid_media", "managed_bot", "guest_message", "subscription"
]


Expand Down
6 changes: 4 additions & 2 deletions tests/test_handler_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def update_type(message):
chat_boost_removed = None
return types.Update(1001234038283, message, edited_message, channel_post, edited_channel_post, inline_query,
chosen_inline_result, callback_query, shipping_query, pre_checkout_query, 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, None)
my_chat_member, chat_member, chat_join_request, message_reaction, message_reaction_count, chat_boost, chat_boost_removed, None,
None, None, None, None, None, None, None)
Comment thread
coder2020official marked this conversation as resolved.


@pytest.fixture()
Expand All @@ -95,7 +96,8 @@ def reply_to_message_update_type(reply_to_message):
chat_boost_removed = None
return types.Update(1001234038284, reply_to_message, edited_message, channel_post, edited_channel_post,
inline_query, chosen_inline_result, callback_query, shipping_query, pre_checkout_query,
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, None)
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, None,
None)
Comment thread
coder2020official marked this conversation as resolved.


def next_handler(message):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ def create_message_update(text):
edited_business_message=None,
deleted_business_messages=None,
managed_bot=None,
guest_message=message)
guest_message=None,
subscription=None)

def test_is_string_unicode(self):
s1 = u'string'
Expand Down
Loading