Creating a specific reply bot for Telegram

Hey there!

I am trying to get a bot working for Telegram. It mainly works, but I dont know how to set it up, to only reply to the specified person that asked the question in the first place (example image).
I am using a costum assistant from OpenAi and it has a slight 5s delay before replying, how could I boos the reply speed?

Thanks for the help in advance!

Screenshot_2

Hi @Johhney, you can the match user you want to reply using the id or username that you have received from watch updates.

1 Like

Hey there!
Thanks for the reply, I tried every possible option, but cant get the bot to reply to the one that asked the question… Adding an example image again
Screenshot_1
When I promt the bot with a question, I want him to reply to me, like in the example. Because lets say a couple of people ask the bot, I need it to respond to individual people separate.
If it is even possible, hope I gave a good example

You’ll need to use a data store to store the thread id from the assistant, and then reuse the same thread id from the data store when the user messages again.

Hey there!
Got it working with putting message ID into the Original message ID promt!

Thanks all fro your help!

1 Like