Welcome to the WinNFTbot project! This README is your gateway to creating an amazing Telegram bot.
- Documentation: Explore the docs »
- Demonstration: View Demo
- Feedback: Report Bug | Request Feature
- About the Project
- Built With
- Getting Started
- Usage
- Roadmap
- Contributing
- License
- Authors
- Acknowledgements
Embark on a journey to launch your own Telegram bot with ease. WinNFTbot is designed to facilitate seamless communication with an interested audience, enabling participation in NFT raffles and offering a referral program.
Crafted using procedural PHP version 7+, this project eschews libraries for simplicity and universality, ensuring compatibility with any PHP and MySQL supporting hosting. This approach also simplifies code editing.
Follow these steps to set up your project locally.
- Hosting supporting PHP 7 and MySQL.
The core of the bot is the tgbot.php
script, serving as the main executable.
First, tailor the config.php
file to your specific settings:
############################
$admin = 00000; // ChatID of the bot's manager or owner
$NFTwallet = "XXXXX"; // TON Wallet for receiving payments
$WinNFTbotRefPercent = 10; // Percentage for the referral program
$XAPIKey = ""; // API Key for Toncenter website
$CryptoPayAPIToken = ""; // CryptoPay API Token
define('TOKEN', 'XXXXX'); // Your Bot's API Token
########### TEGRO DATA ################
$user_id = 0000; // User ID for Tegro Money
$api_key = 'XXX'; // API Key for Tegro Money
$roskassa_publickey = 'XXXX'; // Public Key for Tegro Money
$roskassa_secretkey = 'XXXX'; // Secret Key for Tegro Money
############################
Register your bot in Cryptopay by specifying the postback URL for seamless transaction processing. Postback URL for Cryptopay: https://yourdomain/BotFolder/postback_cryptopay.php
Set up the postback URL in your Tegro Money account to handle payments efficiently. Tegro Money Postback URL: https://yourdomain/BotFolder/postback.php
Fill in your MySQL database details in the global.php
file to ensure proper data management and storage.
Use the database.sql
file to import the necessary database structure. This step is vital for setting up the bot's database schema.
Set up the webhook for your bot on the Telegram API. This step is crucial for enabling real-time communication between your bot and Telegram. Webhook Installation URL: https://api.telegram.org/botXXXXX/setWebhook?url=https://yourdomain/BotFolder/tgbot.php
Edit the lang.php
file to customize your bot's responses and texts. This allows for a personalized user experience.
Search for @YourBot
in Telegram and start it with /start
.
View our planned features and issues.
Your contributions drive the open-source community. Please follow our guidelines:
- Fork the Project
- Create a Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
Read through the Code Of Conduct for good practices.
Distributed under the MIT License. See LICENSE
for more information.
- Lana Cool - Developer - Profile
- Kudos to Lana for the tremendous work.