Telegram.Types (telegram v2.1.0)

View Source

Telegram types

Summary

Types

bot_opts()

@type bot_opts() :: [
  token: token(),
  max_bot_concurrency: max_bot_concurrency(),
  allowed_updates: [String.t()]
]

Bot options.

bot_routing()

@type bot_routing() :: %{required(token()) => bot_behaviour :: module()}

bot_spec()

@type bot_spec() :: {Telegram.Bot.Dispatch.t(), bot_opts()}

max_bot_concurrency()

@type max_bot_concurrency() :: pos_integer() | :infinity

method()

@type method() :: String.t()

token()

@type token() :: String.t()

update()

@type update() :: map()

Functions

default_allowed_updates()

@spec default_allowed_updates() :: [String.t()]

default_max_bot_concurrency()

@spec default_max_bot_concurrency() :: max_bot_concurrency()