{"id":22599743,"url":"https://github.com/sistematico/barnabe-telegram-bot","last_synced_at":"2026-04-22T16:36:18.848Z","repository":{"id":214099150,"uuid":"726805761","full_name":"sistematico/barnabe-telegram-bot","owner":"sistematico","description":"Um \"bot\" para baixar vídeos de diversos sites usando o Telegram.","archived":false,"fork":false,"pushed_at":"2024-01-03T18:00:52.000Z","size":214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T08:20:59.410Z","etag":null,"topics":["bot","bun","grammy","telegram","typescript"],"latest_commit_sha":null,"homepage":"https://barna.paxa.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sistematico.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-03T13:09:37.000Z","updated_at":"2024-01-03T18:01:45.000Z","dependencies_parsed_at":"2024-01-03T19:23:09.050Z","dependency_job_id":null,"html_url":"https://github.com/sistematico/barnabe-telegram-bot","commit_stats":null,"previous_names":["sistematico/barnabe-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sistematico/barnabe-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sistematico%2Fbarnabe-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sistematico%2Fbarnabe-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sistematico%2Fbarnabe-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sistematico%2Fbarnabe-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sistematico","download_url":"https://codeload.github.com/sistematico/barnabe-telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sistematico%2Fbarnabe-telegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32145869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T15:33:03.595Z","status":"ssl_error","status_checked_at":"2026-04-22T15:30:42.712Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bot","bun","grammy","telegram","typescript"],"created_at":"2024-12-08T11:11:19.274Z","updated_at":"2026-04-22T16:36:18.801Z","avatar_url":"https://github.com/sistematico.png","language":"TypeScript","funding_links":["https://liberapay.com/sistematico/donate","https://ko-fi.com/K3K32RES9","https://www.buymeacoffee.com/sistematico","https://opencollective.com/sistematico","https://patreon.com/sistematico","https://github.com/sponsors/sistematico"],"categories":[],"sub_categories":[],"readme":"# 🤖 Barnabé Telegram BOT\n\n\u003c!--suppress HtmlDeprecatedAttribute --\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"./assets/barnabe.jpg\" alt=\"Barnabé\" /\u003e\n\u003c/div\u003e\n\nUm \"bot\" para baixar vídeos de diversos sites usando o [Telegram](https://telegram.org).\n\n## 🏃‍♂️ CI/CD\n\n[![CI](https://github.com/sistematico/barnabe-telegram-bot/actions/workflows/ci.yml/badge.svg)](https://github.com/sistematico/barnabe-telegram-bot/actions/workflows/ci.yml)\n[![CD](https://github.com/sistematico/barnabe-telegram-bot/actions/workflows/cd.yml/badge.svg)](https://github.com/sistematico/barnabe-telegram-bot/actions/workflows/cd.yml)\n\n## 📦 Instalação, configuração e testes\n\n*Este bot foi testado no [Arch Linux](https://archlinux.org)(em desenvolvimento) e [Rocky Linux](https://rockylinux.org)(em produção)*\n\n### Para instalar as dependências:\n\n```bash\nbun install\n```\n\n### Rodar em modo desenvolvimento:\n\n```bash\nbun --watch run src/bot.ts\n```\nou\n\n```bash\nbun dev\n```\n\n### Rodar em modo produção:\n\n```bash\nbun run src/bot.ts\n```\nou\n\n```bash\nbun prod\n```\n\n### Unit Systemd do Bot\n\n```\n[Unit]\nDescription=Barnabé Telegram BOT\nAfter=network.target\n\n[Service]\nUser=rocky\nWorkingDirectory=/home/rocky/barnabe\nExecStart=/home/rocky/.bun/bin/bun run prod\nRestart=on-failure\nRestartSec=5s\n\n[Install]\nWantedBy=multi-user.target \n```\n\n### Telegram Bot API\n\nEste bot necessita de um uma API própria para o Telegram, pois os limites são mais altos.\n\n- [Using a Local Bot API Server](https://core.telegram.org/bots/api#using-a-local-bot-api-server)\n- [https://github.com/tdlib/telegram-bot-api](https://github.com/tdlib/telegram-bot-api)\n\n#### Unit Systemd do Telegram Bot API\n\n```\n[Unit]\nDescription=Telegram Bot API Server\nAfter=network.target\n\n[Service]\nType=simple\n# Visite: https://my.telegram.org para gerar api_id e api_hash\nExecStart=/usr/local/bin/telegram-bot-api --local --api-id=\"SEU_API_ID\" --api-hash=\"SEU_API_HASH\" \nRestart=on-failure\nRestartSec=10s\n\n[Install]\nWantedBy=multi-user.target\n```\n\n### WebApp\n\nConfiguração do Nginx:\n\n```\nserver {\n    listen 80;\n    listen [::]:80;\n    server_name barna.paxa.dev;\n    return 301 https://$host$request_uri;\n}\n\nserver {\n    listen 443 ssl;\n    listen [::]:443 ssl;\n\n    ssl_certificate         /etc/letsencrypt/live/barna.paxa.dev/fullchain.pem;\n    ssl_certificate_key     /etc/letsencrypt/live/barna.paxa.dev/privkey.pem;\n\n    server_name barna.paxa.dev;\n    root /home/rocky/barnabe/webapp;\n\n    location /webapp {}\n\n    location / { \n      proxy_pass http://127.0.0.1:3008;\n      proxy_http_version 1.1;  \n      proxy_set_header Upgrade $http_upgrade;  \n      proxy_set_header Connection 'upgrade';  \n      proxy_set_header Host $host;  \n      proxy_cache_bypass $http_upgrade;  \n    } \n}\n```\n\n\u003e Saiba mais em: [Telegram Webapps](https://core.telegram.org/bots/webapps)\n\n## 💡 Dicas\n\nAntes de usar o Bot é necessário apagar o WebHook(Caso você tenha usado ele anteriormente), este bot usa exclusivamente o modo long-polling.\n\nhttps://api.telegram.org/bot[SEU_TOKEN]/deleteWebhook\n\n## 👏 Créditos\n\n- [Grammy](https://grammy.dev)\n- [Bun](https://bun.sh)\n- [yt-dlp](https://github.com/yt-dlp/yt-dlp)\n- [yt-dlp-wrap](https://github.com/foxesdocode/yt-dlp-wrap)\n- [Arch Linux](https://archlinux.org)\n- [Fé](https://pt.wikipedia.org/wiki/Fé)\n\n## 🛟 Ajude\n\nSe o meu trabalho foi útil de qualquer maneira, considere doar qualquer valor através do das seguintes plataformas:\n\n[![LiberaPay](https://img.shields.io/badge/LiberaPay-gray?logo=liberapay\u0026logoColor=white\u0026style=flat-square)](https://liberapay.com/sistematico/donate) [![PagSeguro](https://img.shields.io/badge/PagSeguro-gray?logo=pagseguro\u0026logoColor=white\u0026style=flat-square)](https://pag.ae/bfxkQW) [![ko-fi](https://img.shields.io/badge/ko--fi-gray?logo=ko-fi\u0026logoColor=white\u0026style=flat-square)](https://ko-fi.com/K3K32RES9) [![Buy Me a Coffee](https://img.shields.io/badge/Buy_Me_a_Coffee-gray?logo=buy-me-a-coffee\u0026logoColor=white\u0026style=flat-square)](https://www.buymeacoffee.com/sistematico) [![Open Collective](https://img.shields.io/badge/Open_Collective-gray?logo=opencollective\u0026logoColor=white\u0026style=flat-square)](https://opencollective.com/sistematico) [![Patreon](https://img.shields.io/badge/Patreon-gray?logo=patreon\u0026logoColor=white\u0026style=flat-square)](https://patreon.com/sistematico)\n\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/sistematico?label=Github%20Sponsors)](https://github.com/sponsors/sistematico)\n\nEste projeto foi criado usando o comando `bun init` no bun v1.0.20. [Bun](https://bun.sh) é um runtime JavaScript rápido e completo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsistematico%2Fbarnabe-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsistematico%2Fbarnabe-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsistematico%2Fbarnabe-telegram-bot/lists"}