Add some example code

This commit is contained in:
c0re100 2022-01-30 03:51:49 +08:00
parent 82bdbff466
commit 7196ad9adc
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF
9 changed files with 553 additions and 1 deletions

17
example/README.md Normal file
View file

@ -0,0 +1,17 @@
## Example
### Bot
Login to bot account.
### Command
Handle user command and reply it.
### Event Filter
Since we can have many update type in updates.
So we need to filter update events, like UpdateNewMessage, UpdateMessageSendSucceeded, UpdateMessageSendFailed, etc.
### Media
Send photo or album to chat.
### Raw Update
Get update without event filter.