Current section

Files

Jump to
telega include telega@bot_Bot.hrl
Raw

include/telega@bot_Bot.hrl

-record(bot, {
self :: gleam@erlang@process:subject(telega@bot:bot_message()),
config :: telega@internal@config:config(),
bot_info :: telega@model@types:user(),
catch_handler :: fun((telega@bot:context(any(), any()), any()) -> {ok, nil} |
{error, any()}),
session_settings :: telega@bot:session_settings(any(), any()),
router_handler :: fun((telega@bot:context(any(), any()), telega@update:update()) -> {ok,
telega@bot:context(any(), any())} |
{error, any()}),
registry :: telega@internal@registry:registry(telega@bot:chat_instance_message(any(), any())),
chat_factory :: gleam@otp@factory_supervisor:supervisor(telega@bot:chat_instance_args(any(), any()), gleam@erlang@process:subject(telega@bot:chat_instance_message(any(), any())))
}).