Code Monkey home page Code Monkey logo

pavelshaura / autoseller_bot_aiogram_3 Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 7.0 2.18 MB

Bot auto sales of digital goods (VPN subscription) using Yoomoney API and Sellix API (bank card and bitcoin). The main part uses MongoDB, bitcoin payment data and bitcoin payment status tracking uses SQLite.

License: MIT License

Python 100.00%
aiogram-bot aiogram3 api mongodb telegram-bot yoomoney autosell shop-bot crypto crypto-invoice crypto-telegram-bot cryptocurrency cryptoinvoicegenerator cryptotelegrambot payment-bot-telegram sellix bitcoin-bot sellixapi apscheduler sqlite

autoseller_bot_aiogram_3's Introduction

Bot auto sales of digital goods (subscription to VPN) using API Yoomoney and MongoDB. Added possibility to pay with cryptocurrency (bitcoin) powered by the Sellix API

Added ability to generate cryptocurrency invoices and track their confirmations before order fulfilment/ (Used SQLite3 to store and manage cryptocurrency payment data)

Link to bot:

https://t.me/instaViPN_bot

New features:

  1. Cryptocurrency invoice generation: Generate cryptocurrency invoices via Sellix API directly from the Telegram bot.
  2. Confirmation Tracking: Wait for a predetermined number of confirmations before considering a payment complete.
  3. Data Management: Use SQLite3 to efficiently store and manage transaction and invoice data.
  4. Status and Cancellation: Commands to check the status of an order or cancel it.

Installation

  1. Install Python 3.x if it is not installed. Python.org

  2. Clone the repository:

    git clone https://github.com/PavelShaura/Autoseller_bot_aiogram_3
    
  3. Navigate to the project catalog:

    cd Autoseller_bot_aiogram_3
    
  4. Install the dependencies using pip:

    pip install -r requirements.txt
    

Configuration

  1. Create an .env configuration file in the root directory of the project using the .env.example template.(For notifications about bot actions to come to your Telegram channel - add the bot as an administrator to this group.)
  2. Run the file yoomoney_auth.py and get your token to access the YOOMONEY API (You'll need YOOMONEY_CLIENT_ID and YOOMONEY_REDIRECT_URL).
  3. Follow all steps from the program.
  4. Paste your token in YOOMONEY_TOKEN

Before you begin, ensure you have met the access to the Sellix API with your credentials https://sellix.io/

Here's what the alerts to the admin group look like: Иллюстрация к проекту

Structure and storage logic of digital goods sold

  1. QR code files and configuration files must be located in the static_files folder, pre-numbered starting from one. There are four folders in total (two folders with photo QR codes (trial and payment), and two folders with .conf configuration files (trial and payment).

  2. In case of successful payment (or trial subscription) the file is sent to the user, then it is recorded in the database (photo_id) of this file in the table "files" for the possibility of repeated sending to the user, and then deleted from the folder.

  3. The configuration .conf file is identified by and corresponds to the sequence number of the QR code photo shipped. That is - if the file "34.png" for example was sent to a user, then the file "34.conf" will be assigned to this user accordingly. The ".conf" file is also written to the database (file_id) in the "files" table, then deleted from the folder.

Иллюстрация к проекту

Questions and suggestions: https://t.me/PavelShau

Start

Start the bot, run the following command in the root directory of the project:

python bot.py

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.