Deployed link on render - https://tele-bot-osnhq-5mr7.onrender.com/ telegram Bot name - @welcome2626_bot(for test)
- Clone the repository.
- Install dependencies:
npm install
- Create a
.env
file with the following content:TELEGRAM_BOT_TOKEN=<your-bot-token>
- Start the application:
npm run start
- Open Telegram and search for your bot.
- Send a message "hello" or "hi" or "/start" to the bot.
- The bot will respond with a funny statement.
- If you send any other message, the bot will respond with "Sorry, I didn't understand that command."
- All incoming messages and bot responses are logged to the console.
- Run unit tests:
npm run test