mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-11 00:50:56 +03:00
Fix forward_messages for a single message when using IDs
This commit is contained in:
parent
4c1555cc5f
commit
68bf9f76f6
|
@ -708,7 +708,10 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods):
|
||||||
id=chunk,
|
id=chunk,
|
||||||
to_peer=entity,
|
to_peer=entity,
|
||||||
silent=silent,
|
silent=silent,
|
||||||
grouped=grouped
|
# Trying to send a single message as grouped will cause
|
||||||
|
# GROUPED_MEDIA_INVALID. If more than one message is forwarded
|
||||||
|
# (even without media...), this error goes away.
|
||||||
|
grouped=len(chunk) > 1 and grouped
|
||||||
)
|
)
|
||||||
result = await self(req)
|
result = await self(req)
|
||||||
sent.extend(self._get_response_message(req, result, entity))
|
sent.extend(self._get_response_message(req, result, entity))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user