mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Compare commits
2 Commits
661218c7e3
...
97dbedaa54
Author | SHA1 | Date | |
---|---|---|---|
|
97dbedaa54 | ||
|
4028b44d07 |
@ -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
|
||||||
|
|
||||||
|
@ -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 = {"&": "&", "<": "<", ">": ">"}
|
chars = {"&": "&", "<": "<", ">": ">"}
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user