mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Fix comment_to for a group of messages (#4120)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user