{"id":20991234,"url":"https://github.com/brenordv/telegram-cli","last_synced_at":"2026-05-19T06:04:33.628Z","repository":{"id":168879725,"uuid":"644680885","full_name":"brenordv/telegram-cli","owner":"brenordv","description":"CLI to send messages to a specific Telegram chat.","archived":false,"fork":false,"pushed_at":"2023-05-27T01:53:25.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T12:18:51.594Z","etag":null,"topics":["cli","telegram","terminal","utilities","utility"],"latest_commit_sha":null,"homepage":"","language":"C#","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/brenordv.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-24T03:14:05.000Z","updated_at":"2023-05-27T01:48:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ae56bcc-5f50-4dee-84de-03eda2e540be","html_url":"https://github.com/brenordv/telegram-cli","commit_stats":null,"previous_names":["brenordv/telegram-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/brenordv/telegram-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Ftelegram-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Ftelegram-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Ftelegram-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Ftelegram-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brenordv","download_url":"https://codeload.github.com/brenordv/telegram-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Ftelegram-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264939070,"owners_count":23686203,"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":["cli","telegram","terminal","utilities","utility"],"created_at":"2024-11-19T06:37:51.420Z","updated_at":"2026-05-19T06:04:33.588Z","avatar_url":"https://github.com/brenordv.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram CLI\nThis is a simple project to send messages to a Telegram chat using a CLI.\n\nThe motivation was: I hate waiting for long processes to run, so I can pipe the result of the command to my telegram \nwith this CLI and get notified when it's done, having a way to glance at the result. Meanwhile, I can do other things. \n\nIf the message is bigger than what is allowed by Telegram (4096), it will be split into multiple messages.\n\n\n# Pre-requisites\nTo work, we need two environment variables: `TELEGRAM_API_TOKEN` and `TELEGRAM_CHAT_ID`.\n\n**Setting Environment Variables on Windows**\n\n1. Search for 'Environment Variables' in your Start Menu.\n2. Click on 'Edit the system environment variables.'\n3. Click on 'Environment Variables' at the bottom right corner.\n4. Under 'System Variables', click on the 'New' button.\n5. In the 'Variable name' field, enter `TELEGRAM_API_TOKEN` and in the 'Variable value' field, enter your telegram API token. Click 'OK'.\n6. Repeat the process for the `TELEGRAM_CHAT_ID` variable.\n\nThese changes will take effect the next time you open a command prompt.\n\n**Setting Environment Variables on Linux**\n\n1. Open your terminal.\n2. Use the `export` command to add your environment variables. Replace `your_telegram_api_token` and `your_telegram_chat_id` with your actual values:\n    ```bash\n    export TELEGRAM_API_TOKEN=your_telegram_api_token\n    export TELEGRAM_CHAT_ID=your_telegram_chat_id\n    ```\n3. To make these changes permanent, add these lines to your `~/.bashrc`, `~/.bash_profile`, or `~/.profile` file, and then source it:\n    ```bash\n    echo 'export TELEGRAM_API_TOKEN=your_telegram_api_token' \u003e\u003e ~/.bashrc\n    echo 'export TELEGRAM_CHAT_ID=your_telegram_chat_id' \u003e\u003e ~/.bashrc\n    source ~/.bashrc\n    ```\n**Setting Environment Variables on MacOS**\n\n1. Open your terminal.\n2. Use the `export` command to add your environment variables. Replace `your_telegram_api_token` and `your_telegram_chat_id` with your actual values:\n    ```bash\n    export TELEGRAM_API_TOKEN=your_telegram_api_token\n    export TELEGRAM_CHAT_ID=your_telegram_chat_id\n    ```\n3. To make these changes permanent, add these lines to your `~/.bash_profile` or `~/.zshrc` file (depending on your default shell), and then source it:\n    ```bash\n    echo 'export TELEGRAM_API_TOKEN=your_telegram_api_token' \u003e\u003e ~/.bash_profile\n    echo 'export TELEGRAM_CHAT_ID=your_telegram_chat_id' \u003e\u003e ~/.bash_profile\n    source ~/.bash_profile\n    ```\nFor `zsh`:\n```bash\necho 'export TELEGRAM_API_TOKEN=your_telegram_api_token' \u003e\u003e ~/.zshrc\necho 'export TELEGRAM_CHAT_ID=your_telegram_chat_id' \u003e\u003e ~/.zshrc\nsource ~/.zshrc\n```\n\nPlease replace `your_telegram_api_token` and `your_telegram_chat_id` with your actual values. The commands should be run without the angle brackets.\n\n# How to use\n\n## Multiple arguments\n```shell\ntme.exe Hello World\n```\nWill send:\n\u003e Hello World\n \n## One argument\n```shell\ntme.exe \"Hello World\"\n```\nWill send:\n\u003e Hello World\n\n## Piped data\n```shell\ndir | tme.exe \n```\nWill send:\n```\n Volume in drive C is vault\n Volume Serial Number is FX42-6667\n\n Directory of C:\\path\\to\\this\\project\\Telegram.Cli\\Telegram.Cli\\bin\\Debug\\net6.0\n\n23/05/2023  22:59    \u003cDIR\u003e          .\n23/05/2023  22:59    \u003cDIR\u003e          ..\n23/05/2023  22:59               401 tme.deps.json\n23/05/2023  23:03            14.336 tme.dll\n23/05/2023  23:03           148.992 tme.exe\n23/05/2023  23:03            12.660 tme.pdb\n23/05/2023  22:59               147 tme.runtimeconfig.json\n             5 File(s)          176.536 bytes\n             2 Dir(s) 9.889.064.771.584 bytes free\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenordv%2Ftelegram-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrenordv%2Ftelegram-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenordv%2Ftelegram-cli/lists"}