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

Compare commits

..

No commits in common. "97dbedaa549d0275333d468eebdb979cdefac2c5" and "661218c7e3483bdf440d98e4e5459528e3bc2cd5" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -68,7 +68,7 @@
This API is tested with Python 3.6-3.10 and Pypy 3.
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
@ -87,10 +87,7 @@ $ pip install git+https://github.com/eternnoir/pyTelegramBotAPI.git
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

View File

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