https://github.com/irfanchahyadi/odong2bot
Telegram chatbot for online shop
https://github.com/irfanchahyadi/odong2bot
mysql python serverless telegram-bot webhook
Last synced: 8 months ago
JSON representation
Telegram chatbot for online shop
- Host: GitHub
- URL: https://github.com/irfanchahyadi/odong2bot
- Owner: irfanchahyadi
- License: mit
- Created: 2019-11-16T16:50:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:34:49.000Z (about 3 years ago)
- Last Synced: 2024-11-07T07:46:58.711Z (over 1 year ago)
- Topics: mysql, python, serverless, telegram-bot, webhook
- Language: Python
- Size: 4.5 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Odong2Bot
Telegram chatbot for online shop

Odong2Bot
This bot pretend to be FMCG online shop, user can see list of product, order, and checkout.
You can try it on [@Odong2bot](https://t.me/Odong2bot).
Here are some of the features:
- Register user (automatically when start chating with bot)
- See list of Product
- Sort, Filter, and Search Product
- See list of item in Cart
- Edit and Remove item in Cart
- Checkout Order
- Send Location and auto detect address (reverse geocode from [OpenStreetMap](https://www.openstreetmap.org/))
- See Historical Transaction
- See Today's Promo
I use Python and Flask to serve webhook from Telegram API. Receive update, translate intent, and handle response.
For interact with Telegram, i use requests package directly to Telegram API without using some wrapper package.
I don't know that Telegram wrapper package like [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) exists. If i know erlier, i would like to use it from the start.
## Dependences
- [Flask](https://github.com/pallets/flask), for building web service
- [requests](https://github.com/psf/requests), for sending HTTP request to Telegram API
- [python-dotenv](https://github.com/theskumar/python-dotenv), for store and load secret key like token and password
- [PyMySQL](https://github.com/PyMySQL/PyMySQL), connector to mysql database
- [zappa](https://github.com/Miserlou/Zappa), easy build and deploy web service to serverless Service like AWS Lambda
## How to deploy
[Here](demo/installation.md) step by step how I deploy this bot on AWS Lambda.
## License
[MIT License](LICENSE)