Telegram Bot in Python, auto-sale goods store
15-11-2023, 05:51
The Best Car Sales Bot | Telegram Store
Greetings to all. I present to you - Telegram AutoShop.
The bot is authored and developed entirely from scratch on the Aiogram library.
Aiogram is considered to be the best asynchronous library for telegram bots at the moment.
For questions/errors, check the FAQ first.
(you can see the detailed changes in the changelog below)
Functionality and information about the bot:
General:
● FAQ is an informative, changeable message with prepared syntax and HTML markup.
● Detailed information about the bot (number of users, products, positions, categories, profits).
● A separate file with the bot settings. You don't have to go into the bot's code (settings.ini).
● Sending a bot for technical work (the bot becomes available only to admins).
● Automatic creation and configuration of a database (Database) when the bot is launched.
● Support (contacts) - A button with the output of the administrator's contacts.
● When the bot is launched, the update is automatically checked.
● The ability to enable/disable purchases and deposits.
● Add an unlimited number of administrators.
● A small design part (buttons, text, emoticons).
● Convenient and multifunctional admin panel.
Payment system:
● If the QIWI wallet does not work when the user deposits the balance, the administrators will receive a notification.
● When adding/changing a QIWI wallet, the bot automatically checks them for operability.
● When errors are output from QIWI, the bot decrypts the error code into text.
● A choice of the replenishment method is available (by form, by nickname, by number).
● Changing the QIWI wallet via the bot's admin panel.
● Checking the health of the QIWI wallet.
● View the balance of the QIWI wallet.
Products:
● Commands to get a list of all products, items and categories.
● Convenient pages for scrolling through categories and positions.
● The ability to attach images to products.
● Deleting all products, items and categories at once.
● Mass and single loading of goods.
General functions:
● Search for information about deposits and purchases by checks.
● Complete information about the user when searching for him.
● View the user's last 10 purchases.
● Sending messages to all users of the bot.
● Search for a user's profile by ID and login.
● Changing and issuing the balance to the user.
● Sending a message to the user.
Protection:
● Protection against payment in tenge when replenishing the balance.
● Protection against incorrect HTML syntax.
● Protection against re-issuing the balance.
● Spam protection in the bot (Middlewares).
Installation Instructions:
1. Go to the official python website and select version 3.9.9 (download).
Select the file - Windows installer (64-bit).
Download and install it. When installing, be sure to check the box on "Add Python to path".
Make sure that you don't have any other versions of python.
2. Download, unpack the archive with the bot and open the settings.ini file
Creating a bot and getting a token in this bot => BotFather (clickable)
Find out your personal ID(Your User ID) in this bot => getmyid_bot (clickable)
Enter the received data into the settings.ini file
3. Open the command line (cmd), go to the directory with the bot (see FAQ below) and install the following libraries:
aiogram
bs4
pyQiwiP2P
requests
Install it like this:
pip install Library name
4. Launch the bot (make sure that cmd is in the directory with the bot):
python main.py
5. The bot is running.
15-11-2023, 05:51
29-07-2024, 09:26
31-07-2024, 02:18
There are no comments
Information
Users of Visitor are not allowed to comment this publication.