Telegram.Types (telegram v2.1.0)
View SourceTelegram types
Summary
Types
Bot options.
Types
@type bot_opts() :: [ token: token(), max_bot_concurrency: max_bot_concurrency(), allowed_updates: [String.t()] ]
Bot options.
token
: bot tokenmax_bot_concurrency
: maximum number of bots that can run concurrently. Defaults to:infinity
.allowed_updates
: list of allowed updates (ref: https://core.telegram.org/bots/api#getupdates). Defaults to[]
.
@type bot_spec() :: {Telegram.Bot.Dispatch.t(), bot_opts()}
@type max_bot_concurrency() :: pos_integer() | :infinity
@type method() :: String.t()
@type token() :: String.t()
@type update() :: map()
Functions
@spec default_allowed_updates() :: [String.t()]
@spec default_max_bot_concurrency() :: max_bot_concurrency()