Skip to content

Commit

Permalink
Merge pull request #54 from bschwab/message-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ruecat authored May 26, 2024
2 parents b281ffe + edc3ea1 commit 847e501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ async def handle_response(message, response_data, full_response):
return False

async def send_response(message, text):
if message.chat.id == message.from_user.id:
# A negative message.chat.id is a group message
if message.chat.id < 0 or message.chat.id == message.from_user.id:
await bot.send_message(chat_id=message.chat.id, text=text)
else:
await bot.edit_message_text(
Expand Down

0 comments on commit 847e501

Please sign in to comment.