View Code? Open in Web Editor
NEW
๐ค Go client library for accessing Telegram Bot API, with batteries for building complex bots included.
Home Page: https://pkg.go.dev/github.com/mr-linch/go-tg
License: MIT License
go-tg's People
Watchers
go-tg's Issues
Add message content type Filter
Current Coverage:
Places to improve:
In webhook mode, first, respond send through webhook reply, but other calls send to chan too.
It will be helpful in building calls:
return tg.NewSendMessageCall(tg.Username("MrLinch"), "hi").
Bind(update.Client).
DoVoid(ctx)
When we convert from underscore to camel case, we get not uppercased abbreviations like Id
It can be useful for:
- logging
- auto retry in case of flood control
For avoid rewriting of Webhook for different routers or environments (e.g. lambda functions) we should provide:
WebhookRequest
struct
WebhookResponse
struct
Webhook.ServeRequest
method
tg.NewInputFileFS(fsys fs.FS, path string)