grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.35k stars 115 forks source link

Help to guidance for migrate from Telegraf 4 BaseScene #30

Closed NormandoHall closed 3 years ago

NormandoHall commented 3 years ago

Hi all. I want to say thanks to all grammY developers for this superb and excellent documented library!

I'm currently using telegraf 4 baseScene as usual ctx.scene.enter, ctx.scene.leave, and inline keyboard callback/action scene, and so on...

So, how is the better way to migrate scenes logic to grammY?

Regards!

KnorpelSenf commented 3 years ago

Hi and thanks for the kind words!

Unfortunately, there is no equivalent for scenes yet. Once it exists, it will be announced in https://t.me/grammyjs_news. Until then, you can follow this guide which describes how to manually resemble scenes in order to recreate forms in the chat interface: https://grammy.dev/plugins/router.html#combining-routers-with-sessions