File tree Expand file tree Collapse file tree
pyrogram/methods/messages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from typing import Optional , Union
2020
2121import pyrogram
22- from pyrogram import raw , enums
22+ from pyrogram import enums , raw
2323
2424
2525class SendPaidReaction :
@@ -65,8 +65,6 @@ async def send_paid_reaction(
6565 is_queryable = privacy in [enums .PaidReactionPrivacy .CHAT ]
6666
6767 privacy = privacy .value (peer = await self .resolve_peer (send_as )) if is_queryable else privacy .value ()
68- else :
69- privacy = None
7068
7169 rpc = raw .functions .messages .SendPaidReaction (
7270 peer = await self .resolve_peer (chat_id ),
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ async def send_voice(
184184 await app.send_voice("me", "voice.ogg", duration=20)
185185
186186 # Send self-destructing voice note
187- await app.send_voice("me", "voice.ogg", ttl_seconds=(1 << 31) - 1 )
187+ await app.send_voice("me", "voice.ogg", view_once=True )
188188 """
189189 file = None
190190
You can’t perform that action at this time.
0 commit comments