A Telegram bot that displays the remaining time until a specified event.
This Telegram bot calculates and displays the remaining time until a specified event. Users can interact with the bot to view the countdown to the event.
- Start a chat with the bot by searching for it on Telegram or clicking on this link.
- Click on the "Start" button to initiate a conversation with the bot.
- Follow the prompts to view the remaining time until the specified event.
- Displays remaining time in days, hours, and minutes.
- Supports customization for different target events.
- User-friendly interface with interactive buttons.
You can test this bot by searching for @Front_chapter_countdown_bot
on Telegram or by clicking on this link.
To run this bot locally or deploy it on your own server, follow these steps:
-
Clone this repository: git clone https://github.com/SaeedCodez/front-chapter-countdown.git
-
Install dependencies: cd front-chapter-countdown
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add your Telegram API token:TELEGRAM_API_TOKEN=your_telegram_api_token
-
Start the bot:
node index.js
This bot is built using the Telegraf library for Telegram bots and moment-timezone for timezone handling.