Skip to content

ClydeUrov/Tg_Spire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TG bot with Stripe.

A telegram bot that can process incoming requests in an asynchronous mode, sells confectionery products downloaded from the database from Stripe and receives payments using Stripe platform and running with Docker.

Environment variables

Create a .env file in the root folder with the code and write there:

TG_TOKEN=Your_telegram_tocken_received_in_BotFather.
STRIPE_KEY=Your_stripe_key_received_from_the_site stripe.com

Program launch

You must already have Python 3 installed to run.

  • Download the code.
  • Install the dependencies with the command:
pip install -r requirements.txt
  • Run the script with the command:
python payment_bot.py

or

  • Run with docker-compose the script with the command:
docker-compose up --build

Releases

No releases published

Packages

No packages published