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 to 35.
  • offset - The offset parameter of the getUpdates method.
  • limit - The limit parameter of the getUpdates method. Defaults to 100.
  • timeout - The timeout parameter of the getUpdates method. Defaults to 0.
  • allowed_updates - The allowed_updates parameter of the getUpdates 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()
}