You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2022-06-16-send-telegram-message-google-apps-script.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
layout:post
3
-
title:How to send Telegram Messages from Google Apps Script (GAS)
3
+
title:How to send Telegram Messages froma Google Sheet usingGoogle Apps Script (GAS)
4
4
subtitle:Using the WhatsMate Telegram Gateway REST API
5
5
published:true
6
-
last_modified_at:2025-03-16T00:00:00+08:00
6
+
last_modified_at:2025-10-23T00:00:00+08:00
7
7
---
8
8
9
-
This article shows you how to send a Telegram message from a Google Apps Script.
9
+
This article shows you how to send a Telegram message from a GoogleSheet using GoogleApps Script.
10
10
11
11
Before the recipient can receive your Telegram message, she will need to register with the WhatsMate Telegram Gateway. Instructions are available on the[official site](https://www.whatsmate.net/telegram-gateway-api.html).*Unregistered users will NEVER receive messages from the Gateway.*
12
12
@@ -15,10 +15,10 @@ To send a Telegram message from a Google Apps Script, do this:
15
15
16
16
1. Copy the following source code to your Apps Script project. <scriptsrc="https://gist.github.com/whatsmate/358914cd35958847111b4bbfa380a1de.js"></script>
17
17
2. Customize the TODO lines:
18
-
* Specify your gateway instance ID on line9.
19
-
* Specify your client ID and secret on lines10 and11.
20
-
* Specify your target recipient on line2. Remember to include the country code.
21
-
* Specify your message on line3.
18
+
* Specify your gateway instance ID on line15.
19
+
* Specify your client ID and secret on lines16 and17.
20
+
* Specify your target recipient on line6. Remember to include the country code.