mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Implemented new one InputFile interface for sending local files.
This commit is contained in:
parent
751929cb1d
commit
753396330d
4 changed files with 149 additions and 31 deletions
|
|
@ -13,7 +13,7 @@ ALIASES_ATTR_NAME = '_aliases'
|
|||
__all__ = ('MetaTelegramObject', 'TelegramObject')
|
||||
|
||||
# Binding of builtin types
|
||||
InputFile = TypeVar('InputFile', io.BytesIO, io.FileIO, str)
|
||||
InputFile = TypeVar('InputFile', 'InputFile', io.BytesIO, io.FileIO, str)
|
||||
String = TypeVar('String', bound=str)
|
||||
Integer = TypeVar('Integer', bound=int)
|
||||
Float = TypeVar('Float', bound=float)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue