{"id":17034522,"url":"https://github.com/luckydonald/docker-telegram-bot","last_synced_at":"2025-06-10T08:33:44.090Z","repository":{"id":68104792,"uuid":"111460547","full_name":"luckydonald/docker-telegram-bot","owner":"luckydonald","description":"Docker Images for Python Telegram Bots.","archived":false,"fork":false,"pushed_at":"2020-04-27T00:48:27.000Z","size":94,"stargazers_count":11,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T13:13:11.381Z","etag":null,"topics":["api","bot","container","docker","pytg","pytgbot","telegram"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luckydonald.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-11-20T20:40:33.000Z","updated_at":"2024-10-28T15:59:29.000Z","dependencies_parsed_at":"2023-05-05T00:34:43.050Z","dependency_job_id":null,"html_url":"https://github.com/luckydonald/docker-telegram-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckydonald%2Fdocker-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckydonald%2Fdocker-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckydonald%2Fdocker-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckydonald%2Fdocker-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luckydonald","download_url":"https://codeload.github.com/luckydonald/docker-telegram-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luckydonald%2Fdocker-telegram-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259038235,"owners_count":22796583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","bot","container","docker","pytg","pytgbot","telegram"],"created_at":"2024-10-14T08:43:51.416Z","updated_at":"2025-06-10T08:33:44.069Z","avatar_url":"https://github.com/luckydonald.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-telegram-bot\nA flask based telegram bot docker container.\n\n[![build passing](https://travis-ci.org/luckydonald/docker-telegram-bot.svg?branch=master)](https://travis-ci.org/luckydonald/docker-telegram-bot)\n\n###### [Docker Hub](https://hub.docker.com/r/luckydonald/telegram-bot/)\n\n\n#### Image tags\n\n- `python3.6-stretch-port`\n- `python3.6-stretch-socket`\n- `python3.6-stretch-port-onbuild`\n- `python3.6-stretch-socket-onbuild`\n- `python3.6.10-stretch-port`\n- `python3.6.10-stretch-socket`\n- `python3.6.10-stretch-port-onbuild`\n- `python3.6.10-stretch-socket-onbuild`\n- `python3.7-stretch-port`\n- `python3.7-stretch-socket`\n- `python3.7-stretch-port-onbuild`\n- `python3.7-stretch-socket-onbuild`\n- `python3.7.7-stretch-port`\n- `python3.7.7-stretch-socket`\n- `python3.7.7-stretch-port-onbuild`\n- `python3.7.7-stretch-socket-onbuild`\n- `python3.8-buster-port`\n- `python3.8-buster-socket`\n- `python3.8-buster-port-onbuild`\n- `python3.8-buster-socket-onbuild`\n- `python3.8.2-buster-port`\n- `python3.8.2-buster-socket`\n- `python3.8.2-buster-port-onbuild`\n- `python3.8.2-buster-socket-onbuild`\n\nSee https://hub.docker.com/r/luckydonald/telegram-bot/tags for a list of existing image builds.\n\nFor version pinning we serve the image with the following tag structure:\n- \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e\u003c/code\u003e\n- \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port-onbuild\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e-onbuild\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e-onbuild\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-port-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e-onbuild\u003c/code\u003e\n- \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e\u003c/code\u003e\n- \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket-onbuild\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e-onbuild\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e-onbuild\u003c/code\u003e\n    - \u003ccode\u003epython\u003ci\u003e\u003cb\u003e{version}\u003c/b\u003e\u003c/i\u003e-{flavor}-socket-\u003ci\u003e\u003cb\u003e{YYYY-MM-DD}\u003c/b\u003e\u003c/i\u003e-\u003ci\u003e\u003cb\u003e{commit}\u003c/b\u003e\u003c/i\u003e-onbuild\u003c/code\u003e\n\nThe same with \u003ccode\u003e-port\u003c/code\u003e instead of \u003ccode\u003e-socket\u003c/code\u003e\n\n_Need something else? Create an issue!_\n\n#### Environment variables\n###### `HEALTHCHECK_URL`:\nWhich url to call?\nDefault: `/healthcheck`\n\n###### `SOCKET_PATH`: _(Only the `socket` image flavor)_\nAllows to overwrite the place where we expect the socket.\nDefault: `/sockets/bots/${URL_PATH}.sock`\n\n###### `SOCKET_TYPE`: _(Only the `socket` image flavor)_\nAllows to overwrite the type of the file socket to use.\nAll [options](https://uwsgi-docs.readthedocs.io/en/latest/Options.html#uwsgi-core) ending on `*-socket`.\n\nCurrently that's `uwsgi`, `http, `https`, as well as the lesser known , `suwsgi`, `ssl`, `http11`, `fastcgi`, `fastcgi-nph`, `scgi`, `scgi-nph`, `raw` and finally `puwsgi`.\n\nDefault: `uwsgi`\n\n###### `HTTP_PORT`: _(Only the `port` image flavor)_\nAllows to overwrite the http port we're listening on.\nDefault: `8080`\n\n\n####  How to update the containers\n\nI'll do that, don't worry.\nBut as I myself always forget how to, I'll write it down anyway:\n\n\n###### Mac OS requirements\nGets you a better `sed` and as well as working `sort`. Actually some other great programs are also included, fully for free!\n```bash\n$ brew install gnu-sed coreutils\n$ new_path='PATH=\"/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:$PATH\"'\n$ echo $new_path \u003e\u003e ~/.bashrc\n$ eval $new_path\n```\n###### adding new versions\nThose are simply done by creating new folders.\n```bash\nrm -r python*\n\nmkdir -p python3.{6{,.10},7{,.7}}/stretch/{port,socket}{,/onbuild}\nmkdir -p python3.8{,.2}/buster/{port,socket}{,/onbuild}\n\n```\n###### Just do it!\nExecute the script, and push it to github.\nTravis will build containers.\n```bash\n$ bash update.sh\n```\nAfter looking at the updated `Dockerfile`s and the `.travis.yml` let's git gud.\n```bash\n$ git add -u\n$ git commit -m \"Updated to latest version\"\n$ git push\n```\nThat's it. Wait for Sir Travis to be done.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckydonald%2Fdocker-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluckydonald%2Fdocker-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluckydonald%2Fdocker-telegram-bot/lists"}