Documentation ¶
Index ¶
- func EditInlineKeyboard(msgId uint64, chatId uint64, newKeyboard [][]InlineKeyboardButton) error
- func GetFile(fileId string, targetPath string) error
- func LoadToken()
- func SendLocation(lat float64, lon float64, chatId uint64, replyId uint64) error
- func SendMdMessage(text string, chatId uint64, replyId uint64) error
- func SendMdMessageWithKeyboard(text string, chatId uint64, replyId uint64, keyboard [][]InlineKeyboardButton) error
- func SendPhotoByUrl(picUrl string, chatId uint64, replyId uint64) error
- func SendPhotoGroup(photoUrls []string, chatId uint64, replyId uint64) error
- func SendPlainMessage(text string, chatId uint64, replyId uint64) error
- func SendVideoByUrl(vidUrl string, chatId uint64, caption string, replyId uint64) error
- func StartCheckingUpdates() chan (interface{})
- func WaitForReady()
- type CallbackQuery
- type Chat
- type Dummy
- type GetFileResponse
- type InlineKeyboard
- type InlineKeyboardButton
- type InputMediaPhoto
- type Location
- type Message
- type Photo
- type ReplyMarkup
- type Response
- type Update
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditInlineKeyboard ¶
func EditInlineKeyboard(msgId uint64, chatId uint64, newKeyboard [][]InlineKeyboardButton) error
func SendLocation ¶
func SendMdMessageWithKeyboard ¶
func SendMdMessageWithKeyboard(text string, chatId uint64, replyId uint64, keyboard [][]InlineKeyboardButton) error
func SendVideoByUrl ¶
func StartCheckingUpdates ¶
func StartCheckingUpdates() chan (interface{})
func WaitForReady ¶
func WaitForReady()
Types ¶
type CallbackQuery ¶
type GetFileResponse ¶
type InlineKeyboard ¶
type InlineKeyboard [][]InlineKeyboardButton
type InlineKeyboardButton ¶
type InputMediaPhoto ¶
type Message ¶
type Message struct { Id uint64 `json:"message_id"` From User `json:"from"` Chat Chat `json:"chat"` ForwardFrom User `json:"forward_from"` Text string `json:"text"` Location *Location `json:"location"` PhotoSizes []Photo `json:"photo"` }
func (*Message) GetLargestPhoto ¶
type ReplyMarkup ¶
type ReplyMarkup struct {
InlineKeyboard [][]inlineKeyboardButton `json:"inline_keyboard"`
}
type Response ¶
type Response struct { Ok bool `json:"ok"` Result json.RawMessage `json:"result"` }
type Update ¶
type Update struct { Id uint64 `json:"update_id"` Message *Message `json:"message"` CallbackQuery *CallbackQuery `json:"callback_query"` }
Click to show internal directories.
Click to hide internal directories.