Versions in this module Expand all Collapse all v0 v0.1.0 Jul 15, 2026 Changes in this version + const HeaderTelegramBotAPISecretToken + type OptOptionsSetter func(o *Options) + func WithAllowedUpdates(opt []string) OptOptionsSetter + func WithBufferSize(opt int) OptOptionsSetter + func WithClient(opt client.ClientWithResponsesInterface) OptOptionsSetter + func WithDropPendingUpdates(opt bool) OptOptionsSetter + func WithMaxBodyBytes(opt int64) OptOptionsSetter + func WithMaxConnections(opt int) OptOptionsSetter + func WithToken(opt string) OptOptionsSetter + func WithUrl(opt string) OptOptionsSetter + func WithWebhookRegistrationEnabled(enabled bool) OptOptionsSetter + type Options struct + func NewOptions(options ...OptOptionsSetter) Options + func (o *Options) Validate() error + type Webhook struct + func New(opts Options) (*Webhook, error) + func (h *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (h *Webhook) SetWebhook(ctx context.Context) error + func (h *Webhook) Start(ctx context.Context) error + func (h *Webhook) Stop(_ context.Context) error + func (h *Webhook) UpdateChan() <-chan client.Update