mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-24 10:23:44 +03:00
Fix comment_to for a group of messages (#4120)
This commit is contained in:
parent
0f0ca6b0d9
commit
aab8009a5a
|
@ -617,7 +617,7 @@ class MessageMethods:
|
||||||
peer=entity,
|
peer=entity,
|
||||||
msg_id=utils.get_message_id(message)
|
msg_id=utils.get_message_id(message)
|
||||||
))
|
))
|
||||||
m = r.messages[0]
|
m = min(r.messages, key=lambda msg: msg.id)
|
||||||
chat = next(c for c in r.chats if c.id == m.peer_id.channel_id)
|
chat = next(c for c in r.chats if c.id == m.peer_id.channel_id)
|
||||||
return utils.get_input_peer(chat), m.id
|
return utils.get_input_peer(chat), m.id
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user