telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

video info nil in updates

Open johnbalvin opened this issue 7 years ago • 1 comments

I have this similar code as the example in README

for update := range updates {
     if update.ChannelPost != nil {
            msg := update.ChannelPost
            if strings.Contains(msg.Document.MimeType, "video") {
                    //msg.Video  <- it's nil 
            }
       }
}

When user uploads video to channel, the video info it's nil

johnbalvin avatar Aug 09 '19 23:08 johnbalvin

Videos and documents are mutually exclusive. Documents are files sent as-is, videos are re-encoded for support on all platforms and fast viewing.

Syfaro avatar Sep 04 '19 01:09 Syfaro