mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-16 11:02:19 +03:00
urcf
This commit is contained in:
parent
267904ba17
commit
45873b153c
|
@ -1264,6 +1264,17 @@ class Message(ChatGetter, SenderGetter):
|
||||||
return await self._client.unpin_message(
|
return await self._client.unpin_message(
|
||||||
await self.get_input_chat(), self.id)
|
await self.get_input_chat(), self.id)
|
||||||
|
|
||||||
|
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?
|
||||||
|
# That or figure out a way to always set it directly.
|
||||||
|
if self._client:
|
||||||
|
return await self._client.send_reaction(
|
||||||
|
await self.get_input_chat(),
|
||||||
|
self.id,
|
||||||
|
reaction
|
||||||
|
)
|
||||||
|
|
||||||
# endregion Public Methods
|
# endregion Public Methods
|
||||||
|
|
||||||
# region Private Methods
|
# region Private Methods
|
||||||
|
|
Loading…
Reference in New Issue
Block a user