Telegram Bot API (Unofficial)
3.9K
https://my.telegram.org/apps
version: '3.7'
services:
server:
image: gegedesembri/telegram-bot-api:latest
environment:
TELEGRAM_API_ID: "api_id"
TELEGRAM_API_HASH: "api_hash"
volumes:
- telegram-bot-api-data:/var/lib/telegram-bot-api
ports:
- "8081:8081"
restart: always
volumes:
telegram-bot-api-data:
Replace api_id and api_hash
docker run -d \
--name="telegram-bot-api" \
--env="TELEGRAM_API_ID=api_id" \
--env="TELEGRAM_API_HASH=api_hash" \
--volume="telegram-bot-api-data:/var/lib/telegram-bot-api" \
--publish="8081:8081" \
--restart=always \
gegedesembri/telegram-bot-api:latest
Replace api_id and api_hash
Set Webhook URL
https://<URL_BOTSERVER>/bot<BOT_TOKEN>/setWebhook?url=https://<URL_BOT>/
Replace :
After replace, access full URL with Browser
{
"ok":true,
"result":true,
"description":"Webhook is already set"
}
Content type
Image
Digest
sha256:5e6233724…
Size
15.8 MB
Last updated
over 1 year ago
docker pull gegedesembri/telegram-bot-api