{"id":22705601,"url":"https://github.com/korotin/tgsay","last_synced_at":"2025-03-29T20:25:44.786Z","repository":{"id":147269335,"uuid":"161896785","full_name":"korotin/tgsay","owner":"korotin","description":"Send messages to Telegram via CLI","archived":false,"fork":false,"pushed_at":"2019-02-23T13:12:59.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T21:18:52.526Z","etag":null,"topics":["cli","telegram"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/korotin.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":"2018-12-15T11:07:12.000Z","updated_at":"2019-12-01T22:45:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b51f616-8a66-46d8-bfdd-8c30d02a0aa3","html_url":"https://github.com/korotin/tgsay","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/korotin%2Ftgsay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korotin%2Ftgsay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korotin%2Ftgsay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korotin%2Ftgsay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/korotin","download_url":"https://codeload.github.com/korotin/tgsay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246239515,"owners_count":20745723,"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"],"created_at":"2024-12-10T09:12:10.611Z","updated_at":"2025-03-29T20:25:44.763Z","avatar_url":"https://github.com/korotin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"tgsay\n=====\n**tgsay** sends messages to Telegram via CLI. It may be used in shell scripts, cron commands, monitoring systems etc.\n\nRequirements\n------------\n* *nix\n* PHP \u003e= 7.2\n* cURL extension\n\nInstallation\n------------\n1. Copy `tgsay` inside your `$PATH`.\n2. If you don't have a Telegram bot yet be sure to [create one](https://core.telegram.org/bots#3-how-do-i-create-a-bot).\n3. Create config (default path is `~/.config/tgsay.ini` or `/etc/tgsay.ini`):\n   ```ini\n   [bots]\n   ; keys are bot aliases, not the actual bot names, must have at least one\n   JenkinsBot   = \u003cbot token\u003e\n   ZabbixBot    = \u003cbot token\u003e\n    \n   [chats]\n   ; same here: keys are just aliases, must have at least one\n   Myself       = \u003cperson id\u003e\n   TeamChat     = \u003cchat id\u003e\n   AlertChannel = \u003cchannel id\u003e\n    \n   [defaults]\n   ; defaults will be used if corresponding arguments are skipped, optional\n   bot          = \u003cbot alias\u003e\n   chat         = \u003cchat alias\u003e\n\n   ```\n\nUsage\n-----\n\nSend message using specific bot and chat:\n```bash\ntgsay --bot=\"JenkinsBot\" --chat=\"TeamChat\" --msg=\"Build completed\"\n```\nSend message using defaults:\n```bash\ntgsay --msg=\"Everything is fine\"\n```\nSend silent message:\n```bash\ntgsay --msg=\"This one isn't really urgent\" --slient\n```\nSend preformatted message:\n```bash\ntgsay --msg=\"But this one *urgent* a lot\" --md\n```\nUse STDIN to pass message body:\n```bash\ncat build_log | tgsay\n```\nPlease refer to built-in help to get more information on available options.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorotin%2Ftgsay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkorotin%2Ftgsay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorotin%2Ftgsay/lists"}