From fb89e15341d5971911048f1266137ab4fa701f02 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 24 May 2018 12:27:41 +0200 Subject: [PATCH] Remove if --- telethon/telegram_client.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index 0c2bd122..76a1d0c2 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -1632,12 +1632,9 @@ class TelegramClient(TelegramBareClient): duration=int(m.get('duration').seconds if m.has('duration') else 0) ) - elif video_note: - doc = DocumentAttributeVideo(0, 1, 1, - round_message=True) else: - doc = DocumentAttributeVideo(0, 0, 0, - round_message=False) + doc = DocumentAttributeVideo(0, 1, 1, + round_message=video_note) attr_dict[DocumentAttributeVideo] = doc else: