remove reply quote to provide raw message
This commit is contained in:
parent
83745f1174
commit
5ac09003b9
1 changed files with 3 additions and 3 deletions
6
bot.py
6
bot.py
|
@ -485,7 +485,7 @@ class Bot:
|
||||||
text = text.strip()
|
text = text.strip()
|
||||||
try:
|
try:
|
||||||
await send_room_message(self.client, room_id, reply_message=text,
|
await send_room_message(self.client, room_id, reply_message=text,
|
||||||
reply_to_event_id=reply_to_event_id, sender_id=sender_id, user_message=raw_user_message)
|
reply_to_event_id="", sender_id=sender_id, user_message=raw_user_message)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error: {e}", exc_info=True)
|
logger.error(f"Error: {e}", exc_info=True)
|
||||||
|
|
||||||
|
@ -503,7 +503,7 @@ class Bot:
|
||||||
text = text.strip()
|
text = text.strip()
|
||||||
try:
|
try:
|
||||||
await send_room_message(self.client, room_id, reply_message=text,
|
await send_room_message(self.client, room_id, reply_message=text,
|
||||||
reply_to_event_id=reply_to_event_id, sender_id=sender_id, user_message=raw_user_message)
|
reply_to_event_id="", sender_id=sender_id, user_message=raw_user_message)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error: {e}", exc_info=True)
|
logger.error(f"Error: {e}", exc_info=True)
|
||||||
|
|
||||||
|
@ -520,7 +520,7 @@ class Bot:
|
||||||
text = text.strip()
|
text = text.strip()
|
||||||
try:
|
try:
|
||||||
await send_room_message(self.client, room_id, reply_message=text,
|
await send_room_message(self.client, room_id, reply_message=text,
|
||||||
reply_to_event_id=reply_to_event_id, sender_id=sender_id, user_message=raw_user_message)
|
reply_to_event_id="", sender_id=sender_id, user_message=raw_user_message)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error: {e}", exc_info=True)
|
logger.error(f"Error: {e}", exc_info=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue