go-tdlib/example
2023-11-07 05:47:05 +08:00
..
bot Update to TDLib 1.8.21 2023-11-07 05:47:05 +08:00
command Update to TDLib 1.8.21 2023-11-07 05:47:05 +08:00
event Update example 2023-03-11 19:13:40 +08:00
media Update to TDLib 1.8.21 2023-11-07 05:47:05 +08:00
pending Update to TDLib 1.8.21 2023-11-07 05:47:05 +08:00
raw_update Update example 2023-03-11 19:13:40 +08:00
README.md Update README.md 2022-02-06 11:26:42 +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.

Pending updates

When starting a bot, we may have some updates that are missed to process when a listener IS NOT ready.

So we need to keep specific update types in memory until a listener is set, then we can process those updates again.

Raw Update

Get update without event filter.