Skip to content

Commit

Permalink
Update handlers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaabb committed Aug 5, 2024
1 parent ff1c1fc commit eeed55d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ async def question_command(update: Update, context: CallbackContext) -> None:
)
response_data = response.json()
question = response_data.get('Question', 'No question found')
print(question)
to_return = question
await update.message.reply_text(f"Server response: {to_return}")
await update.message.reply_text(f"{to_return}")
except requests.exceptions.RequestException as e:
await update.message.reply_text(f"An error occurred: {e}")

Expand Down

0 comments on commit eeed55d

Please sign in to comment.