A Comprehensive Guide to Kickstart Your Telegram Bot Development!
Explore the Documentation »
View Demo
·
Report Bug
·
Request Feature
- About the Project
- Built With
- Getting Started
- Usage
- Roadmap
- Contributing
- License
- Authors
- Acknowledgements
The LuckNFTbot project is a comprehensive solution for anyone looking to quickly launch a feature-rich Telegram bot. Designed for engaging communication with an interested audience, the bot facilitates AirDrop NFTs, AirDrop Tokens, and includes a robust referral program. It is an ideal starting point for both hobbyists and professionals looking to delve into the world of Telegram bots.
Developed using procedural PHP (version 7+), this project stands out for its simplicity and efficiency. The absence of third-party libraries means it's lightweight and can be deployed on any PHP and MySQL supported hosting. This straightforward approach also makes the bot highly customizable and accessible for developers at any skill level.
To set up this project locally and get it running smoothly, follow these straightforward steps.
- Ensure your hosting environment supports PHP 7 and MySQL.
- Basic understanding of PHP and MySQL configuration is recommended.
To get your Telegram bot up and running, follow these installation steps. The primary script for the bot is tgbot.php
, which serves as the main executable.
-
Configure User Data in
config.php
:Edit the
config.php
file to include your specific user data. This configuration is crucial as it sets up the core parameters for your bot's operation. Here's a breakdown of what each line in the configuration file means:// Main administrative user of the bot, typically the bot owner or developer. $admin = 00000; // Replace 00000 with your Telegram ChatID // These are the Telegram channel nicknames used for verifying user subscriptions. $channel_id1 = "@nickname"; // Replace "@nickname" with the actual nickname of your channel #1 $channel_id2 = "@nickname"; // Replace "@nickname" with the nickname of your channel #2 $channel_id3 = "@nickname"; // And so on for your channel #3 // Wallet address for receiving payments. $recepientWallet = "XXXX"; // Replace "XXXX" with your TON Wallet address // Social media and external links associated with the bot. $twitterLNK = "https://twitter.com/nickname"; // Replace with your Twitter profile link $TGchannel1 = ""; // Link to an advertised Telegram channel $TGchannel2 = ""; // Another advertised Telegram channel $VKLNK = "https://vk.com/nickname"; // Replace with your VK profile link $MetaMaskLNK = "https://tegro.click/nickname"; // Replace with your MetaMask link // Bot API Token from Telegram. define('TOKEN', 'XXXXX'); // Replace 'XXXXX' with your actual Bot API Token
-
Database Configuration:
- Update MySQL details in
global.php
. - Import structure from
database.sql
.
- Update MySQL details in
-
Webhook Installation:
- Set up the webhook for
tgbot.php
at: Set Webhook
- Set up the webhook for
-
Localize and Customize:
- Modify bot responses in
lang.php
as needed.
- Modify bot responses in
Locate the bot in Telegram by searching @YourBot
, and initiate interaction using the /start
command. The bot's intuitive interface and responsive design make it easy for users to navigate and engage with its features.
Discover what's next for LuckNFTbot by checking our open issues for a list of proposed features and ongoing improvements.
Your contributions are what drive the incredible growth and success of open source projects like this. We welcome and appreciate any contributions, big or small.
- Suggestions and Improvements: Feel free to open an issue to propose changes, or directly create a pull request with your updates to the README.md.
- Best Practices: Ensure your contributions are well-documented and error-free.
- Respect the Process: Adhere to our Code Of Conduct and follow our contribution guidelines for a smooth collaboration.
- 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 more information about the license, visit License Commit Link.
- Lana Cool - Primary Developer - Lana Cool's Profile - Specializing in Telegram Bots on PHP
- Special thanks to Lana for their invaluable contributions to this project.