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:
Alex Root Junior 2023-11-24 21:10:02 +02:00 committed by GitHub
parent 09af2a1c8b
commit c8dff11d1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 106 additions and 51 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -1,3 +1,9 @@
annotations:
protect_content:
value: UNSET_PROTECT_CONTENT
thumbnail:
parsed_type:
type: entity
references:
category: types
name: InputFile