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

View Source

Telegram-local /topic command handler extracted from the transport shell.

Summary

Types

callbacks()

@type callbacks() :: %{
  extract_message_ids: (map() ->
                          {integer() | nil, integer() | nil, integer() | nil}),
  send_system_message: (map(),
                        integer(),
                        integer()
                        | nil,
                        integer()
                        | nil,
                        binary() ->
                          any())
}

Functions

handle_topic_command(state, inbound, callbacks)

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