Inline query answers cached, any way to disable cache? #2035
Answered
by
coder2020official
sudousercom
asked this question in
Q&A
|
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. |
Answered by
coder2020official
Aug 21, 2023
Replies: 3 comments 2 replies
|
As far as I remember answerInlineQuery has cache or some sort of parameter, check it |
0 replies
|
Yes, it is cache_time: Set it to 0 |
2 replies
Answer selected by
sudousercom
|
For me it cache_time = 0 works only on Android and Web version. Windows/Linux desktops still do cache |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it is cache_time:
https://core.telegram.org/bots/api#answerinlinequery
Set it to 0