ExGram.Updates.Polling (ex_gram v0.64.0)

Copy Markdown View Source

Updates implementation using the polling method.

This GenServer continuously polls the Telegram Bot API for new updates using ExGram.get_updates!/1 with long polling (50 second timeout by default).

Automatically deletes any existing webhook on startup (configurable with :delete_webhook option).

Configured with config :ex_gram, updates: ExGram.Updates.Polling, polling: [...].

See the Polling and Webhooks guide for more details.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(arg)

Callback implementation for GenServer.init/1.

start_link(opts)