Skip to content

irfanchahyadi/Odong2Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 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.

Dependences

  • 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

How to deploy

Here step by step how I deploy this bot on AWS Lambda.

License

MIT License

Releases

No releases published

Packages

No packages published

Languages