Files
tangmo_fxtwitter_bot/Google Apps Script version
2023-01-20 20:59:52 +00:00
..
2023-01-20 20:59:52 +00:00
2023-01-13 20:33:19 +00:00

Tangmo FxTwitter Bot (Google Apps Script version)

Telegram bot that monitor for a message containing a Twitter post link and reply with FxTwitter link

  1. Register Telegram bot
  2. Setup Google Apps Script
    1. Create a Google Sheets
    2. Click Extensions > Apps Script.
    3. Paste the code from this repo, click "Save"
    4. Go to Project Settings tab
    5. Scroll to the bottom, "Script Properties", and add a TELEGRAM_BOT_TOKEN property
    6. At the top right of the script project, click Deploy > New deployment > Web app. Run as me, anyone can access
    7. Copy the webapp URL. It should look like https://script.google.com/macros/s/some-long-id/exec
  3. Register Web hook
    curl --request POST \
    --url https://api.telegram.org/bot123:bottokenhere/setWebhook \
    --header 'Content-Type: application/json' \
    --data '{"url": "https://script.google.com/macros/s/some-long-id/exec"}'
    
  4. It should work now