grammyjs / conversations

Conversational interfaces for grammY.
https://grammy.dev/plugins/conversations
MIT License
53 stars 17 forks source link

Use with files plugin #87

Closed ralphilius closed 1 year ago

ralphilius commented 1 year ago

I've posted here https://github.com/grammyjs/files/issues/4, but I reposted here for more exposure.

The files plugin use bot.api.config.use for configuration. Is it safe to use hydrateFiles(token) within conversation.run?

KnorpelSenf commented 1 year ago

You can call ctx.api.config.use inside conversation.run, yes. Safe in what way?

ralphilius commented 1 year ago

You can call ctx.api.config.use inside conversation.run, yes. Safe in what way?

Ah, I just mean is it possible to use inside that function. Thanks for clarifying.