1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Refactoring update 2

This commit is contained in:
Badiboy 2020-04-11 17:38:47 +03:00
parent 247fe6e947
commit dab80d421b

View File

@ -99,7 +99,7 @@ class Update(JsonDeserializable):
callback_query = CallbackQuery.de_json(obj.get('callback_query'))
shipping_query = ShippingQuery.de_json(obj.get('shipping_query'))
pre_checkout_query = PreCheckoutQuery.de_json(obj.get('pre_checkout_query'))
poll = Poll.de_json(obj['poll'])
poll = Poll.de_json(obj.get('poll'))
return cls(update_id, message, edited_message, channel_post, edited_channel_post, inline_query,
chosen_inline_result, callback_query, shipping_query, pre_checkout_query, poll)