telepot raise KeyError('No suggested keys %s in %s' % (str(keys), str(d))) code example
Example: telepot raise KeyError('No suggested keys %s in %s' % (str(keys), str(d)))
# Add ' update_id' fix the bug
def _extract_message(update):
key = _find_first_key(update, [
'message',
'edited_message',
'channel_post',
'edited_channel_post',
'callback_query',
'inline_query',
'chosen_inline_result',
'shipping_query',
'pre_checkout_query',
'update_id'])
return key, update[key]