mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
fix typo
This commit is contained in:
parent
cf84991872
commit
a080bacf8e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user