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

Compare commits

...

2 Commits

Author SHA1 Message Date
Badiboy
97dbedaa54
Fix > 2022-02-07 00:57:33 +03:00
Badiboy
4028b44d07
Update README.md 2022-02-06 21:02:14 +03:00
2 changed files with 6 additions and 3 deletions

View File

@ -68,7 +68,7 @@
This API is tested with Python 3.6-3.10 and Pypy 3. This API is tested with Python 3.6-3.10 and Pypy 3.
There are two ways to install the library: There are two ways to install the library:
* Installation using pip (a Python package manager)*: * Installation using pip (a Python package manager):
``` ```
$ pip install pyTelegramBotAPI $ pip install pyTelegramBotAPI
@ -87,7 +87,10 @@ $ pip install git+https://github.com/eternnoir/pyTelegramBotAPI.git
It is generally recommended to use the first option. It is generally recommended to use the first option.
**While the API is production-ready, it is still under development and it has regular updates, do not forget to update it regularly by calling `pip install pytelegrambotapi --upgrade`* *While the API is production-ready, it is still under development and it has regular updates, do not forget to update it regularly by calling*
```
pip install pytelegrambotapi --upgrade
```
## Writing your first bot ## Writing your first bot

View File

@ -320,7 +320,7 @@ def escape(text: str) -> str:
:param text: the text to escape :param text: the text to escape
:return: the escaped text :return: the escaped text
""" """
chars = {"&": "&amp;", "<": "&lt;", ">": "&gt"} chars = {"&": "&amp;", "<": "&lt;", ">": "&gt;"}
for old, new in chars.items(): text = text.replace(old, new) for old, new in chars.items(): text = text.replace(old, new)
return text return text