{"id":13423520,"url":"https://github.com/vysheng/tg","last_synced_at":"2025-05-14T01:06:11.919Z","repository":{"id":10979715,"uuid":"13297858","full_name":"vysheng/tg","owner":"vysheng","description":"telegram-cli","archived":false,"fork":false,"pushed_at":"2024-04-23T04:37:13.000Z","size":4941,"stargazers_count":6608,"open_issues_count":1174,"forks_count":1567,"subscribers_count":306,"default_branch":"master","last_synced_at":"2025-04-03T01:37:37.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vysheng.png","metadata":{"files":{"readme":"README-Cygwin.md","changelog":"CHANGELOG","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}},"created_at":"2013-10-03T12:35:05.000Z","updated_at":"2025-04-02T20:18:59.000Z","dependencies_parsed_at":"2022-07-12T12:04:59.314Z","dependency_job_id":"1c752b0d-5a24-427b-b169-a1a1bb09503f","html_url":"https://github.com/vysheng/tg","commit_stats":{"total_commits":929,"total_committers":78,"mean_commits":11.91025641025641,"dds":0.651237890204521,"last_synced_commit":"6547c0b21b977b327b3c5e8142963f4bc246187a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysheng%2Ftg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysheng%2Ftg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysheng%2Ftg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vysheng%2Ftg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vysheng","download_url":"https://codeload.github.com/vysheng/tg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154465,"owners_count":21056539,"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":[],"created_at":"2024-07-31T00:00:36.563Z","updated_at":"2025-04-10T03:39:44.639Z","avatar_url":"https://github.com/vysheng.png","language":"C","funding_links":[],"categories":["Clients","C","Communication and Collaboration Tools","OpenSource","Uncategorized","\u003ca name=\"chat\"\u003e\u003c/a\u003eChat and instant messaging"],"sub_categories":["Community","OpenSource Apps","Uncategorized"],"readme":"### Installation on Windows\nTo use telegram-cli in Windows, you should compile with Cygwin which has POSIX API functionality.\n\nInstall [Cygwin](https://www.cygwin.com/) and cygwin's package manager, [apt-cyg](https://github.com/transcode-open/apt-cyg).\n\nIn Cygwin Terminal, install compiler and tools :\n\n     apt-cyg install cygwin32-gcc-core cygwin32-gcc-g++ gcc-core gcc-g++ make wget patch diffutils grep tar gzip\n\nNow you have a compiler, but no libraries. You need readline, openssl, libconfig, liblua, python and libjansson to use telegram-cli's full functionality.\n\n\nThen Clone GitHub Repository in Cygwin Terminal\n\n     git clone --recursive https://github.com/vysheng/tg.git\n\n\nIn Cygwin Terminal, type: \n\n     apt-cyg install libevent-devel openssl-devel libreadline-devel lua-devel python3\n(Install package 'python' to use Python 2.7, or install package 'python3' to use Python 3)\n\nlibconfig and libjansson is not in cygwin's package, so you should compile yourself.\n\nCompile libconfig\n     \n     wget http://www.hyperrealm.com/libconfig/libconfig-1.5.tar.gz\n     tar xvf libconfig-1.5.tar.gz \u0026\u0026 cd libconfig-1.5\n     ./configure\n     make \u0026\u0026 make install \u0026\u0026 cd ..\n\nCompile libjansson\n\n     wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz\n     tar xvf jansson-2.7.tar.gz \u0026\u0026 cd jansson-2.7\n     ./configure\n     make \u0026\u0026 make install \u0026\u0026 cd ..\n\nThen, go to tg directory then generate Makefile.\n\n     cd tg\n     ./configure\n     \nWe need to patch Makefile and loop.c to compile in cygwin. Download this [patch](https://gist.github.com/ied206/d774a445f36004d263ab) then untar. Then, patch in tg directory.\n\n     patch -p1 \u003c telegram-cli-cygwin.patch\n\nThen\n     make\n\nAfter compile is done, **telegram-cli.exe** will be generated in **bin** directory.\n\nTo run telegram-cli, type\n     \n     bin/telegram-cli -k tg-server.pub\n\n**Caution**: A binary compiled with Cygwin should be run in Cygwin Terminal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvysheng%2Ftg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvysheng%2Ftg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvysheng%2Ftg/lists"}