Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackQuery ¶
type CallbackQuery struct {
ID string `json:"id"`
Message TelegramMessage `json:"message"`
Data string `json:"data"`
}
type InlineKeyboardButton ¶
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct {
InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard"`
}
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) WithButton ¶
func (m *Message) WithButton(text string, fn UserCallback) *Message
type MessageEntity ¶
type TelegramMessage ¶
type TelegramMessage struct {
MessageID int `json:"message_id"`
Text string `json:"text"`
Chat Chat `json:"chat"`
Entities *[]MessageEntity `json:"entities"`
}
type Update ¶
type Update struct {
Message *TelegramMessage `json:"message,omitempty"`
CallbackQuery *CallbackQuery `json:"callback_query,omitempty"`
}
type UserCallback ¶
Click to show internal directories.
Click to hide internal directories.