From a080bacf8e9e83557a3cb9a2662f7fcb0d3a5a8b Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Sun, 17 Jan 2021 19:58:06 +0530 Subject: [PATCH] fix typo --- telethon/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/telethon/utils.py b/telethon/utils.py index dd0412e7..ffa7a192 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -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