Closed Satont closed 2 years ago
With session key binded to from?.id
it works, so not a bug? (default is chat?.id
)
function getSessionKey(ctx: Context): string | undefined {
return ctx.from?.id.toString();
}
the discussion in #89 might be relevant
Correct, this is not a bug, and correct again, #89 explains why we should not change the default behaviour here. (TL;DR: potential data loss on webhooks.)
Is this documented anywhere? If so, I have no further questions.
Is what exactly documented? Things about the session key are here: https://grammy.dev/plugins/session.html#session-keys
Closing because of inactivity.
Hello. It looks as if the session key cannot be resolved for payment. This happens after I click "pay 120 rub" in the dialog box from telegram, after I filled my card on a third-party service (UKassa)
Middlewres:
session:
i18n:
Also composer code, if it will be helpful:
Stack:
Node: 16 Grammy: 1.6.2