mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 16:15:51 +00:00
Update thumbnail type to InputFile only (#1374)
* Update thumbnail type to InputFile only The thumbnail's type restriction has been changed in several methods and types. Previously, it accepted Union[InputFile, str], allowing both InputFile instances and strings. Now it's changed to accept only InputFile instances. This change enhances meaning of the thumbnail fields in due to Bot API accepts only InputFile instances. * Added changelog * Fixed typehints
This commit is contained in:
parent
09af2a1c8b
commit
c8dff11d1e
24 changed files with 106 additions and 51 deletions
|
|
@ -3,3 +3,9 @@ annotations:
|
|||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
|
|
|
|||
|
|
@ -3,3 +3,9 @@ annotations:
|
|||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
|
|
|
|||
|
|
@ -3,3 +3,9 @@ annotations:
|
|||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
|
|
|
|||
|
|
@ -3,3 +3,9 @@ annotations:
|
|||
value: UNSET_PARSE_MODE
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
annotations:
|
||||
protect_content:
|
||||
value: UNSET_PROTECT_CONTENT
|
||||
thumbnail:
|
||||
parsed_type:
|
||||
type: entity
|
||||
references:
|
||||
category: types
|
||||
name: InputFile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue