Documentation ¶
Index ¶
- type EasyApi
- func (a *EasyApi) Api() *tgbotapi.BotAPI
- func (a *EasyApi) NewMessage(update tgbotapi.Update, text string) (*tgbotapi.MessageConfig, error)
- func (a *EasyApi) NewMessageMk2(update tgbotapi.Update, text string) (*tgbotapi.MessageConfig, error)
- func (a *EasyApi) Send(chattable tgbotapi.Chattable) (tgbotapi.Message, error)
- func (a *EasyApi) SendChattable(update tgbotapi.Update, chattable tgbotapi.Chattable) (tgbotapi.Message, error)
- func (a *EasyApi) SendChattableCommand(update tgbotapi.Update, chattable tgbotapi.Chattable, command string) (tgbotapi.Message, error)
- func (a *EasyApi) SendEasyMessage(easyMessage *Message) (*tgbotapi.Message, error)
- func (a *EasyApi) SendMessage(update tgbotapi.Update, text string) (tgbotapi.Message, error)
- func (a *EasyApi) SendMessageCommand(update tgbotapi.Update, text string, command string) (tgbotapi.Message, error)
- type EasyApiKeyboard
- type EasyCallback
- type EasyDownloadFile
- type EasyKeyboard
- type Key
- type KeySplit
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EasyApi ¶
type EasyApi struct { *EasyCallback *EasyDownloadFile *EasyApiKeyboard NoReplace bool MarkdownMode string // contains filtered or unexported fields }
func NewEasyApi ¶
func (*EasyApi) NewMessage ¶ added in v0.0.2
func (*EasyApi) NewMessageMk2 ¶ added in v0.0.2
func (*EasyApi) SendChattable ¶ added in v0.0.2
func (*EasyApi) SendChattableCommand ¶ added in v0.0.2
func (*EasyApi) SendEasyMessage ¶ added in v0.0.2
func (*EasyApi) SendMessage ¶
type EasyApiKeyboard ¶ added in v0.0.2
type EasyApiKeyboard struct {
// contains filtered or unexported fields
}
func (*EasyApiKeyboard) SendKeyboard ¶ added in v0.0.2
func (a *EasyApiKeyboard) SendKeyboard(update tgbotapi.Update, keyboard EasyKeyboard, text string, tryInline bool)
type EasyCallback ¶ added in v0.0.2
type EasyCallback struct {
// contains filtered or unexported fields
}
func (*EasyCallback) AnswerCallback ¶ added in v0.0.2
func (a *EasyCallback) AnswerCallback(update tgbotapi.Update, text string)
func (*EasyCallback) AnswerEmptyCallback ¶ added in v0.0.2
func (a *EasyCallback) AnswerEmptyCallback(update tgbotapi.Update)
type EasyDownloadFile ¶ added in v0.0.2
type EasyDownloadFile struct {
// contains filtered or unexported fields
}
func (*EasyDownloadFile) DownloadFileString ¶ added in v0.0.2
func (d *EasyDownloadFile) DownloadFileString(fileId string) (string, error)
func (*EasyDownloadFile) DownloadFileStringOld ¶ added in v0.0.2
func (d *EasyDownloadFile) DownloadFileStringOld(fileId string) (string, error)
DownloadFileStringOld deprecated
type EasyKeyboard ¶
type EasyKeyboard struct {
// contains filtered or unexported fields
}
func (*EasyKeyboard) Add ¶
func (k *EasyKeyboard) Add(text string, data string)
func (*EasyKeyboard) AddSplit ¶
func (k *EasyKeyboard) AddSplit()
func (EasyKeyboard) InlineKeyboardMarkup ¶
func (k EasyKeyboard) InlineKeyboardMarkup() tgbotapi.InlineKeyboardMarkup
func (*EasyKeyboard) SetWidth ¶
func (k *EasyKeyboard) SetWidth(width int) *EasyKeyboard
type Message ¶ added in v0.0.2
type Message struct { ParseMode string // contains filtered or unexported fields }
func (*Message) WithCommand ¶ added in v0.0.2
func (*Message) WithDeepSetup ¶ added in v0.0.2
func (*Message) WithOldReplace ¶ added in v0.0.2
func (*Message) WithParseMk2 ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.