Documentation ¶
Index ¶
- type Bot
- func (b *Bot) AnswerCallbackQuery(c tgApi.CallbackConfig) (tgApi.APIResponse, error)
- func (b *Bot) Connect(conf config.Config) error
- func (b *Bot) DeleteMessage(config tgApi.DeleteMessageConfig) (tgApi.APIResponse, error)
- func (b *Bot) GifMessage(to int64, langSet, key, imageID string, obj interface{}, ...) (tgApi.Message, error)
- func (b *Bot) GifReply(to int64, langSet, key, imageID string, replyTo int, obj interface{}, ...) (tgApi.Message, error)
- func (b *Bot) ID() int
- func (b *Bot) LeaveChat(c tgApi.ChatConfig) (tgApi.APIResponse, error)
- func (b *Bot) MarkdownMessage(to int64, langSet, key string, obj interface{}, ...) (tgApi.Message, error)
- func (b *Bot) MarkdownReply(to int64, langSet, key string, replyTo int, obj interface{}, ...) (tgApi.Message, error)
- func (b *Bot) Name() string
- func (b *Bot) RegisterProcessor(fn ProceedFunc)
- func (b *Bot) Run()
- func (b *Bot) Send(c tgApi.Chattable) (tgApi.Message, error)
- type ProceedFunc
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
}
Bot a bot
var DefaultBot *Bot
DefaultBot and only one bot here
func (*Bot) AnswerCallbackQuery ¶
func (b *Bot) AnswerCallbackQuery(c tgApi.CallbackConfig) (tgApi.APIResponse, error)
AnswerCallbackQuery wrapper
func (*Bot) DeleteMessage ¶
func (b *Bot) DeleteMessage(config tgApi.DeleteMessageConfig) (tgApi.APIResponse, error)
DeleteMessage wrapper
func (*Bot) GifMessage ¶
func (b *Bot) GifMessage(to int64, langSet, key, imageID string, obj interface{}, mk ...tgApi.InlineKeyboardMarkup) (tgApi.Message, error)
GifMessage is
func (*Bot) GifReply ¶
func (b *Bot) GifReply(to int64, langSet, key, imageID string, replyTo int, obj interface{}, mk ...tgApi.InlineKeyboardMarkup) (tgApi.Message, error)
GifReply is
func (*Bot) LeaveChat ¶
func (b *Bot) LeaveChat(c tgApi.ChatConfig) (tgApi.APIResponse, error)
LeaveChat wrapper
func (*Bot) MarkdownMessage ¶
func (b *Bot) MarkdownMessage(to int64, langSet, key string, obj interface{}, mk ...tgApi.InlineKeyboardMarkup) (tgApi.Message, error)
MarkdownMessage is
func (*Bot) MarkdownReply ¶
func (b *Bot) MarkdownReply(to int64, langSet, key string, replyTo int, obj interface{}, mk ...tgApi.InlineKeyboardMarkup) (tgApi.Message, error)
MarkdownReply is
func (*Bot) RegisterProcessor ¶
func (b *Bot) RegisterProcessor(fn ProceedFunc)
RegisterProcessor to reg some func.
Click to show internal directories.
Click to hide internal directories.