reply to specific message

This commit is contained in:
ned
2022-12-05 12:26:22 +01:00
parent 39913b33ff
commit 7ffffdcc46

View File

@@ -32,6 +32,7 @@ class ChatGPT3TelegramBot:
response = self.gpt3_bot.get_chat_response(update.message.text)
await context.bot.send_message(
chat_id=update.effective_chat.id,
reply_to_message_id=update.message.message_id,
text=response["message"],
parse_mode=telegram.constants.ParseMode.MARKDOWN
)