mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-20 09:01:59 +03:00
Fix comment_to for a group of messages
This commit is contained in:
parent
9fe5937ae1
commit
7e9e058b71
|
@ -617,7 +617,7 @@ class MessageMethods:
|
|||
peer=entity,
|
||||
msg_id=utils.get_message_id(message)
|
||||
))
|
||||
m = r.messages[0]
|
||||
m = r.messages[-1]
|
||||
chat = next(c for c in r.chats if c.id == m.peer_id.channel_id)
|
||||
return utils.get_input_peer(chat), m.id
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user