Telegram and ChatGPT bot help

I am working on a Telegram bot to chat with group members using ChatGPT to create responses. I am collecting 10 recent messages from Telegram, creating an array from these responses, using using shuffle to pass on one of these responses to ChatGPT, pull in a response from there, send the response to Telegram grp.

I am trying to further enhance working of this bot. Please help me with this:

Is it possible to reply to the text/user on Telegram? I mean tagging the user or replying to the text and then sending the text? Currently, I am able to send the text in the grp as standalone, not tagging the user/replying to the text. I tried using update id as input to the original message id, but it gave error saying message not found.

You can target a message to reply to by expanding the “Advanced Settings” and inserting the original message’s ID into the field.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

I am trying to pass the message id, but says the same. Message thread not found.