capabilities: update to new format

This commit is contained in:
Tulir Asokan
2025-01-10 21:17:10 +02:00
parent f4052dcfd3
commit 386cfa4cfb
9 changed files with 254 additions and 36 deletions
+4
View File
@@ -106,6 +106,10 @@ func (t *TelegramClient) transferMediaToTelegram(ctx context.Context, content *e
attributes = append(attributes, &tg.DocumentAttributeImageSize{W: content.Info.Width, H: content.Info.Height})
}
if content.Info != nil && content.Info.MauGIF {
attributes = append(attributes, &tg.DocumentAttributeAnimated{})
}
if sticker {
attributes = append(attributes, &tg.DocumentAttributeSticker{
Alt: content.Body,