Lincest / telegram-bot-gscript

Example script for Google Scripts, to send messages to your Telegram bot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegram-bot-gscript

Example script for Google Scripts, to send messages to your Telegram bot.

The script replies to you with your own message, sticker or image. If you try to send another thing it will send "Try another stuff".

Copy the file main.gs in a Google Drive script and publish it as an app (execute as Me and give access to anybody even anonymous).

You will need to create your bot with Botfather in Telegram, take the API key and replace it in main.gs where it says YOUR-API-HERE.

Oh and remember to create a webhook first in Telegram with the URL of your Google Script.

About

Example script for Google Scripts, to send messages to your Telegram bot.

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 100.0%