Remove if

This commit is contained in:
Lonami Exo 2018-05-24 12:27:41 +02:00
parent dc732c76df
commit fb89e15341

View File

@ -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: