Documentation ¶ Index ¶ func ParseJSON[T any](src string) (T, error) type Bot func New(api *tgbotapi.BotAPI) *Bot func (b *Bot) GetCommandNames() []string func (b *Bot) RegisterCmdView(cmd string, view ViewFunc) func (b *Bot) Run(ctx context.Context) error type ViewFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ParseJSON ¶ func ParseJSON[T any](src string) (T, error) Types ¶ type Bot ¶ type Bot struct { // contains filtered or unexported fields } func New ¶ func New(api *tgbotapi.BotAPI) *Bot func (*Bot) GetCommandNames ¶ func (b *Bot) GetCommandNames() []string func (*Bot) RegisterCmdView ¶ func (b *Bot) RegisterCmdView(cmd string, view ViewFunc) func (*Bot) Run ¶ func (b *Bot) Run(ctx context.Context) error type ViewFunc ¶ type ViewFunc func(ctx context.Context, bot *tgbotapi.BotAPI, update tgbotapi.Update) error Source Files ¶ View all Source files args.go bot.go Directories ¶ Show internal Expand all Path Synopsis markup Click to show internal directories. Click to hide internal directories.