Documentation ¶
Index ¶
- type Content
- type Message
- func (m *Message) Command() string
- func (m *Message) HandleCommand(pattern string, handler func(msg *Message))
- func (m *Message) HandleText(pattern string, handler func(msg *Message))
- func (m *Message) IsCommand() bool
- func (m *Message) NewButton(button keyboard.Button) *Message
- func (m *Message) NewInlineButton(inlineButton keyboard.InlineButton) *Message
- func (m *Message) NewInlineKeyboard() *Message
- func (m *Message) NewInlineKeyboardRow() *Message
- func (m *Message) NewKeyboardRow() *Message
- func (m *Message) NewRemoveKeyboard() *Message
- func (m *Message) NewReplyKeyboard() *Message
- func (m *Message) SetText(text string) *Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { Msg tgbotapi.MessageConfig Keyboard tgbotapi.ReplyKeyboardMarkup }
Content is a content type for markdown.
func NewHTMLContent ¶
func NewHTMLContent(msg tgbotapi.MessageConfig, text string) *Content
NewHTMLContent returns the HTML representation of the content.
func NewMdContent ¶
func NewMdContent(msg tgbotapi.MessageConfig, text string) *Content
NewMdContent returns a new Content.
func NewMdV2Content ¶
func NewMdV2Content(msg tgbotapi.MessageConfig, text string) *Content
NewMdV2Content returns the MarkdownV2 representation of the content.
func (*Content) GetMsg ¶
func (c *Content) GetMsg() tgbotapi.MessageConfig
GetMsg returns the message.
type Message ¶
type Message struct { Message tgbotapi.MessageConfig Keyboard keyboard.Keyboard InlineKeyboard keyboard.InlineKeyboard RemoveKeyboard tgbotapi.ReplyKeyboardRemove }
func NewMessage ¶
func (*Message) HandleCommand ¶
func (*Message) HandleText ¶
func (*Message) NewInlineButton ¶
func (m *Message) NewInlineButton(inlineButton keyboard.InlineButton) *Message
func (*Message) NewInlineKeyboard ¶
func (*Message) NewInlineKeyboardRow ¶
func (*Message) NewKeyboardRow ¶
func (*Message) NewRemoveKeyboard ¶
func (*Message) NewReplyKeyboard ¶
Click to show internal directories.
Click to hide internal directories.