Closed gen4sp closed 1 year ago
to resolve the issue I have to use new bot, and use bot.api.getFile
instead of ctx.api.getFile()
you didnt await
the c.reply
and c.external(asyncFn)
If you run your bot on webhooks, you cannot download large files inside your middleware. This includes conversations. You need to offload large file handling to task queues which you can in turn supply from conversations. Check out https://grammy.dev/guide/deployment-types#ending-webhook-requests-in-time.
Not sure what happens, but the structure is following