go-tdlib/example
2022-01-30 03:51:49 +08:00
..
bot Add some example code 2022-01-30 03:51:49 +08:00
command Add some example code 2022-01-30 03:51:49 +08:00
event Add some example code 2022-01-30 03:51:49 +08:00
media Add some example code 2022-01-30 03:51:49 +08:00
raw_update Add some example code 2022-01-30 03:51:49 +08:00
README.md Add some example code 2022-01-30 03:51:49 +08:00

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.