TELEGRAM-BOT-API(8)

NAME
telegram-bot-api - allow totally local use of telegram bot api

SYNOPSIS
telegram-bot-api --api-id=<arg> --api-hash=<arg> [--local] [OPTION]...

DESCRIPTION
The Telegram Bot API provides an HTTP API for creating Telegram Bots. This program creates a webserver which uses tdlib to translate Bot API to MTProto API.

OPTIONS

-h, --help
    display this help text and exit

--version
    display version number and exit

--local
    allow the Bot API server to serve local requests

--api-id=<arg>
    application identifier for Telegram API access, which can be obtained at https://my.telegram.org (defaults to the value of the TELEGRAM_API_ID environment variable)

--api-hash=<arg>
    application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org (defaults to the value of the TELEGRAM_API_HASH environment variable)

-p, --http-port=<arg>
    HTTP listening port (default is 8081)

-s, --http-stat-port=<arg>
    HTTP statistics port

-d, --dir=<arg>
    server working directory

-t, --temp-dir=<arg>
    directory for storing HTTP server temporary files

--filter=<arg>
    "<remainder>/<modulo>". Allow only bots with 'bot_user_id % modulo == remainder'

--max-webhook-connections=<arg> default value of the maximum webhook connections per bot

--http-ip-address=<arg>
    local IP address, HTTP connections to which will be accepted. By default, connections to any local IPv4 address are accepted

--http-stat-ip-address=<arg>
    local IP address, HTTP statistics connections to which will be accepted. By default, statistics connections to any local IPv4 address are accepted

-l, --log=<arg>
    path to the file where the log will be written

-v, --verbosity=<arg>
    log verbosity level

--memory-verbosity=<arg>
    memory log verbosity level; defaults to 3

--log-max-file-size=<arg>
    maximum size of the log file in bytes before it will be auto-rotated (default is 2000000000)

-u, --username=<arg>
    effective user name to switch to

-g, --groupname=<arg>
    effective group name to switch to

-c, --max-connections=<arg>
    maximum number of open file descriptors

--proxy=<arg>
    HTTP proxy server for outgoing webhook requests in the format http://host:port