mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-23 13:36:39 +00:00
Add missing files for the previous commit
This commit is contained in:
parent
b32d8307ec
commit
bec0fa414e
@ -94,6 +94,8 @@ class MessageParseMethods(UserMethods):
|
|||||||
Extracts the response message known a request and Update result.
|
Extracts the response message known a request and Update result.
|
||||||
The request may also be the ID of the message to match.
|
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 ``request.random_id`` is a list, this method returns a list too.
|
||||||
"""
|
"""
|
||||||
if isinstance(result, types.UpdateShort):
|
if isinstance(result, types.UpdateShort):
|
||||||
@ -131,6 +133,9 @@ class MessageParseMethods(UserMethods):
|
|||||||
update.message._finish_init(self, entities, input_chat)
|
update.message._finish_init(self, entities, input_chat)
|
||||||
return update.message
|
return update.message
|
||||||
|
|
||||||
|
if request is None:
|
||||||
|
return id_to_message
|
||||||
|
|
||||||
random_id = request if isinstance(request, int) else request.random_id
|
random_id = request if isinstance(request, int) else request.random_id
|
||||||
if not utils.is_list_like(random_id):
|
if not utils.is_list_like(random_id):
|
||||||
if random_id in random_to_id:
|
if random_id in random_to_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user