iOS: Wrong aspect ratio of video
Author: harunsasmazCreated Mar 3, 2023Updated Oct 11, 2025
Hi,
I am using v5.5.1 to send videos with the following code. However, the actual aspect ratio 4:5 is broken and video seems as 1:1 on iOS devices.
I also have MacOS and videos have correct aspect ratio on desktop app. Can this be an app issue? Because when I download videos to my device gallery, aspect ratio seems correct.
import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)
func SendVideo(channel int64, path string, caption string) error {
video := tgbotapi.NewVideo(channel, tgbotapi.FilePath(path))
video.ParseMode = "html"
video.Caption = caption
_, err := c.bot.Send(video)
return err
}Source: go-telegram-bot-api/telegram-bot-api