Skip to content

🤖 Apps Script Telegram Bot that replies with a random quote from quotesondesign.com

License

Notifications You must be signed in to change notification settings

ocordova/gas-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Google Apps Script Telegram Bot

🤖 A simple Telegram Bot that replies with a random quote from quotesondesign.com

The step by step explanation is available in my blog.

Try it out

You can test it just by starting a conversation with DesignQuotesBot and sending the command /quote.

Set it up

  1. Visit script.google.com/start to open the script editor.
  2. Delete any code in the script editor and paste in the code in code.gs
  3. Replace the constants API_TOKEN and BOT_USERNAME.
  4. Select the menu item File > Save. Name your new script and click OK.
  5. Select the Run menu, select the function doPost.
  6. In the dialog Authorization required, click Review Permissions and click Allow.
  7. Select Publish > Deploy as web app.
  8. Under Project version, select New.
  9. Under Execute the app as, select your account.
  10. Under Who has access to the app, select "Anyone, even anonymous".
  11. Click Deploy.
  12. Copy the URL labeled Current web app URL and ends in /exec
  13. Set up the Webhook by visting the URL in your browser: https://api.telegram.org/bot<API_TOKEN>/setWebhook?url=<WEB_APP_URL>

License

This is free and unencumbered software released into the public domain. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

About

🤖 Apps Script Telegram Bot that replies with a random quote from quotesondesign.com

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published