Package: python-telegram-payment-bot
We have made you a wrapper you can’t refuseWe have a vibrant community of developers helping each other in ourTelegram group. Join us!Stay tuned for library updates and new releases on ourTelegram Channel.Table of contentsIntroductionTelegram API supportInstallingGetting startedLearning by exampleLoggingDocumentationGetting helpContributingLicenseIntroductionThis library provides a pure Python interface for theTelegram Bot API.
It’s compatible with Python versions 2.7, 3.3+ andPyPy.
It also works withGoogle App Engine.In addition to the pure API implementation, this library features a number of high-level classes to
make the development of bots easy and straightforward. These classes are contained in thetelegram.extsubmodule.Telegram API supportAll types and methods of the Telegram Bot API4.1are supported.InstallingYou can install or upgrade python-telegram-bot with:$pipinstallpython-telegram-bot--upgradeOr you can install from source with:$gitclonehttps://github.com/python-telegram-bot/python-telegram-bot--recursive$cdpython-telegram-bot$pythonsetup.pyinstallIn case you have a previously cloned local repository already, you should initialize the added urllib3 submodule before installing with:$gitsubmoduleupdate--init--recursiveGetting startedOur Wiki contains a lot of resources to get you started withpython-telegram-bot:Introduction to the APITutorial:Your first BotOther references:Telegram API documentationpython-telegram-bot documentationLearning by exampleWe believe that the best way to learn and understand this simple package is by example. So here
are some examples for you to review. Even if it’s not your approach for learning, please take a
look atechobot2, it is de facto the base for most of the bots out there. Best of all,
the code for these examples are released to the public domain, so you can start by grabbing the
code and building on top of it.Visitthis pageto discover the official examples or look at the examples on thewikito see other bots the community has built.LoggingThis library uses theloggingmodule. To set up logging to standard output, put:importlogginglogging.basicConfig(level=logging.DEBUG,format='%(asctime)s-%(name)s-%(levelname)s-%(message)s')at the beginning of your script.You can also use logs in your application by callinglogging.getLogger()and setting the log level you want:logger=logging.getLogger()logger.setLevel(logging.INFO)If you want DEBUG logs instead:logger.setLevel(logging.DEBUG)Documentationpython-telegram-bot’s documentation lives atreadthedocs.io.Getting helpYou can get help in several ways:We have a vibrant community of developers helping each other in ourTelegram group. Join us!OurWiki pagesoffer a growing amount of resources.You can ask for help on Stack Overflow using thepython-telegram-bot tag.As last resort, the developers are ready to help you withserious issues.ContributingContributions of all sizes are welcome. Please review ourcontribution guidelinesto get started. You can also help byreporting bugs.LicenseYou may copy, distribute and modify the software provided that modifications are described and licensed for free underLGPL-3. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don’t have to be.