LemonChannels.Adapters.Telegram.Transport.Poller (lemon_channels v0.1.0)

View Source

Poll-loop and Telegram update dispatch helpers for the Telegram transport shell.

Summary

Types

callbacks()

@type callbacks() :: %{
  handle_callback_query: (map(), map() -> any()),
  execute_inbound_message: (map(), map() -> map()),
  index_known_target: (map(), map() -> map()),
  maybe_log_drop: (map(), map(), term() -> any()),
  maybe_transcribe_voice: (map(), map() ->
                             {:ok, map()} | {:error, term()} | {:skip, map()}),
  process_media_group: (map(), map() -> any()),
  persist_offset: (map(), integer() -> any()),
  send_approval_request: (map(), map() -> any()),
  start_async_task: (map(), (-> any()) -> any()),
  submit_buffer: (map(), map() -> map())
}

Functions

poll_updates(state, callbacks)

@spec poll_updates(map(), callbacks()) :: map()