A serverless Telegram bot that saves links shared in a Telegram chat to a Notion database.
- Automatically saves links shared in Telegram chats to Notion
- Extracts metadata (title, description) from shared links
- Serverless deployment on Vercel
- Create a Telegram bot using BotFather
- Set up a Notion integration and database
- Clone this repository
- Copy
.env.example
to.env
and fill in your tokens - Deploy to Vercel using
npm run deploy
- Set up the Telegram webhook using:
curl "https://api.telegram.org/bot<YOUR_BOT_TOKEN>/setWebhook?url=https://your-app.vercel.app/api/telegram"
NOTION_TOKEN
: Your Notion API integration tokenNOTION_DATABASE_ID
: The ID of your Notion databaseTELEGRAM_TOKEN
: Your Telegram bot token
Run the development server:
npm run dev