mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-07 05:30:20 +03:00
Remove if
This commit is contained in:
parent
dc732c76df
commit
fb89e15341
|
@ -1632,12 +1632,9 @@ class TelegramClient(TelegramBareClient):
|
||||||
duration=int(m.get('duration').seconds
|
duration=int(m.get('duration').seconds
|
||||||
if m.has('duration') else 0)
|
if m.has('duration') else 0)
|
||||||
)
|
)
|
||||||
elif video_note:
|
|
||||||
doc = DocumentAttributeVideo(0, 1, 1,
|
|
||||||
round_message=True)
|
|
||||||
else:
|
else:
|
||||||
doc = DocumentAttributeVideo(0, 0, 0,
|
doc = DocumentAttributeVideo(0, 1, 1,
|
||||||
round_message=False)
|
round_message=video_note)
|
||||||
|
|
||||||
attr_dict[DocumentAttributeVideo] = doc
|
attr_dict[DocumentAttributeVideo] = doc
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user