telebot icon indicating copy to clipboard operation
telebot copied to clipboard

Wizard Mode by having separated Scene

Open HadiAbbasi opened this issue 8 years ago • 3 comments

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:

  1. how can I manage separated scenes to avoid interfering entered data for different scenes ?
  2. 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...

HadiAbbasi avatar Jan 03 '18 08:01 HadiAbbasi

Hi, you can user ask plugin for that https://github.com/mullwar/telebot/blob/v1.2.3/examples/plugin-askUser.js

mullwar avatar Jan 07 '18 08:01 mullwar

thanks a lot mullwar...

HadiAbbasi avatar Jan 07 '18 12:01 HadiAbbasi

just 2 another simple questions!

  1. 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!
  2. 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!

HadiAbbasi avatar Jan 07 '18 13:01 HadiAbbasi