Update README.md
This commit is contained in:
parent
c2e33da277
commit
ba82c11d66
20
README.md
20
README.md
@ -300,16 +300,18 @@ On every input the user is sending back to the bot the Action event gets raised.
|
|||||||
```
|
```
|
||||||
public class SimpleForm : AutoCleanForm
|
public class SimpleForm : AutoCleanForm
|
||||||
{
|
{
|
||||||
public SimpleForm()
|
public SimpleForm()
|
||||||
{
|
{
|
||||||
this.DeleteSide = eSide.Both;
|
this.DeleteSide = TelegramBotBase.Enums.eDeleteSide.Both;
|
||||||
this.DeleteMode = eDeleteMode.OnLeavingForm;
|
this.DeleteMode = TelegramBotBase.Enums.eDeleteMode.OnLeavingForm;
|
||||||
}
|
|
||||||
|
|
||||||
public override async Task Opened()
|
this.Opened += SimpleForm_Opened;
|
||||||
{
|
}
|
||||||
await this.Device.Send("Hello world! (send 'back' to get back to Start)\r\nOr\r\nhi, hello, maybe, bye and ciao");
|
|
||||||
}
|
private async Task SimpleForm_Opened(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await this.Device.Send("Hello world! (send 'back' to get back to Start)\r\nOr\r\nhi, hello, maybe, bye and ciao");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public override async Task Load(MessageResult message)
|
public override async Task Load(MessageResult message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user