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
tg.NewInputFileFS(fsys fs.FS, path string)
For avoid rewriting of Webhook for different routers or environments (e.g. lambda functions) we should provide:
WebhookRequest
struct
WebhookResponse
struct
Webhook.ServeRequest
method
Add message content type Filter
When we convert from underscore to camel case, we get not uppercased abbreviations like Id
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)
It can be useful for:
- logging
- auto retry in case of flood control
Current Coverage: ![codecov](https://camo.githubusercontent.com/46b478350e8743e7d715c3b634c908b704c5070f6fdc4cc978927b71ea18884f/68747470733a2f2f636f6465636f762e696f2f67682f6d722d6c696e63682f676f2d74672f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d3945493543454959584c)
Places to improve: