fix(bot): correct message type for emoji reaction
Changed the message type check from `RoomMessageText` to `RoomSendResponse` for accurate handling of sent message responses regarding emoji reactions. This ensures appropriate logging and message processing in compliance with expected response types.
This commit is contained in:
parent
84de0f7eb5
commit
2632527f65
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ from nio import (
|
|||
RoomKickResponse,
|
||||
RoomInviteResponse,
|
||||
ReactionEvent,
|
||||
RoomSendResponse,
|
||||
)
|
||||
|
||||
import logging
|
||||
|
@ -220,7 +221,7 @@ class ApplicationBot:
|
|||
)
|
||||
|
||||
# React to the message with approve, reject, and invite emojis
|
||||
if isinstance(sent_message, RoomMessageText):
|
||||
if isinstance(sent_message, RoomSendResponse):
|
||||
logging.debug(f"Reacting to message {sent_message.event_id}")
|
||||
|
||||
await self.client.room_send(
|
||||
|
|
Loading…
Reference in a new issue