Update README.md
This commit is contained in:
parent
4e23bedff1
commit
f7b71b59e2
23
README.md
23
README.md
@ -6,6 +6,29 @@ It is module which is based on the original TelegramBotLibrary you will find in
|
||||
|
||||
It gives you features which will look/feel like WinForms or have a good way to create apps with actions and forms.
|
||||
|
||||
---
|
||||
|
||||
How to start:
|
||||
|
||||
Within your empty App your need to put some initial lines including your APIKey to get things started. The "BotBase" Class will manage a lot of things for you, like system calls, action events and so on. "StartForm" is your first Formular which every user will get internally redirected to, like a start page, you could redirect from there later in code, so users won't recognize it. It needs to be a subclass of "FormBase" you will find in Namespace TelegramBotBase.Form.
|
||||
|
||||
|
||||
```
|
||||
|
||||
//Prepare the System
|
||||
BotBase<StartForm> bb = new BotBase<StartForm>("{YOUR API KEY}");
|
||||
|
||||
//Add Systemcommands if you like, you could catch them later
|
||||
bb.SystemCalls.Add("/start");
|
||||
|
||||
//Start your Bot
|
||||
bb.Start();
|
||||
|
||||
```
|
||||
|
||||
|
||||
---
|
||||
|
||||
I will add more notes to it soon, so stay tuned.
|
||||
|
||||
Warm regards
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user