WIP v0.5.0

This commit is contained in:
2026-02-11 23:05:10 +03:00
parent f2e600e0a9
commit a5ca836fa4
3 changed files with 114 additions and 25 deletions

View File

@@ -13,9 +13,10 @@ type EmptyParams struct{}
var NoParams = EmptyParams{}
type UpdateParams struct {
Offset int `json:"offset"`
Timeout int `json:"timeout"`
AllowedUpdates []string `json:"allowed_updates"`
Offset *int `json:"offset,omitempty"`
Limit *int `json:"limit,omitempty"`
Timeout *int `json:"timeout,omitempty"`
AllowedUpdates []UpdateType `json:"allowed_updates"`
}
func (api *Api) GetMe() (User, error) {