- Improvements to system calls

- system calls now async with await
- added start command to example
- added "handled" property to system call event args
This commit is contained in:
FlorianDahn
2019-03-20 16:57:10 +07:00
parent 816bf4cbbe
commit c6666f72bc
4 changed files with 42 additions and 19 deletions
+19 -1
View File
@@ -44,6 +44,10 @@ namespace TelegramBotBase.Form
}
/// <summary>
/// Gets invoked if gets navigated to this form
/// </summary>
/// <returns></returns>
public virtual async Task Opened()
{
@@ -62,17 +66,31 @@ namespace TelegramBotBase.Form
}
/// <summary>
/// Gets invoked if the form gets loaded and on every message belongs to this context
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public virtual async Task Load(MessageResult message)
{
}
/// <summary>
/// Gets invoked if the user has clicked a button.
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public virtual async Task Action(MessageResult message)
{
}
/// <summary>
/// Gets invoked at the end of the cycle to "Render" text, images, buttons, etc...
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public virtual async Task Render(MessageResult message)
{