mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +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
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user