From 416570fdf09754cd99b5f748b357959aa08799ba Mon Sep 17 00:00:00 2001 From: abcdenis Date: Mon, 12 Jan 2026 19:31:04 +0300 Subject: [PATCH] Fix doc typos on some raw API types (#4732) --- telethon/client/messages.py | 4 ++-- telethon/client/uploads.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telethon/client/messages.py b/telethon/client/messages.py index e472b47d..64d34ca4 100644 --- a/telethon/client/messages.py +++ b/telethon/client/messages.py @@ -709,7 +709,7 @@ class MessageMethods: Width/height and dimensions/size ratios may be important. For Telegram to accept a thumbnail, you must provide the dimensions of the underlying media through ``attributes=`` - with :tl:`DocumentAttributesVideo` or by installing the + with :tl:`DocumentAttributeVideo` or by installing the optional ``hachoir`` dependency. force_document (`bool`, optional): @@ -1154,7 +1154,7 @@ class MessageMethods: Width/height and dimensions/size ratios may be important. For Telegram to accept a thumbnail, you must provide the dimensions of the underlying media through ``attributes=`` - with :tl:`DocumentAttributesVideo` or by installing the + with :tl:`DocumentAttributeVideo` or by installing the optional ``hachoir`` dependency. force_document (`bool`, optional): diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 9844369b..28e791e1 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -247,7 +247,7 @@ class UploadMethods: Width/height and dimensions/size ratios may be important. For Telegram to accept a thumbnail, you must provide the dimensions of the underlying media through ``attributes=`` - with :tl:`DocumentAttributesVideo` or by installing the + with :tl:`DocumentAttributeVideo` or by installing the optional ``hachoir`` dependency.