tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Problem sending user's animated profile as video #2290

Closed BarnameESF closed 1 year ago

BarnameESF commented 1 year ago

Hello I use tdlib version 1.8.10 with Python language. When I want to send a video message through a user's animated profile ID file, I encounter the following error:

{'@type': 'error', 'code': 400, 'message': "Can't use file of type Photo as Video", '@extra': None}

But when I first download the media with the same ID file, an mp4 file is saved in the photo folder, and when I try to send a video message with the address of the file on the hard disk, there is no problem. I think this is a bug.

levlam commented 1 year ago

The error is expected. Animated chat photos are photos server-side and can be send only as static photos in messages. To send the corresponding video in a message, you need to download it first.