Skip to content

theesmaeil1/WPTelegram-Google-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

WPTelegram Google Script

๐Ÿ“š This documentation is also available in Persian (Farsi).

You can use this script to bypass the bans on Telegram API by different hosts. Simply send the request to this script instead of the Telegram Bot API after deploying it as a web app and allowing anonymous access.

Params

It accepts both GET and POST requests with the following parameters:

Name Type Description
bot_token String The Telegram Bot Token
method String Telegram Bot API method name, e.g., sendMessage
args JSON Object The arguments/parameters for the API method, e.g., {"chat_id":"123","text":"HelloWorld"}

How to Deploy

See the screenshots below ๐Ÿ‘‡

  • Go to script.google.com and sign in if required.
  • Create a new project and give it a name you love :)
  • It should open a file (Code.gs by default). Remove the contents of this file.
  • Copy the contents of wptelegram-google-script.gs and paste them into your project file (Code.gs).
  • Click on Save (๐Ÿ’พ) or press Ctrl+S.
  • Click "Deploy" at the top and select "New deployment" to open a popup.
  • Inside the popup, click on "Select type" โš™๏ธ and choose "Web app".
  • In "Web app", for Execute as, select "Me ()" [IMPORTANT].
  • In "Who has access", select "Anyone" [IMPORTANT].
  • Click on "Deploy" to open the Authorization box.
  • Click on "Authorize access" to authorize the script.
  • In the popup window, select your Google Account.
  • If you see a warning "Google hasn't verified this app", itโ€™s fine to click "Advanced" and choose "Go to (unsafe)".
  • On the next screen, click "Allow".
  • After redirect, you should see "Deployment successfully updated".
  • Copy the "Web app URL" and paste it into your app or plugin.

Screenshots

image


image


image


image


image


image


image


image


image


image


image


image


image

About

You can use this script to bypass the bans on Telegram API by different hosts. Simply send the request to this script instead of the Telegram Bot API after deploying it as a web app and allowing anonymous access.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors