Telegram bot for library management system.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Perpustakaan Telegram Bot (Library) is telegram bot for library management system. It can manage member data in a library. This bot consumes Perpustakaan API.
-
Clone the repo.
git clone https://github.com/fahri-r/perpustakaan-bot.git
-
Install Python packages.
pip install -r requirements.txt
-
Rename
.env.exampleinto.env. -
Set
BOT_TOKENvalue in.env(you can get the token from BotFather).... BOT_TOKEN= ...
-
Open
main.pyand uncomment this line.... # updater.start_polling() ... -
Also comment this line.
... updater.start_webhook(listen=HOST, port=int(PORT), url_path=TOKEN, webhook_url=URL_APP + TOKEN) ... -
Run main.py.
python main.py
When you're ready to deploy this bot into production, you have to change URL_APP value in .env. The value must be the url where the bot is deployed.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Distributed under the MIT License. See LICENSE for more information.