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
- Theoffset
parameter of thegetUpdates
method.limit
- Thelimit
parameter of thegetUpdates
method. Defaults to100
.timeout
- Thetimeout
parameter of thegetUpdates
method. Defaults to0
.allowed_updates
- Theallowed_updates
parameter of thegetUpdates
method.
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() }