View Source Telegex.Polling.Config (Telegex v1.8.0)
Configure polling mode.
Return the %Telegex.Polling.Config{...} struct for configuring the polling mode.
Field descriptions
interval- Interval in milliseconds between pulling updates. Defaults to35.offset- Theoffsetparameter of thegetUpdatesmethod.limit- Thelimitparameter of thegetUpdatesmethod. Defaults to100.timeout- Thetimeoutparameter of thegetUpdatesmethod. Defaults to0.allowed_updates- Theallowed_updatesparameter of thegetUpdatesmethod.
Summary
Types
@type t() :: %Telegex.Polling.Config{ allowed_updates: [String.t()], interval: non_neg_integer(), limit: non_neg_integer(), offset: integer(), timeout: non_neg_integer() }