Your Comprehensive Guide to Launching a Feature-Rich Telegram Bot!
Explore the Documentation »
View Demo
·
Report Bug
·
Request Feature
- About the Project
- Built With
- Getting Started
- Usage
- Roadmap
- Contributing
- License
- Authors
- Acknowledgements
The NftToncoinBot project is your gateway to launching a dynamic Telegram bot tailored for cryptocurrency enthusiasts. It's engineered for seamless communication, trading tokens like BloggerNFT, Blogger3D, NFTNude, and features a comprehensive referral program.
Developed in procedural PHP version 7+, this project is streamlined for simplicity and wide compatibility. It operates without dependencies on external libraries, ensuring ease of deployment on any PHP and MySQL supported hosting. This approach also facilitates easy customization of the bot's code.
To set up this project locally, follow these clear and concise steps.
- A hosting solution supporting PHP 7 and MySQL is required.
To install and configure the bot, follow these steps:
-
Configure the
config.php
File:- Set up the main bot executable script:
tgbot.php
. - Edit
config.php
with your specific details:$admin = 00000; // ChatID of a manager/owner $urlToAvatar = "https://yourdomain/BotFolder/"; // URL to Avatar Folder $NFTwallet = "XXXXX"; // TON Wallet for payments $BloggerNFT = 75; // Price of BloggerNFT in TON $Blogger3D = 300; // Price of Blogger3D in TON $NFTNude = 25; // Price of NFTNude in TON $NFTRefPercent = 20; // Referral percent $XAPIKey = ""; // API Key of Toncenter website $CryptoPayAPIToken = ""; // CryptoPay API Token define('TOKEN', 'XXXXX'); // Bot API Token
- Include Tegro Money details:
$user_id = 0000; // User ID at Tegro Money $api_key = 'XXX'; // API Key $roskassa_publickey = 'XXXX'; // Public Key $roskassa_secretkey = 'XXXX'; // Secret Key
- Set up the main bot executable script:
-
Cryptopay Registration:
- Register the bot in Cryptopay by specifying the postback URL.
-
Tegro Money Postback URL:
- Set the postback URL in Tegro Money account.
-
Database Configuration:
- Fill in MySQL details in
global.php
. - Import the MYSQL database structure from
database.sql
.
- Fill in MySQL details in
-
Webhook Installation:
- Install the webhook for the
tgbot.php
script.
- Install the webhook for the
-
Customizing Bot Texts:
- Edit responses and texts in
lang.php
.
- Edit responses and texts in
To use the bot, search for @YourBot
in the Telegram environment and initiate it using the /start
command.
For a detailed list of upcoming features and known issues, visit our open issues.
Your contributions drive the growth of this open source project. We value and appreciate your input, suggestions, and improvements.
- Open an Issue: Feel free to suggest changes.
- Pull Requests: Ensure to check spelling and grammar, and create individual PRs for each suggestion.
- Code of Conduct: Review our Code Of Conduct before contributing.
- Fork the Project
- Create your 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 detailed licensing information, visit our License page.
- Lana Cool - Developer - Lana Cool's GitHub - Expertise in Telegram Bots on PHP
- A special thank you to Lana for their invaluable contributions and insights.