You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GrammyError: Call to 'answerInlineQuery' failed! (400: Bad Request: can't parse inline query result: Can't parse entities: Character '(' is reserved and must be escaped with the preceding '\')
at toGrammyError (file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/core/error.js:47:12)
at ApiClient.callApi (file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/core/client.js:97:48)
at Object.runMicrotasks (ext:core/01_core.js:691:26)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:57:10)
at runNextTicks (ext:deno_node/_next_tick.ts:75:3)
at eventLoopTick (ext:core/01_core.js:182:21)
at async file:///src/bot.js:82:5
at async file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/composer.js:578:13
at async file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/composer.js:62:13
at async file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/composer.js:578:13 {
error: GrammyError: Call to 'answerInlineQuery' failed! (400: Bad Request: can't parse inline query result: Can't parse entities: Character '(' is reserved and must be escaped with the preceding '\')
at toGrammyError (file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/core/error.js:47:12)
at ApiClient.callApi (file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/core/client.js:97:48)
at Object.runMicrotasks (ext:core/01_core.js:691:26)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:57:10)
at runNextTicks (ext:deno_node/_next_tick.ts:75:3)
at eventLoopTick (ext:core/01_core.js:182:21)
at async file:///src/bot.js:82:5
at async file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/composer.js:578:13
at async file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/composer.js:62:13
at async file:///node_modules/.deno/grammy@1.34.0/node_modules/grammy/out/composer.js:578:13 {
method: "answerInlineQuery",
payload: {
inline_query_id: XXX
I removed the inline_query_id.
If a mealplan is for today or from a day in the past, the title includes (heute) or (vergangen). The mealplans are formatted in Markdown. Therefore, I have to escape the brackets there.
The text was updated successfully, but these errors were encountered:
If the meal plan is for today or for a date in past, (heute) or
(vergangen) is appended to it. The bot sends the meal plan in the
Markdown style of Telegram. There, brackets are reserved characters and
must therefore be escaped with \\. In the inline queries, the brackets
are not escaped because Markdown is not used there.
Closes#34
If the meal plan is for today or for a date in past, (heute) or
(vergangen) is appended to it. The bot sends the meal plan in the
Markdown style of Telegram. There, brackets are reserved characters and
must therefore be escaped with \\. In the inline queries, the brackets
are not escaped because Markdown is not used there.
Closes#34
See pull request #37
I removed the
inline_query_id
.If a mealplan is for today or from a day in the past, the title includes
(heute)
or(vergangen)
. The mealplans are formatted in Markdown. Therefore, I have to escape the brackets there.The text was updated successfully, but these errors were encountered: