DOWNLOAD: https://github.com/Lakylife AUTHOR: LAKYLIFE
This project contains a basic template for creating a Telegram bot for the PizzaPenny meme game application. The Telegram bot allows users to communicate with the application and obtain information or perform actions through Telegram.
- Node.js
- NPM or Yarn
- Valid Telegram account to create a bot
- Valid token for the Telegram Bot API
- Clone this repository:
- Navigate to the project directory:
- Install dependencies using
NPM
orYarn
npm init -y
npm install
- Create a
.env
file: Create a.env
file in the project directory and set the following environment variables:
TELEGRAM_BOT_TOKEN
: Your valid token for the Telegram Bot API.WEBHOOK_URL
: The URL where your bot's webhook will be set.PORT
: The port on which your server will run.
- Register your bot with BotFather:
Register your bot with BotFather and obtain your token.
- Set
WEBHOOK_URL
:https://api.examples.com
Set WEBHOOK_URL
to a publicly accessible URL for your server.
- Start the server:
node telegrambot.js
orpm2 start telegrambot.js --name "TELEGRAM BOT MINI APP"
- Interact with the bot
Connect your bot on Telegram using its username or the bot's page link. Start interacting with the bot using various commands, such as /start
or other custom commands implemented in your code.
npm install vite@latest nameApp
npm install @twa-dev/sdk
- Interact with the bot
This project is licensed under the MIT License.