This commit is contained in:
Shrimadhav U K 2021-01-17 19:58:06 +05:30 committed by GitHub
parent cf84991872
commit a080bacf8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,10 +708,14 @@ def get_attributes(file, *, attributes=None, mime_type=None,
width = t_m.get("width")
if t_m and t_m.has("height"):
height = t_m.get("height")
else:
doc = types.DocumentAttributeVideo(
0, width, height, round_message=video_note,
supports_streaming=supports_streaming)
else:
doc = types.DocumentAttributeVideo(
0, 1, 1, round_message=video_note,
supports_streaming=supports_streaming)
attr_dict[types.DocumentAttributeVideo] = doc