Documentation
¶
Index ¶
- type Bot
- func (b *Bot) Close() error
- func (b *Bot) Delete(ctx context.Context, chatID int64, msgID int) error
- func (b *Bot) FinishStatus(ctx context.Context, chatID int64) error
- func (b *Bot) Reply(handler ReplyHandler)
- func (b *Bot) Save(ctx context.Context, fileID, dir string) (string, error)
- func (b *Bot) Send(ctx context.Context, chatID int64, replyTo int, text string, ...) (*models.Message, error)
- func (b *Bot) SendFile(ctx context.Context, chatID int64, fileType FileType, path string, ...) (*models.Message, error)
- func (b *Bot) SendInput(ctx context.Context, chatID int64, replyTo int, text string, ...) (*models.Message, error)
- func (b *Bot) SendMultiSelect(ctx context.Context, chatID int64, replyTo int, text string, items []string, ...) (*models.Message, error)
- func (b *Bot) SendPhoto(ctx context.Context, chatID int64, paths []string, caption ...string) ([]*models.Message, error)
- func (b *Bot) SendSelect(ctx context.Context, chatID int64, replyTo int, text string, items []string, ...) (*models.Message, error)
- func (b *Bot) SendStatus(ctx context.Context, chatID int64, replyTo int, text string, ...) error
- func (b *Bot) SendVoice(ctx context.Context, chatID int64, path string, caption ...string) (*models.Message, error)
- func (b *Bot) SetCommands(ctx context.Context, commands []Command) error
- func (b *Bot) Start(ctx context.Context) error
- func (b *Bot) Status() Status
- type ChatStatus
- type Command
- type FileType
- type Input
- type MessageOption
- type Option
- type ReplyHandler
- type SendType
- type Status
- type StatusOption
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) Reply ¶
func (b *Bot) Reply(handler ReplyHandler)
func (*Bot) SendMultiSelect ¶
func (*Bot) SendSelect ¶
func (*Bot) SendStatus ¶
func (*Bot) SetCommands ¶ added in v0.5.1
type ChatStatus ¶
type ChatStatus struct {
// contains filtered or unexported fields
}
type MessageOption ¶
type MessageOption func(*messageOptions)
func WithSendType ¶
func WithSendType(t SendType) MessageOption
type StatusOption ¶
type StatusOption func(*statusOptions)
func WithStatusEmoji ¶
func WithStatusEmoji(emoji string) StatusOption
func WithStatusSendType ¶
func WithStatusSendType(t SendType) StatusOption
Click to show internal directories.
Click to hide internal directories.