View Source Telegex.Instance (Telegex v1.8.0)

Independent configuration and information for bot instances.

Note: This module is not officially implemented at the moment, reserved for multi-instance support.

Summary

Functions

Get the cached bot's own user information.

Returns a specification to start this module under a supervisor.

Call the Telegex.get_me/0 function to get and cache the bot's own user information.

Functions

@spec bot() :: Telegex.Type.User.t()

Get the cached bot's own user information.

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec fetch_me() :: {:ok, Telegex.Type.User.t()} | {:error, Telegex.Type.error()}

Call the Telegex.get_me/0 function to get and cache the bot's own user information.

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