Documentation ¶
Index ¶
- type Bot
- func (b *Bot) AllowUser(username string)
- func (b *Bot) BasicAuth(command string)
- func (b *Bot) PrintRegisteredCommands()
- func (b *Bot) RegisterButton(buttonText string, command string, handler ...func() string)
- func (b *Bot) RegisterButtonImageBytesCommand(buttonText string, command string, handler ...func() []byte)
- func (b *Bot) RegisterButtonImagePathCommand(buttonText string, command string, handler ...func() string)
- func (b *Bot) RegisterImageBytesCommand(command string, imageHandlers ...func() []byte)
- func (b *Bot) RegisterImagePathCommand(command string, imageHandlers ...func() string)
- func (b *Bot) RegisterRegisterCommand(command string)
- func (b *Bot) RegisterTextCommand(command string, textHandlers ...func() string)
- func (b *Bot) SendImage(chatID int64, imageFilePath string, caption string) error
- func (b *Bot) SendImageFromBytes(chatID int64, imageData []byte, caption string) error
- func (b *Bot) SetPrivateCommand(command string)
- func (b *Bot) Start()
- type CommandHandlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Token string // contains filtered or unexported fields }
func (*Bot) PrintRegisteredCommands ¶
func (b *Bot) PrintRegisteredCommands()
func (*Bot) RegisterButton ¶
func (*Bot) RegisterButtonImageBytesCommand ¶
func (*Bot) RegisterButtonImagePathCommand ¶
func (*Bot) RegisterImageBytesCommand ¶
Регистрация команды для обработки изображения в виде байтов
func (*Bot) RegisterImagePathCommand ¶
Регистрация команды для обработки изображения по пути файла
func (*Bot) RegisterRegisterCommand ¶
func (*Bot) RegisterTextCommand ¶
func (*Bot) SendImageFromBytes ¶
func (*Bot) SetPrivateCommand ¶
type CommandHandlers ¶
Click to show internal directories.
Click to hide internal directories.