grammyjs / storages

Storage adapters for grammY sessions.
48 stars 23 forks source link

How can I reset Free Storage linked to my bot token? #214

Closed oluckyman closed 3 months ago

oluckyman commented 3 months ago

I'm in the development stage and want to reset all the data associated with my bot token to start fresh. How can I clean up the free storage or check what it contains?

KnorpelSenf commented 3 months ago

So far, nobody has built an interactive dashboard for free sessions (not sure if you were asking for that). Bulk operations therefore aren't implemented yet.

You can view single session values with console.log(ctx.session) and you can clear session data with ctx.session = undefined in any handler.

oluckyman commented 3 months ago

thanks! these two tips are sufficient for my case.

KnorpelSenf commented 3 months ago

Awesome!