Implemented new one InputFile interface for sending local files.

This commit is contained in:
Alex Root Junior 2017-11-21 20:31:35 +02:00
parent 751929cb1d
commit 753396330d
4 changed files with 149 additions and 31 deletions

View file

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