mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-15 18:42:23 +03:00
recio
This commit is contained in:
parent
4604da7d6d
commit
6d30b9f053
|
@ -1265,9 +1265,11 @@ class Message(ChatGetter, SenderGetter):
|
||||||
await self.get_input_chat(), self.id)
|
await self.get_input_chat(), self.id)
|
||||||
|
|
||||||
async def react(self, reaction=None):
|
async def react(self, reaction=None):
|
||||||
# TODO Constantly checking if client is a bit annoying,
|
"""
|
||||||
# maybe just make it illegal to call messages from raw API?
|
Reacts on the given message. Shorthand for
|
||||||
# That or figure out a way to always set it directly.
|
`telethon.client.messages.MessageMethods.send_reaction`
|
||||||
|
with both ``entity`` and ``message`` already set.
|
||||||
|
"""
|
||||||
if self._client:
|
if self._client:
|
||||||
return await self._client.send_reaction(
|
return await self._client.send_reaction(
|
||||||
await self.get_input_chat(),
|
await self.get_input_chat(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user