1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Documentation incorrect display is fixed now.

This commit is contained in:
coder2020official
2022-03-19 13:49:36 +05:00
parent b652a9f6dc
commit a6477541c0
4 changed files with 23 additions and 10 deletions

View File

@@ -226,8 +226,9 @@ def pil_image_to_file(image, extension='JPEG', quality='web_low'):
def is_command(text: str) -> bool:
"""
r"""
Checks if `text` is a command. Telegram chat commands start with the '/' character.
:param text: Text to check.
:return: True if `text` is a command, else False.
"""
@@ -452,6 +453,7 @@ def deprecated(warn: bool=True, alternative: Optional[Callable]=None):
"""
Use this decorator to mark functions as deprecated.
When the function is used, an info (or warning if `warn` is True) is logged.
:param warn: If True a warning is logged else an info
:param alternative: The new function to use instead
"""