fix shutdown long polling cancellation and database logger close

This commit is contained in:
2026-03-19 14:07:03 +03:00
parent 4ebe76dd4a
commit 2fc171d9a3
4 changed files with 36 additions and 35 deletions
+5
View File
@@ -48,6 +48,11 @@ func (api *API) GetUpdates(params UpdateParams) ([]Update, error) {
return req.Do(api)
}
func (api *API) GetUpdatesWithContext(ctx context.Context, params UpdateParams) ([]Update, error) {
req := NewRequest[[]Update]("getUpdates", params)
return req.DoWithContext(ctx, api)
}
// SetWebhookP holds parameters for the setWebhook method.
// See https://core.telegram.org/bots/api#setwebhook
type SetWebhookP struct {