Code Monkey home page Code Monkey logo

python-orders-collector-bot's Introduction

This is a telegram bot to collect data of order in a chat room

Requirement:

  • pyTelegramBotAPI
  • flask
  • oauth2client
  • gspread
  • poetry

Prepare!!!

  • On telegram app, go to botfather to make a telegram bot, then get API key and save into .env file
  • Make google api: The gspread documentation explains how to create Google OAuth2.0 JWTs
  • Save the JWTs file into working directory
  • In the working directory, run poetry install to make the virtualenv. Then poetry shell to activate virtual environment, poetry run python app.py to run app in debug mode

How to deploy?

  1. Install heroku cli
  2. Login to heroku by heroku login
  3. Create new app
  4. Go to tab setting, choose Reveal Config Vars to set environment variables follow .env file
  5. Use command: heroku container:push --app <PROJECT_NAME> web to build and push docker file
  6. Use command: heroku container:release --app <PROJECT_NAME> web to release this app
  7. Done! Go to telegram bot to check the result.

python-orders-collector-bot's People

Contributors

dependabot[bot] avatar tranvietphuoc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.