Your Comprehensive Guide to Harnessing the Power of a Custom Telegram Bot
Explore the Detailed Documentation »
View a Live Demo ·
Report a Bug ·
Request Additional Features
- Project Insights
- Development Technologies
- Initial Setup and Installation
- Operational Guidelines
- Future Enhancements
- Community and Contributions
- Licensing Terms
- Project Contributors
- Special Acknowledgements
TegroTONbot is an all-encompassing Telegram bot, meticulously crafted for engaging with a targeted audience, facilitating TGR presales, enabling cryptocurrency transactions in TON, and offering a dynamic referral program. This bot is a one-stop solution for those seeking to quickly launch a versatile Telegram bot capable of handling various cryptocurrency transactions.
Crafted using procedural PHP version 7+ without reliance on external libraries, TegroTONbot offers seamless integration on any PHP and MySQL supported hosting. This design philosophy ensures ease of customization and scalability, making it an ideal choice for developers and enthusiasts alike.
For optimal performance, TegroTONbot requires hosting support for PHP 7 and MySQL.
The primary script for running the bot is tgbot.php
.
Configure your bot's settings by editing the config.php
file with the necessary user data:
############################
$admin = 00000; // ChatID of a manager, owner
$verifyrecipient = "XXXX"; // TON wallet for getting verification transactions
$reference = 5; // Currently not in use
$depopercent = 5; // Referral percentage for deposits
$NFTRefPercent = 10; // General referral percentage
$wallet2donate = "XXXXX"; // TON wallet for donations
$verifRefFee = 0.05; // Commission to referral from verification payment
$api_key = 'XXX'; // Tegro Money API Key
$roskassa_publickey = 'XXXX'; // Tegro Money Public Key
$roskassa_secretkey = 'XXXX'; // Tegro Money Secret Key
$tegrotonrate = 0.1; // Tegro and CryptoBot commission
$NFTwalletTON = "XXXXX"; // TON Wallet for incoming payments
$nftCatRate = 45; // Currently not in use
$nftDogRate = 65; // Currently not in use
$toncenterAPIKey = "XXXXX"; // API Key of Toncenter website
$CryptoPayAPIToken = ""; // CryptoPay API Token
define('TOKEN', 'XXXXX'); // Bot API Token
############################
-
Integration with Cryptopay:
- Set up the bot in Cryptopay by specifying the Postback URL.
-
Tegro Money Account Configuration:
- Implement the Tegro Money Postback URL for seamless transactions.
-
MySQL Database Setup:
- Enter relevant database details in the
global.php
file.
- Enter relevant database details in the
-
Database Structure Initialization:
- Import the database structure from the
database.sql
file.
- Import the database structure from the
-
Webhook Configuration for
tgbot.php
:- Establish the webhook here.
-
Bot Text Customization:
- Modify the bot's responses in the
langs.php
file.
- Modify the bot's responses in the
-
Daily Rate Checker Script:
- Schedule the TON Rate Checker Script to run daily via cron.
To interact with TegroTONbot, locate it in Telegram using @YourBot
and initiate the conversation with /start
.
Stay informed about planned features and current issues by visiting our Open Issues page.
We thrive on community contributions and value each participant in the open-source ecosystem. Your contributions, suggestions, and feedback are immensely appreciated.
- Propose Enhancements: Feel free to suggest changes or new features by opening an issue.
- Attention to Detail: Please ensure your contributions are well-documented and error-free.
- Individual PRs: Create a separate PR for each of your suggestions.
- Adherence to Conduct: Review our Code Of Conduct before contributing.
- Fork the Project.
- Create a Feature Branch (
git checkout -b feature/AmazingFeature
). - Commit Your Changes (
git commit -m 'Add some AmazingFeature'
). - Push to the Branch (
git push origin feature/AmazingFeature
). - Open a Pull Request.
For licensing details, visit the license page.
- Lead Developer: Lana Cool - A seasoned developer specializing in Telegram bots built on PHP.
- Heartfelt thanks to Lana, whose contributions have been pivotal in the development of TegroTONbot.