Welcome to Quotes Bot! This Telegram bot connects to your Notion database filled with book quotes, delivering a touch of inspiration straight to your chat. Whether you're looking for a random quote to brighten your day or searching for something specific from your favorite author or book, Quotes Bot has got you covered!
- 🎲 /quote - Sends a random quote from the database.
- 🖋️ /author {name} - Sends all quotes from the specified author.
- 📝 /authors - Lists all authors and sends all quotes from them.
- 📖 /title {book} - Sends all quotes from the specified book.
- 📚 /titles - Lists all books and sends all quotes from the selected one.
- ✍️ /titleauthor {name} - Lists all books by the specified author and sends all quotes from them.
- 📅 Daily Quote - Automatically sends a random quote from a random book every morning.
- Clone the repository
git clone https://github.com/matteo-luraghi/notionquotesbot.git cd quotebot
- Create a Telegram Bot
- Talk to BotFather on Telegram.
- Use the /newbot command to create your bot and get the API token.
- Set up Notion Integration
- Go to Notion Developers and create a new integration.
- Duplicate the template to create your own database
- Share your Notion database with the integration by going to your database, clicking "Share," and adding your integration.
- Configure Environment Variables
- Create a
.env
file in the root directory with the following content:API_KEY=your-telegram-api-key
- Create a
- Run the bot
- Run the bot using docker:
docker compose up --build
- Use the /start command to setup the connection with your Notion database
- Run the bot using docker:
Once the bot is running, invite it to your Telegram group or chat with it directly. Use the commands listed above to interact with your quote database.
This project is licensed under the MIT LICENSE.