Telegram chatbot for online shop
This bot pretend to be FMCG online shop, user can see list of product, order, and checkout. You can try it on @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)
- 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 exists. If i know erlier, i would like to use it from the start.
- Flask, for building web service
- requests, for sending HTTP request to Telegram API
- python-dotenv, for store and load secret key like token and password
- PyMySQL, connector to mysql database
- zappa, easy build and deploy web service to serverless Service like AWS Lambda
Here step by step how I deploy this bot on AWS Lambda.