Sign inSign up

sffrotaa/telegram-api

By sffrotaa

•Updated over 4 years ago

Image
0

891

sffrotaa/telegram-api repository overview

Configuration Container can be configured via environment variables

TELEGRAM_API_ID, TELEGRAM_API_HASH Application identifiers for Telegram API access, which can be obtained at https://my.telegram.org⁠ as described in https://core.telegram.org/api/obtaining_api_id⁠

TELEGRAM_STAT Enable statistics HTTP endpoint.

Usage: -e TELEGRAM_STAT=1 -p 8082:8082 and then check that curl http://:8082 returns server statistic

TELEGRAM_FILTER "

TELEGRAM_MAX_WEBHOOK_CONNECTIONS default value of the maximum webhook connections per bot

TELEGRAM_VERBOSITY log verbosity level

TELEGRAM_LOG_FILE Filename where logs will be redirected (By default logs will be written to stdout/stderr streams)

TELEGRAM_MAX_CONNECTIONS maximum number of open file descriptors

TELEGRAM_PROXY HTTP proxy server for outgoing webhook requests in the format http://host:port⁠

TELEGRAM_LOCAL allow the Bot API server to serve local requests

Start with persistent storage Server working directory is /var/lib/telegram-bot-api so if you want to persist the server data you can mount this folder as volume:

-v telegram-bot-api-data:/etc/telegram/bot/api

Note that all files in this directory will be owned by user telegram-bot-api and group telegram-bot-api (uid: 101, gid: 101, compatible with nginx image)

Tag summary

Content type

Image

Digest

Size

12.7 MB

Last updated

over 4 years ago

docker pull sffrotaa/telegram-api