From eb2b066d40cddbab512509e9af1d19e20d20ee16 Mon Sep 17 00:00:00 2001
From: Sasha Li
Launch with command:
+docker compose up
+
The Telegram bot API method setWebhook
must be called to start receiving updates from Telegram.
TOKEN=123456789:NeotobrAfMymceuwackTeunLiudsudjocoi
+TOKEN=123456789:NeotobrAfMymceuwackTeunLiudsudjocoi
curl -F "url=${HOST}:8443/bot${TOKEN}" -F certificate=@ssl/cert.pem https://api.telegram.org/bot${TOKEN}/setWebhook
-Aditionally, you may define an API_SECRET variable to prevent unauthorized webhook requests.
-In this case, add -F secret_token=${API_SECRET}
in last command.
-You may run multiple bots at with the same application.
+
Additionally, you may define an API_SECRET variable to prevent unauthorized webhook calls.
+For that, define AP_SECRET variable and add -F secret_token=${API_SECRET}
in last command.
+You may run multiple bots within the same application.
Just repeat last step for each of your bots.
diff --git a/Telegram-Bot-Serverless.html b/Telegram-Bot-Serverless.html
index 010c5ae..37ce48c 100644
--- a/Telegram-Bot-Serverless.html
+++ b/Telegram-Bot-Serverless.html
@@ -19,7 +19,7 @@
-
+
@@ -94,8 +94,7 @@
-This command, run from the repository root folder, will upload contents of proxybot
subfolder as a function named proxybot
.
This command, run from the repository root folder, will upload contents of proxybot
subfolder as a function named proxybot
.
The Telegram bot API method setWebhook
must be called to start receiving updates from Telegram.
CLOUD_URL=https://***********.cloudfunctions.net/proxybot
@@ -464,10 +462,6 @@ Register the webhook
curl -F "url=${CLOUD_URL}/bot${TOKEN}" https://api.telegram.org/bot${TOKEN}/setWebhook
Replace TELEGRAM_ID
, DB_URI
, REGION
, CLOUD_URL
, TOKEN
variable values with your data.
Aditionally, you may define an API_SECRET variable to prevent unauthorized webhook requests.
-In this case, add -F secret_token=${API_SECRET}
when calling curl
command.
You may run multiple bots at with the same function. -Just repeat the step to register webhook for each of your bots.
diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..47f224b7a7a2b70aa64d5119f42273e8a6b67157 GIT binary patch literal 4286 zcmc(hdrTBZ9LMK&k3;2rRXB=(90H