X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/d73a88b9e0835b1d7f0711e02db56555101a7830..1a1e3835458e37b4b56897d6ff7804660798d60c:/telegram_api.go diff --git a/telegram_api.go b/telegram_api.go index f53d8d5..6967c99 100644 --- a/telegram_api.go +++ b/telegram_api.go @@ -38,7 +38,8 @@ const ( // telegramFileLookupTimeout is the longest wait for media file details. telegramFileLookupTimeout = 30 * time.Second - // telegramFileDownloadTimeout is the longest wait for image bytes. + // telegramFileDownloadTimeout is the longest wait for downloaded media + // bytes. telegramFileDownloadTimeout = 30 * time.Second // telegramTypingTimeout is the longest wait to show the typing action. @@ -423,7 +424,7 @@ type TelegramAnswer struct { } `json:"parameters"` } -// TelegramMessage holds the text, caption, and image sizes of a bot message. +// TelegramMessage holds text and supported media metadata of a bot message. type TelegramMessage struct { Chat TelegramChat `json:"chat"` From *TelegramUser `json:"from"`