mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 19:50:15 +03:00
Add missing await keyword (#710)
This commit is contained in:
parent
e505fc1711
commit
d4e1f13e41
|
@ -350,7 +350,8 @@ class NewMessage(_EventBuilder):
|
||||||
Responds to the message (not as a reply). This is a shorthand for
|
Responds to the message (not as a reply). This is a shorthand for
|
||||||
``client.send_message(event.chat, ...)``.
|
``client.send_message(event.chat, ...)``.
|
||||||
"""
|
"""
|
||||||
return await self._client.send_message(await self.input_chat, *args, **kwargs)
|
return await self._client.send_message(await self.input_chat,
|
||||||
|
*args, **kwargs)
|
||||||
|
|
||||||
async def reply(self, *args, **kwargs):
|
async def reply(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
@ -358,7 +359,7 @@ class NewMessage(_EventBuilder):
|
||||||
``client.send_message(event.chat, ..., reply_to=event.message.id)``.
|
``client.send_message(event.chat, ..., reply_to=event.message.id)``.
|
||||||
"""
|
"""
|
||||||
kwargs['reply_to'] = self.message.id
|
kwargs['reply_to'] = self.message.id
|
||||||
return await self._client.send_message(self.input_chat,
|
return await self._client.send_message(await self.input_chat,
|
||||||
*args, **kwargs)
|
*args, **kwargs)
|
||||||
|
|
||||||
async def forward_to(self, *args, **kwargs):
|
async def forward_to(self, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user