Inline query answers cached, any way to disable cache? #2035
-
Hi! I have a function with dice roll, and it works fine with command, but if i trying to use it with inline query, i see execution of generation dice roll on first run, but then it does nothing for some time, just gives me a first generated result, after some time, it is regenerate results again, looks like results get cached, and just used from cache for some time. Can i disable cache, or clear inline answer results? None was found in docs for this case. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
As far as I remember answerInlineQuery has cache or some sort of parameter, check it |
Beta Was this translation helpful? Give feedback.
-
Yes, it is cache_time: Set it to 0 |
Beta Was this translation helpful? Give feedback.
Yes, it is cache_time:
https://core.telegram.org/bots/api#answerinlinequery
Set it to 0