Merge pull request #1 from lukaszraczylo/feat/typed-allowed-updates

feat(api): type AllowedUpdates as []UpdateType for compile-time typo …
This commit is contained in:
2026-05-09 20:53:45 +01:00
committed by GitHub
4 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ type WebhookInfo struct {
// Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
MaxConnections *int64 `json:"max_connections,omitempty"`
// Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
AllowedUpdates []string `json:"allowed_updates,omitempty"`
AllowedUpdates []UpdateType `json:"allowed_updates,omitempty"`
}
// This object represents a Telegram user or bot.