Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TBTGetUpdate - getupdate TBTGetUpdate = "getupdate" // TBTWebHook - webhook TBTWebHook = "webhook" // LOGPATHConsole - console LOGPATHConsole = "console" // LLDebug - debug LLDebug = "debug" // LLInfo - info LLInfo = "info" // LLWarn - warn LLWarn = "warn" // LLError - error LLError = "error" )
Variables ¶
View Source
var ( // ErrConfigFile - can't load config file ErrConfigFile = errors.New("can't load config file") // ErrInvalidConfigFile - invalid config file ErrInvalidConfigFile = errors.New("invalid config file") // ErrCfgTeleBotToken - invalid tele bot token ErrCfgTeleBotToken = errors.New("invalid tele bot token") // ErrCfgTeleBotType - invalid tele bot type ErrCfgTeleBotType = errors.New("invalid tele bot type") // ErrCfgWebHook - invalid webhook config ErrCfgWebHook = errors.New("invalid webhook config") // ErrCfgLogLevel - invalid log level ErrCfgLogLevel = errors.New("invalid log level") // ErrNewTeleBot - NewBotAPI err ErrNewTeleBot = errors.New("NewBotAPI err") // ErrInvalidUser - invalid teleUser ErrInvalidUser = errors.New("invalid teleUser") )
Functions ¶
func NewTeleChatBot ¶
NewTeleChatBot - new tele chat bot
func StartTeleBot ¶
func StartTeleBot(ctx context.Context, cfg *Config, node jarviscore.JarvisNode)
StartTeleBot - start tele bot
Types ¶
Click to show internal directories.
Click to hide internal directories.