Merge branch 'master' of https://github.com/MajMcCloud/TelegramBotFramework
This commit is contained in:
commit
94fe263676
20
README.md
20
README.md
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
Test the Testproject: [@TGBaseBot](https://t.me/TGBaseBot)
|
Test the Testproject: [@TGBaseBot](https://t.me/TGBaseBot)
|
||||||
|
|
||||||
|
Join the Telegram Group: [https://t.me/tgbotbase](https://t.me/tgbotbase)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Index
|
## Index
|
||||||
@ -83,45 +85,45 @@ public class StartForm : FormBase
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets invoked during Navigation to this form
|
//Gets invoked during Navigation to this form
|
||||||
public override async Task Init(params object[] param)
|
public override async Task Init(params object[] param)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets invoked if the form gets opened (with Form.NavigateTo(NewForm))
|
//Gets invoked if the form gets opened (with Form.NavigateTo(NewForm))
|
||||||
public override async Task Opened()
|
public override async Task Opened()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets invoked if the form gets leaved
|
//Gets invoked if the form gets leaved
|
||||||
public override async Task Closed()
|
public override async Task Closed()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets invoked on every Message/Action/Data in this context
|
//Gets invoked on every Message/Action/Data in this context
|
||||||
public override async Task Load(MessageResult message)
|
public override async Task Load(MessageResult message)
|
||||||
{
|
{
|
||||||
await this.Device.Send("Hello world!");
|
await this.Device.Send("Hello world!");
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets invoked on Button clicks
|
//Gets invoked on Button clicks
|
||||||
public override async Task Action(MessageResult message)
|
public override async Task Action(MessageResult message)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets invoked on Data uploades by the user (of type Photo, Audio, Video, Contact, Location, Document)
|
//Gets invoked on Data uploades by the user (of type Photo, Audio, Video, Contact, Location, Document)
|
||||||
public override async Task SentData(DataResult data)
|
public override async Task SentData(DataResult data)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Gets invoked on every Message/Action/Data to render Design or Response
|
//Gets invoked on every Message/Action/Data to render Design or Response
|
||||||
public override async Task Render(MessageResult message)
|
public override async Task Render(MessageResult message)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user