A Telegram bot-powered shop built with TON blockchain integration.
git clone https://github.com/yourusername/ton-shop.git
cd ton-shop
- Open Telegram and search for @BotFather
- Start a chat with BotFather and send
/newbot
- Follow the instructions to create your bot
- Save the API token provided by BotFather - you'll need it for the
.env
file
Create a .env
file in the root directory and add the following:
BOT_TOKEN=your_telegram_bot_token_here
# Add any other required environment variables
Install dependencies and build the project:
npm install
npm run build
- Create a Netlify account if you don't have one
- Install Netlify CLI:
npm install -g netlify-cli
- Deploy the build directory:
cd build netlify deploy --prod
- Follow the prompts to complete the deployment
- Save the deployment URL - you'll need it for your bot configuration
Start the Telegram bot:
node Bot/bot.js
- Make sure you have Node.js installed (version 14 or higher recommended)
- The bot will be available at your configured Telegram handle
- The shop interface will be accessible through the Netlify deployment URL
For issues or contributions, please open an issue or PR in the repository.