Skip to content
A customizable Telegram shop bot
Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
.gitignore Add transaction file Apr 19, 2018
CONTRIBUTING.md Add CONTRIBUTING.md May 3, 2018
LICENSE.txt Rename LICENSE May 3, 2018
README.md Added possible fix to a common problem Sep 24, 2018
configloader.py Don't crash if config.ini does not exist Sep 2, 2019
core.py Small generic improvements May 30, 2018
database.py
requirements.txt Create requirements and update README May 3, 2018
strings.py Fixed typo Jul 1, 2018
utils.py Display the full error in debug mode Sep 18, 2018
worker.py Another bug fixed Jun 10, 2018

README.md

greed

A customizable Telegram shop bot, developed as a project for the final exam.

Requirements

  • Python 3.6 (or higher)
  • The packages specified in requirements.txt (install with pip install -r requirements.txt)
  • An Internet connection
  • A Telegram bot token (obtainable at @Botfather)
  • A payment provider token (obtainable by connecting a provider with your bot)
  • Optional: a sentry.io token

Installation

  1. Download the project files through git clone https://github.com/Steffo99/greed.git or this link.
  2. Install the project requirements with pip install -r requirements.txt
  3. Run python -OO core.py to generate the configuration file.
  4. Open the config folder and edit the config.ini file following the contained instructions.
    Ensure the is_template field is set to no.
  5. Run python -OO database.py to generate the database tables.
  6. Optional: customize the strings.py file
  7. Run python -OO core.py again to run the bot.
  8. Open Telegram, and send a /start command to your bot to be promoted to administrator.

Usage

All the bot features are available through Telegram.
As the administrator, you can add new products, check the placed orders, create new transactions and generate .csv log files.
Users will be able to add credit to their wallet, place orders and contact you in case they require assistance.

You can’t perform that action at this time.