The wiki is home to number of more elaborate introductions of the different features of python-telegram-bot and other useful resources that go beyond the technical documentation.It contains descriptions of all available classes, modules, methods and arguments as well as the changelog. The package documentation is the technical reference for python-telegram-bot.Moreover, the Tutorial: Your first Bot gives an introduction on how chatbots can be easily programmed with the help of the telegram.ext module. Our Wiki contains an Introduction to the API explaining how the pure Bot API can be accessed via python-telegram-bot. pip install "python-telegram-bot" installs all optional dependencies that are related to telegram.ext, i.e.pip install "python-telegram-bot" installs all optional dependencies.pip install "python-telegram-bot".Īdditionally, two shortcuts are provided: To install multiple optional dependencies, separate them by commas, e.g. pip install "python-telegram-bot" installs the APScheduler~=3.10.4 library and enforces pytz>=2018.6, where pytz is a dependency of APScheduler.Use this, if you want to use arbitrary callback_data. pip install "python-telegram-bot" installs the cachetools~=5.3.2 library. Use this, if you want to use _webhook/ _webhook. pip install "python-telegram-bot" installs the tornado~=6.4 library.pip install "python-telegram-bot" installs aiolimiter~=1.1.0.pip install "python-telegram-bot" installs httpx. Use this, if you want to work behind a Socks5 server. Use this, if you want to use Telegram Passport related functionality. pip install "python-telegram-bot" installs the cryptography>=39.0.1 library.PTB can be installed with optional dependencies: If you encounter dependency conflicts due to these bounds, feel free to reach out. On the other hand, we have to ensure stability of python-telegram-bot, which is why we do apply version bounds. To minimize dependency conflicts, we try to be liberal in terms of version requirements on the (optional) dependencies. Python-telegram-bot is most useful when used along with additional libraries. The only required dependency is httpx ~= 0.25.2 for This allows to avoid unnecessary dependency conflicts for users who don't need the optional features. Instead, they are listed as optional dependencies. However, for some features using a 3rd party library is more sane than implementing the functionality again.Īs these features are optional, the corresponding 3rd party dependencies are not installed by default. Python-telegram-bot tries to use as few 3rd party dependencies as possible. This allows you to verify that a release file that you downloaded was indeed provided by the python-telegram-bot team. In addition, the GitHub release page also contains the sha1 hashes of the release files in the files with the suffix. The keys are named in the format -.gpg or -current.gpg if the key is currently being used for new releases. The signatures are uploaded to both the GitHub releases page and the PyPI project and end with a suffix. $ python setup.py install Verifying Releases
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |