telebot
telebot copied to clipboard
Wizard Mode by having separated Scene
Hi I have to manage my bot by a tool like scene manager and traveling between scenes! also some scenes must be on step by step wizard mode! so:
- how can I manage separated scenes to avoid interfering entered data for different scenes ?
- how can I create a wizard scene by having a wizard like below example (it contains 2 states , one is default normal state and second is identification state , so it requires a wizard state): @jack: /start @bot: /help: help , /identify: you will send your profile info , /getInfo: we will send you our information @jack: /identify @bot: Hi, please enter your name: jack: jack @bot: Hi jack, please enter your Age: jack: 26 @bot: jack , please send your photo: jack: attach
thanks a lot...
Hi, you can user ask plugin for that https://github.com/mullwar/telebot/blob/v1.2.3/examples/plugin-askUser.js
thanks a lot mullwar...
just 2 another simple questions!
- is there any way to manage bot state in each selected (entered) category? suppose that I want to show special help msg if the user selects a special button and then enters /help. so by typing /help in each category, I want to show it's selected category help!
- is there any way to having a tool like session or context or shared variable for saving local variables for special user inside step by step wizard? do you think the input msg variable can plays this role? I think dynamic variables in msg will be removed on the next steps!