Copyright © (C) 2016, Sergey Prokhorov
Behaviours: gen_server.
Authors: Sergey Prokhorov (me@seriyps.ru).
code_change(OldVsn, State, Extra) -> any()
get_updates(Bot::pe4kin:bot_name(), Limit::pos_integer()) -> [pe4kin:update()]
Return not more than 'Limit' updates. May return empty list.
handle_call(Request, From, State) -> any()
handle_cast(Msg, State) -> any()
handle_info(Info, State) -> any()
init(X1) -> any()
start_http_poll(Bot::pe4kin:bot_name(), Opts::#{offset => integer(), limit => 1..100, timeout => non_neg_integer()}) -> ok
start_link(Bot, Token, Opts) -> any()
start_set_webhook(Bot::pe4kin:bot_name(), UrlPrefix::binary(), Opts::#{certfile_id => integer()}) -> ok
stop_http_poll(Bot::pe4kin:bot_name()) -> ok
stop_set_webhook(Bot::pe4kin:bot_name()) -> ok
subscribe(Bot::pe4kin:bot_name(), Pid::pid()) -> ok | {error, process_already_subscribed}
terminate(Reason, State) -> any()
unsubscribe(Bot::pe4kin:bot_name(), Pid::pid()) -> ok | not_found
webhook_callback(Path::binary(), Query::#{binary() => binary()}, Body::binary()) -> ok
Generated by EDoc