A simple Telegram bot that sends encouraging messages to users at random intervals. Perfect for keeping up the spirits and motivation throughout the day!
- Sends random encouraging messages at intervals between 20 and 30 minutes.
- Logs the remaining time until the next message in the console.
- Configurable via a simple
config
file.
Follow these instructions to get your bot up and running.
-
Clone the repository
-
Create a
config
file:In the root of the project directory, create a file named
config
with the following content:chatId=YOUR_CHAT_ID token=YOUR_BOT_TOKEN
-
Add messages: Create a file named
messages.txt
in the root of the project directory and add your encouraging messages, one per line. Examplemessages.txt
:You are amazing! 🌟 Keep up the great work! 💪 Believe in yourself! 🚀
-
Build and run the bot
- config: Contains the bot token and chat ID.
- messages.txt: Contains the list of messages to be sent.
Once the bot is running, it will automatically send messages at intervals between 20 and 30 minutes. The remaining time until the next message will be displayed in the console.
To stop the bot, simply terminate the running process (e.g., press Ctrl+C
in the terminal).
Contributions are welcome! Please fork the repository and submit a pull request with your improvements.
This project is licensed under the MIT License.