// 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.
} `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"`