This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How to connect your Telegram Bot to a Google Spreadsheet (Google Apps Script) | |
// https://www.youtube.com/watch?v=mKSXd_od4Lg | |
// | |
// This code must be added to the Google Apps Script file attached to the spreadsheet script editor. | |
// Full steps in the readme | |
const ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var ssId = ss.getId(); | |
const sheet = ss.getSheetByName('Settings'); | |
const token = sheet.getRange('A2').getValue(); |