Skip to content

OlegDeFi/NftToncoinBot

 
 

Repository files navigation


NftToncoinBot - Telegram bot

An Awesome ReadME To Jumpstart Your Own Telegram Bot!

Explore the docs ยป

View Demo . Report Bug . Request Feature

Downloads Contributors Issues License

Table Of Contents

About The Project

This project contains everything you need to launch your own Telegram bot quickly.

This bot is designed for communication with interested audience, buying tokens BloggerNFT, Blogger3D, NFTNude and also has referral program.

Built With

This project is developed in procedural PHP version 7+ without the use of libraries, which allows you to run it on any hosting that supports PHP and MySQL. This approach also makes it easy and accessible to edit the bot's code.

Getting Started

This is an example of how you may setting up your project locally. To get a local copy up and running follow these simple steps described below.

Prerequisites

This project requires any hosting that supports PHP 7 and MySQL.

Installation

Main bot executable script: tgbot.php

  1. Fill in the user data in the config.php file, namely:

############################
$admin = 00000; // ChatID of a manager/owner
$urlToAvatar = "https://yourdomain/BotFolder/"; // url To Avatar Folder
$NFTwallet = "XXXXX"; // TON Wallet for incoming payments
$BloggerNFT = 75; // The price of BloggerNFT in TON
$Blogger3D = 300; // The price of Blogger3D in TON
$NFTNude = 25; // The price of NFTNude in TON
$NFTRefPercent = 20; // Referral percent
$XAPIKey = ""; // API Key of Toncenter website
$CryptoPayAPIToken = ""; // CryptoPay API Token
define('TOKEN', 'XXXXX'); // Add the Bot API Token
###########TERGO DATA################
$user_id = 0000; // User ID at Tegro Money
$api_key = 'XXX'; // Tegro Money API Key
$roskassa_publickey = 'XXXX'; // Tegro Money Public Key
$roskassa_secretkey = 'XXXX'; // Tegro Money Secret Key
###########################

  1. Register the bot in Cryptopay by specifying the postback URL: https://yourdomain/BotFolder/postback_cryptopay.php

  2. Set the postback URL in the Tegro Money account: https://yourdomain/BotFolder/postback.php

  3. Fill in the MySQL database data in the global.php file

  4. Import MYSQL database structure from database.sql file

  5. Install the webhook at https://api.telegram.org/ for the tgbot.php script: https://api.telegram.org/botXXXXX/setWebhook?url=https://yourdomain/BotFolder/tgbot.php

  6. Bot texts can be edited in the lang.php file

Usage

Find the bot in the Telegram environment by its username: @YourBot and start it with the command /start

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  • If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
  • Please make sure you check your spelling and grammar.
  • Create individual PR for each suggestion.
  • Please also read through the Code Of Conduct before posting your first idea as well.

Creating A Pull Request

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

https://github.com/TGRTON/NftToncoinBot/blob/main/LICENSE

Authors

  • Lana Cool - Developer - Lana Cool - Telegram bots on PHP

Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%