Packages
telegex
1.5.0
1.9.0-rc.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.3-dev
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
1.0.0-rc.10
1.0.0-rc.9
1.0.0-rc.8
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
1.0.0-rc.0
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.1.0-rc.11
0.1.0-rc.10
0.1.0-rc.9
0.1.0-rc.8
0.1.0-rc.7
0.1.0-rc.6
0.1.0-rc.5
0.1.0-rc.4
0.1.0-rc.3
0.1.0-rc.2
0.1.0-rc.1
0.0.4
0.0.3
0.0.2
0.0.1
A Telegram bot framework, with its client-side based on data and code generation, boasts unparalleled adaptation speed and correctness for new versions.
Current section
Files
Jump to
Current section
Files
lib/telegex/polling/config.ex
defmodule Telegex.Polling.Config do
@moduledoc """
Configure polling mode.
Return the `%Telegex.Polling.Config{...}` struct for configuring the polling mode.
## Field descriptions
* `interval` - Interval in milliseconds between pulling updates. Defaults to `35`.
* `offset` - The `offset` parameter of the [`getUpdates`](https://core.telegram.org/bots/api#getupdates) method.
* `limit` - The `limit` parameter of the [`getUpdates`](https://core.telegram.org/bots/api#getupdates) method. Defaults to `100`.
* `timeout` - The `timeout` parameter of the [`getUpdates`](https://core.telegram.org/bots/api#getupdates) method. Defaults to `0`.
* `allowed_updates` - The `allowed_updates` parameter of the [`getUpdates`](https://core.telegram.org/bots/api#getupdates) method.
"""
use TypedStruct
typedstruct do
field :interval, non_neg_integer, default: 35
field :offset, integer, default: 0
field :limit, non_neg_integer, default: 100
field :timeout, non_neg_integer, default: 0
field :allowed_updates, [String.t()], default: []
end
end