A Telegram bot that sends random quotes on demand or on a daily schedule.
pip install "python-telegram-bot[job-queue]"Create a bot via @BotFather on Telegram and copy the token.
export BOT_TOKEN=your_token_here # Mac / Linux
set BOT_TOKEN=your_token_here # Windows
python bot.pyA quotes.json file is included with 20 quotes to get started.
| command | what it does |
|---|---|
| /start | welcome message |
| /quote | get a random quote |
| /subscribe | daily quote at 9am |
| /unsubscribe | stop daily quotes |
| /help | list commands |
- Daily quote sends at 9am in the machine's local timezone.
- Subscriptions reset if the bot restarts. Re-send /subscribe to resume.
Edit quotes.json and add any string to the array.
[
"Your quote here",
"Another one"
]Built by NullPointer · hire.nullpointer@proton.me