telegram_bot_api_updater_server (telegram_bot_api v2.9.0)

View Source

Use this gen_server to receive incoming updates using long polling.

See telegram_bot_api

Summary

Types

child_id()

-type child_id() :: term().

Functions

child_spec/1

code_change(OldVsn, State, Extra)

handle_call/3

handle_cast(Msg, State)

handle_info/2

init(Opts)

name_server(BotName)

start_link(Op)

-spec start_link(Op ::
                     #{id := child_id(),
                       name := Pool :: telegram_bot_api:pool_name(),
                       update_time := UpdateTime :: integer(),
                       offset := Offset :: integer(),
                       event := Event :: telegram_bot_api_app:event(),
                       limit => Limit :: integer(),
                       allowed_updates => AllowedUpdates :: [telegram_bot_api:update_type(), ...]}) ->
                    {ok, pid()} | {error, {already_started, pid()}} | {error, term()}.

stop(Pid)

terminate(Reason, State)