You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, using self.bot.react(message: Message, emoji: str) should work for any message. You just need to persist the message object somewhere or build it by yourself again
send just returns the timestamp, so to build your own message, you could do something like this
ifself._is_phone_number(receiver):
sent_message=Message(
source=receiver, # otherwise we can't respond in the right chattimestamp=timestamp,
type=MessageType.SYNC_MESSAGE,
text=text,
base64_attachments=base64_attachments,
group=None,
)
else:
sent_message=Message(
source=self._phone_number, # no need to pretendtimestamp=timestamp,
type=MessageType.SYNC_MESSAGE,
text=text,
base64_attachments=base64_attachments,
group=receiver,
)
and then react on it?
Maybe send should always return a Message object like above and not just the timestamp 🤔
It is possible to react to messages from someone else when the bot gets triggerd:
await ctx.react(emoji=command_react)
But cat the bot add a reaction to its own message after sending it (
await ctx.send(message)
)?The text was updated successfully, but these errors were encountered: