A docker wrapper for the telegram bot api
812
Environment variables:
There are many more configuration options, they could be used by creating your own docker image from this.
Directories and files:
Basic example to validate api_hash, api_id and bot_token.
# Run bot api in the background
docker run -d -e API_HASH=<api_hash> -e API_ID=<api_id> -p 8081:8081 lanseg/telegram-bot-api
# Run basic client
curl "http://localhost:8081/bot<YOUR_BOT_TOKEN>/getMe"
And if all the keys are correct, you should get something like this:
{
"ok": true,
"result": {
"id": 5133968151,
"is_bot": true,
"first_name": "chronist",
"username": "chronist470529371_bot",
"can_join_groups": true,
"can_read_all_group_messages": true,
"supports_inline_queries": false,
"can_connect_to_business": false,
"has_main_web_app": false
}
}
Content type
Image
Digest
sha256:4a228c541…
Size
21.9 MB
Last updated
almost 2 years ago
docker pull lanseg/telegram-bot-api