View Demo | Report Bug | Request Feature
- About the Project
- Built With
- Getting Started
- Usage
- Roadmap
- Contributing
- License
- Authors
- Acknowledgements
The TegroNFTbot is a comprehensive solution for launching a Telegram bot focused on NFT transactions. This bot facilitates interaction with an engaged audience, offering capabilities for purchasing various NFTs, participating in NFT pre-sale draws, and benefiting from a referral program.
The bot is developed using procedural PHP version 7+, optimized for performance on any hosting supporting PHP and MySQL. This design choice simplifies the bot's code, making it easily editable and adaptable.
To set up this project locally and get it running, follow these steps:
Requires hosting with PHP 7 and MySQL support.
The main executable script of the bot is tgbot.php
.
- Configure
config.php
with your specific settings:
############################
$admin = 00000; // ChatID of manager/owner
$nftCatRate, $nftDogRate, $nftCustRate = 1; // Rates (currently disabled)
$BloggerNFT = 75; // Price in TON for BloggerNFT
$Blogger3D = 300; // Price in TON for Blogger3D
$NFTNude = 25; // Price in TON for NFTNude
$NFTRefPercent = 10; // Referral percent
$NFTwallet = "XXXXX"; // TON Wallet for payments
$toncenterAPIKey = "XXXXX"; // API Key of Toncenter
$CryptoPayAPIToken = ""; // CryptoPay API Token
define('TOKEN', 'XXXXX'); // Bot API Token
$api_key = 'XXX'; // Tegro Money API Key
$roskassa_publickey = 'XXXX'; // Tegro Money Public Key
$roskassa_secretkey = 'XXXX'; // Tegro Money Secret Key
############################
-
Register the Bot in Cryptopay Specify the postback URL to integrate your bot with Cryptopay for transaction processing.
- Postback URL: https://yourdomain/BotFolder/postback_cryptopay.php
-
Set the Postback URL in Tegro Money Account Configure the postback URL in your Tegro Money account to manage financial transactions efficiently.
- Tegro Money URL: https://yourdomain/BotFolder/postback.php
-
Fill in MySQL Database Details Update the
global.php
file with your MySQL database information to ensure proper data handling.- Update
global.php
with MySQL details.
- Update
-
Import MySQL Database Structure Utilize the
database.sql
file to set up your database with the required structure.- Import structure from
database.sql
.
- Import structure from
-
Install the Webhook for
tgbot.php
Script Set up the webhook on Telegram's API to enable real-time interactions with your bot. -
Edit Bot Texts in
langs.php
File Customize the bot's responses and messages by editing thelangs.php
file.- Modify
langs.php
for custom bot texts.
- Modify
- Finding and Starting the Bot:
- Search for your bot in Telegram using
@YourBot
. - Start the bot with the
/start
command to engage with its features.
- Search for your bot in Telegram using
- Stay Updated: Check out the Open Issues section for upcoming features and known issues.
Your contributions shape the future of this project. Follow these guidelines to contribute:
- Suggest Improvements: If you have ideas or suggestions, submit them through the Issues section.
- Quality Assurance: Ensure your contributions are well-written and error-free.
- Individual Pull Requests: For each suggestion, create a separate PR.
- Follow the Code Of Conduct: Read and adhere to the Code Of Conduct.
- Fork the Repository: Start by forking the project repository.
- Create a Feature Branch: Use
git checkout -b feature/AmazingFeature
for your new feature. - Commit Your Changes: After making changes, commit them with
git commit -m 'Add some AmazingFeature'
. - Push to Your Branch: Push the changes to your feature branch using
git push origin feature/AmazingFeature
. - Open a Pull Request: Finally, open a pull request for review and integration.
- The project is under the MIT License.
- Primary Developer: Lana Cool - Explore more on Lana Cool's GitHub.
- Special Thanks: Heartfelt gratitude to Lana, the key contributor and visionary behind this project.