def process_update(self, update: types.Update):
        """
        Parse Update object

        :param update:
        :return:
        """
        yield 'update_id', update.update_id

        if update.message:
            yield 'update_type', 'message'
            yield from self.process_message(update.message)
        if update.edited_message:
            yield 'update_type', 'edited_message'
            yield from self.process_message(update.edited_message)
        if update.channel_post:
            yield 'update_type', 'channel_post'
            yield from self.process_message(update.channel_post)
        if update.edited_channel_post:
            yield 'update_type', 'edited_channel_post'
            yield from self.process_message(update.edited_channel_post)
        if update.inline_query:
            yield 'update_type', 'inline_query'
            yield from self.process_inline_query(update.inline_query)
        if update.chosen_inline_result:
            yield 'update_type', 'chosen_inline_result'
            yield from self.process_chosen_inline_result(update.chosen_inline_result)
        if update.callback_query:
            yield 'update_type', 'callback_query'
            yield from self.process_callback_query(update.callback_query)
        if update.shipping_query:
            yield 'update_type', 'shipping_query'
            yield from self.process_shipping_query(update.shipping_query)
        if update.pre_checkout_query:
            yield 'update_type', 'pre_checkout_query'
            yield from self.process_pre_checkout_query(update.pre_checkout_query)
def process_update ( self , update : types . Update ) : yield 'update_id' , update . update_id if update . message : yield 'update_type' , 'message' yield from self . process_message ( update . message ) if update . edited_message : yield 'update_type' , 'edited_message' yield from self . process_message ( update . edited_message ) if update . channel_post : yield 'update_type' , 'channel_post' yield from self . process_message ( update . channel_post ) if update . edited_channel_post : yield 'update_type' , 'edited_channel_post' yield from self . process_message ( update . edited_channel_post ) if update . inline_query : yield 'update_type' , 'inline_query' yield from self . process_inline_query ( update . inline_query ) if update . chosen_inline_result : yield 'update_type' , 'chosen_inline_result' yield from self . process_chosen_inline_result ( update . chosen_inline_result ) if update . callback_query : yield 'update_type' , 'callback_query' yield from self . process_callback_query ( update . callback_query ) if update . shipping_query : yield 'update_type' , 'shipping_query' yield from self . process_shipping_query ( update . shipping_query ) if update . pre_checkout_query : yield 'update_type' , 'pre_checkout_query' yield from self . process_pre_checkout_query ( update . pre_checkout_query )
Parse Update object

        :param update:
        :return: