pyrofork: Add spoiler support for copy_message and send_cached_media methods #18

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-08-08 20:30:42 +07:00
parent 34fcefe534
commit 9df9b25c72
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -122,6 +122,9 @@ class SendCachedMedia:
media = utils.get_input_media_from_file_id(file_id)
media.spoiler = has_spoiler
media = utils.get_input_media_from_file_id(file_id)
media.spoiler = has_spoiler
r = await self.invoke(
raw.functions.messages.SendMedia(
peer=await self.resolve_peer(chat_id),