/tweets-notion-saver

Telegram bot with deployment on Cloudflare that saves tweets to Notion page

Primary LanguageTypeScript

Save Tweets to Notion using Cloudflare and Telegram

Showcase

image

image

Requirements

  1. Register a Telegram account
  2. You need to get Twitter developer account, so that you can parse tweets with their API
  3. You also need to create API key for Notion page, but that's not so hard
  4. Register Cloudflare account, install their CLI
  5. Install ngrok

Install local environment

  1. Create Telegram bot
  2. Create Cloudflare Worker
  3. Create Notion Database
  4. Look for ENVIRONMENT type in src/types.ts and set all secrets with wrangler secret put SECRET_SOMETHING
  5. npm i
  6. wrangler dev
  7. ngrok http http://localhost:8787
  8. Get that url
  9. Visit Telegram Bot SDK and setWebhook
  10. Now you can write to this bot! No this one, but the one you create