Add missing files for the previous commit

This commit is contained in:
Lonami Exo 2019-04-09 16:55:33 +04:00
parent b32d8307ec
commit bec0fa414e

View File

@ -94,6 +94,8 @@ class MessageParseMethods(UserMethods):
Extracts the response message known a request and Update result.
The request may also be the ID of the message to match.
If ``request is None`` this method returns ``{id: message}``.
If ``request.random_id`` is a list, this method returns a list too.
"""
if isinstance(result, types.UpdateShort):
@ -131,6 +133,9 @@ class MessageParseMethods(UserMethods):
update.message._finish_init(self, entities, input_chat)
return update.message
if request is None:
return id_to_message
random_id = request if isinstance(request, int) else request.random_id
if not utils.is_list_like(random_id):
if random_id in random_to_id: