Versions in this module Expand all Collapse all v0 v0.1.4 Dec 15, 2019 Changes in this version type SendAudio + FileName string v0.1.3 Dec 15, 2019 Changes in this version type API + func (tg *API) DLFile(filePath string) (file []byte, err error) v0.1.2 Dec 15, 2019 Changes in this version type API + func (tg *API) GetFile(fileID string) (ans APIResponse) + type File struct + FileID string + FilePath string + FileSize int64 + type SendGetFile struct + FileID string v0.1.1 Dec 15, 2019 Changes in this version + type Audio struct + Duration int + FileID string + FileSize int64 + MimeType string + Performer string + Title string type Message + Audio Audio v0.1.0 Dec 15, 2019 Changes in this version + const APIEndpoint + const CaptionMaxSize + const FileEndpoint + const TextMaxSize + type API struct + AccessToken string + RetryDontWait bool + func (tg *API) CheckAuth(data map[string]interface{}) (ok bool) + func (tg *API) GetMe() (ans APIResponse) + func (tg *API) SendAudio(msg SendAudio) (ans APIResponse) + func (tg *API) SendMessage(msg SendMessageData) (ans APIResponse) + func (tg *API) SendMessageBig(msg SendMessageData) (ans []APIResponse) + func (tg *API) SetWebhook(url string) (ans APIResponse) + type APIResponse struct + Description string + ErrorCode int + Ok bool + Parameters APIResponseParameters + Result json.RawMessage + type APIResponseParameters struct + MigrateToChatID int64 + RetryAfter int + type CallbackQuery struct + Data string + From User + ID string + InlineMessageID string + Message Message + type Chat struct + FirstName string + ID int64 + LastName string + Title string + Type string + UserName string + type InlineQuery struct + From User + ID string + Offset string + Query string + type Message struct + Chat Chat + Date int64 + From User + MessageID int64 + Text string + type ReplyKeyboardMarkup struct + Keyboard [][]string + OneTimeKeyboard bool + ResizeKeyboard bool + Selective bool + type ReplyKeyboardRemove struct + RemoveKeyboard bool + Selective bool + type SendAudio struct + Audio []byte + ChatID int64 + DisableNotification bool + Duration int + Performer string + Title string + type SendMessageData struct + ChatID interface{} + DisableNotification bool + DisableWebPagePreview bool + ParseMode string + ReplyMarkup interface{} + ReplyToMessageID int64 + Text string + type Update struct + CallbackQuery CallbackQuery + InlineQuery InlineQuery + Message Message + UpdateID int64 + type User struct + FirstName string + ID int64 + LastName string + UserName string