From d625aa9162d96eeb8803e54e66f13fe7338237b4 Mon Sep 17 00:00:00 2001 From: AmirHossein Falahati Date: Fri, 12 Apr 2019 15:45:16 +0430 Subject: [PATCH 1/7] Add poll content type --- telepot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telepot/__init__.py b/telepot/__init__.py index 30cb9d4..7d324c0 100644 --- a/telepot/__init__.py +++ b/telepot/__init__.py @@ -73,7 +73,7 @@ def _find_first_key(d, keys): 'contact', 'location', 'venue', 'new_chat_member', 'left_chat_member', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', 'group_chat_created', 'supergroup_chat_created', 'channel_chat_created', 'migrate_to_chat_id', 'migrate_from_chat_id', 'pinned_message', - 'new_chat_members', 'invoice', 'successful_payment' + 'new_chat_members', 'invoice', 'successful_payment', 'poll' ] def glance(msg, flavor='chat', long=False): From df23f72ad4a2c4fc3210f81f101d5de81a1d19d1 Mon Sep 17 00:00:00 2001 From: AmirHossein Falahati Date: Fri, 12 Apr 2019 15:52:04 +0430 Subject: [PATCH 2/7] Add poll content type --- telepot/loop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telepot/loop.py b/telepot/loop.py index 4b1331b..2b96495 100644 --- a/telepot/loop.py +++ b/telepot/loop.py @@ -108,7 +108,8 @@ def _extract_message(update): 'inline_query', 'chosen_inline_result', 'shipping_query', - 'pre_checkout_query']) + 'pre_checkout_query', + 'poll']) return key, update[key] def _infer_handler_function(bot, h): From 30459824f65a6bd2abb0a51cd848cb5d385c240b Mon Sep 17 00:00:00 2001 From: AmirHossein Falahati Date: Sat, 1 Jun 2019 23:11:49 +0430 Subject: [PATCH 3/7] Create __init__.py --- __init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 __init__.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..4aa4e8b --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +from .telepot import * From 53862cd90354d4c016fde47b836e20516e769ac7 Mon Sep 17 00:00:00 2001 From: AmirHossein Falahati Date: Thu, 23 Jan 2020 21:52:01 +0330 Subject: [PATCH 4/7] Update __init__.py --- telepot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telepot/__init__.py b/telepot/__init__.py index 7d324c0..d304eaf 100644 --- a/telepot/__init__.py +++ b/telepot/__init__.py @@ -65,7 +65,7 @@ def _find_first_key(d, keys): for k in keys: if k in d: return k - raise KeyError('No suggested keys %s in %s' % (str(keys), str(d))) + # raise KeyError('No suggested keys %s in %s' % (str(keys), str(d))) all_content_types = [ From 3d0f79b7b5c3b3a769b52c994279fc78d13c076e Mon Sep 17 00:00:00 2001 From: AmirHossein Falahati Date: Tue, 9 Mar 2021 09:56:16 +0330 Subject: [PATCH 5/7] Update loop.py --- telepot/loop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/telepot/loop.py b/telepot/loop.py index 2b96495..af766b8 100644 --- a/telepot/loop.py +++ b/telepot/loop.py @@ -109,7 +109,10 @@ def _extract_message(update): 'chosen_inline_result', 'shipping_query', 'pre_checkout_query', - 'poll']) + 'poll', + 'my_chat_member']) + if not key: + return key, update return key, update[key] def _infer_handler_function(bot, h): From 0bb97d0d09a33527d83c8bbfe4b6e20928902652 Mon Sep 17 00:00:00 2001 From: AmirHossein Falahati Date: Tue, 9 Mar 2021 09:56:37 +0330 Subject: [PATCH 6/7] Update __init__.py --- telepot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telepot/__init__.py b/telepot/__init__.py index d304eaf..7ae7d83 100644 --- a/telepot/__init__.py +++ b/telepot/__init__.py @@ -73,7 +73,7 @@ def _find_first_key(d, keys): 'contact', 'location', 'venue', 'new_chat_member', 'left_chat_member', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', 'group_chat_created', 'supergroup_chat_created', 'channel_chat_created', 'migrate_to_chat_id', 'migrate_from_chat_id', 'pinned_message', - 'new_chat_members', 'invoice', 'successful_payment', 'poll' + 'new_chat_members', 'invoice', 'successful_payment', 'poll', 'my_chat_member' ] def glance(msg, flavor='chat', long=False): From b0fddcd814ef665498535b0f348100d37a52b642 Mon Sep 17 00:00:00 2001 From: AmirHossein Falahati Date: Tue, 9 Mar 2021 09:57:23 +0330 Subject: [PATCH 7/7] Update __init__.py --- telepot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telepot/__init__.py b/telepot/__init__.py index 7ae7d83..be1d0ab 100644 --- a/telepot/__init__.py +++ b/telepot/__init__.py @@ -18,7 +18,7 @@ from . import exception -__version_info__ = (12, 7) +__version_info__ = (12, 8) __version__ = '.'.join(map(str, __version_info__))