DefaultStateForm

- adding DefaultStateForm to redirect Sessions after reloading Sessions to a different Form instead of "restart" the session (i.e. on an in Bot wizard you just want to let the user continue on the main menu)
- adding to SaveSessions to save the "main menu" instead of skipping the ignored form
This commit is contained in:
FlorianDahn
2020-05-04 02:12:50 +02:00
parent 11eeb0dcab
commit 2fc16b18da
5 changed files with 63 additions and 5 deletions
@@ -3,11 +3,14 @@ using System.Collections.Generic;
using System.Text;
using TelegramBotBase.Args;
using TelegramBotBase.Base;
using TelegramBotBase.Form;
namespace TelegramBotBase.Interfaces
{
public interface IStateMachine
{
Type DefaultStateForm { get; }
void SaveFormStates(SaveStatesEventArgs e);
StateContainer LoadFormStates();