Code Monkey home page Code Monkey logo

gas-telegram-bot's Introduction

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.

โค

gas-telegram-bot's People

Contributors

ocordova avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.