998 B
998 B
Tangmo FxTwitter Bot (Google Apps Script version)
Telegram bot that monitor for a message with just Twitter link without preview and reply with FxTwitter link
- Register Telegram bot
- Setup Google Apps Script
- Create a Google Sheets
- Click Extensions > Apps Script.
- Paste the code from this repo, click "Save"
- Go to Project Settings tab
- Scroll to the bottom, "Script Properties", and add a
TELEGRAM_BOT_TOKENproperty - At the top right of the script project, click Deploy > New deployment > Web app. Run as me, anyone can access
- Copy the webapp URL. It should look like https://script.google.com/macros/s/some-long-id/exec
- 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"}' - It should work now