Closed drvirtuozov closed 7 years ago
Actually this it's not a bug, session is disabled by default for inline queries cause it's not clear how to handle session for one user in different chats.
You can provide custom session key resolver as following:
bot.use(Telegraf.memorySession({
getSessionKey: (ctx) => ctx.from && `${ctx.from.id}:${ctx.chat.id || 'defaultChatId or something'}`
}))
I would like to use different inline query answers in different scenes, but it throws an error: