mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 13:34:51 +00:00
Fix missing async/await for set_slow_mode
This commit is contained in:
parent
45c6df45e9
commit
23789393fe
1 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ from ...ext import BaseClient
|
|||
|
||||
|
||||
class SetSlowMode(BaseClient):
|
||||
def set_slow_mode(
|
||||
async def set_slow_mode(
|
||||
self,
|
||||
chat_id: Union[int, str],
|
||||
seconds: int,
|
||||
|
|
@ -47,9 +47,9 @@ class SetSlowMode(BaseClient):
|
|||
app.set_slow_mode("pyrogramchat", 60)
|
||||
"""
|
||||
|
||||
self.send(
|
||||
await self.send(
|
||||
functions.channels.ToggleSlowMode(
|
||||
channel=self.resolve_peer(chat_id),
|
||||
channel=await self.resolve_peer(chat_id),
|
||||
seconds=seconds
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue