mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +00:00
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:
parent
34fcefe534
commit
9df9b25c72
1 changed files with 3 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue