]> git.giacomolli.uk - onechat/blobdiff - telegram_api.go
Order daemon and storage declarations
[onechat] / telegram_api.go
index f53d8d521223b1c4074ce90745a61601c4e9baab..6967c99d33b4898962b0b05718a263cf90a875a5 100644 (file)
@@ -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"`