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.