mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 21:20:22 +03:00
Refactor: Small changes related to typing
This commit is contained in:
parent
d58fa32827
commit
a91f1526ca
|
@ -6,13 +6,11 @@ import pathlib
|
||||||
import re
|
import re
|
||||||
import typing
|
import typing
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from typing import List, Any, Dict
|
|
||||||
|
|
||||||
from ..crypto import AES
|
from ..crypto import AES
|
||||||
|
|
||||||
from .. import utils, helpers, hints
|
from .. import utils, helpers, hints
|
||||||
from ..tl import types, functions, custom
|
from ..tl import types, functions, custom
|
||||||
from ..tl.types import MessageEmpty, Message, MessageService
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import PIL
|
import PIL
|
||||||
|
@ -135,7 +133,7 @@ class UploadMethods:
|
||||||
comment_to: 'typing.Union[int, types.Message]' = None,
|
comment_to: 'typing.Union[int, types.Message]' = None,
|
||||||
ttl: int = None,
|
ttl: int = None,
|
||||||
nosound_video: bool = None,
|
nosound_video: bool = None,
|
||||||
**kwargs) -> list[Any] | Any:
|
**kwargs) -> list[typing.Any] | typing.Any:
|
||||||
"""
|
"""
|
||||||
Sends message with the given file to the specified entity.
|
Sends message with the given file to the specified entity.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user