Documentation
¶
Index ¶
- type Bot
- func (b *Bot) API() *telego.Bot
- func (b *Bot) AnswerCallbackQuery(ctx context.Context, callbackQueryID string, text string) error
- func (b *Bot) EditMessageText(ctx context.Context, chatID int64, messageID int, text string, ...) error
- func (b *Bot) Name() string
- func (b *Bot) OnUpdate() <-chan telego.Update
- func (b *Bot) SendMessage(ctx context.Context, chatID int64, text string) error
- func (b *Bot) SendMessageWithButtons(ctx context.Context, chatID int64, text string, ...) error
- func (b *Bot) Start(ctx context.Context) error
- func (b *Bot) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) AnswerCallbackQuery ¶
AnswerCallbackQuery answers a callback query.
func (*Bot) EditMessageText ¶
func (b *Bot) EditMessageText(ctx context.Context, chatID int64, messageID int, text string, buttons [][]telego.InlineKeyboardButton) error
EditMessageText edits the text of a message.
func (*Bot) SendMessage ¶
SendMessage sends a message to a chat.
func (*Bot) SendMessageWithButtons ¶
func (b *Bot) SendMessageWithButtons(ctx context.Context, chatID int64, text string, buttons [][]telego.InlineKeyboardButton) error
SendMessageWithButtons sends a message with inline keyboard buttons.
Click to show internal directories.
Click to hide internal directories.