grammyjs / conversations

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

Use with files plugin #87

Closed ralphilius closed 10 months ago

ralphilius commented 10 months 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 10 months ago

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

ralphilius commented 10 months 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.