{"id":13677739,"url":"https://github.com/kenorb-contrib/tg","last_synced_at":"2025-04-29T11:31:45.006Z","repository":{"id":36842458,"uuid":"168844167","full_name":"kenorb-contrib/tg","owner":"kenorb-contrib","description":"`telegram-cli` for Telegram IM","archived":false,"fork":true,"pushed_at":"2022-07-26T13:48:00.000Z","size":3272,"stargazers_count":386,"open_issues_count":47,"forks_count":52,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-11-11T19:42:02.824Z","etag":null,"topics":["cli","linux-shell","telegram","telegram-api"],"latest_commit_sha":null,"homepage":"https://github.com/telegramdesktop/tdesktop","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vysheng/tg","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenorb-contrib.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}},"created_at":"2019-02-02T15:11:42.000Z","updated_at":"2024-09-28T08:23:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kenorb-contrib/tg","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/kenorb-contrib%2Ftg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenorb-contrib%2Ftg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenorb-contrib%2Ftg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenorb-contrib%2Ftg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenorb-contrib","download_url":"https://codeload.github.com/kenorb-contrib/tg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251493938,"owners_count":21598199,"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","linux-shell","telegram","telegram-api"],"created_at":"2024-08-02T13:00:46.404Z","updated_at":"2025-04-29T11:31:44.232Z","avatar_url":"https://github.com/kenorb-contrib.png","language":"C","funding_links":[],"categories":["C","Pentesting"],"sub_categories":["OSINT - Open Source INTelligence"],"readme":"### Installation on Windows\r\nTo use telegram-cli in Windows, you should compile with Cygwin which has POSIX API functionality.\r\n\r\nInstall [Cygwin](https://www.cygwin.com/).\r\n\r\nIn Cygwin Terminal, install cygwin's package manager, apt-cyg, as per apt-cyg's [project page](https://github.com/transcode-open/apt-cyg):\r\n\r\n     lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg \u003e apt-cyg\r\n     install apt-cyg /bin\r\n     \r\nThen install compiler and tools: if you're on the **32-bit** version of cygwin,\r\n\r\n     apt-cyg install gcc-core gcc-g++ gcc-core gcc-g++ make wget patch diffutils grep tar gzip autoconf automake libtool git zlib-devel\r\n     \r\nWhereas on the **64-bit** version,\r\n\r\n     apt-cyg install cygwin32-gcc-core cygwin32-gcc-g++ gcc-core gcc-g++ make wget patch diffutils grep tar gzip zlib-devel\r\n\r\nYou need libraries *readline*, *openssl*, *libconfig*, *liblua*, *python* and *libjansson* to use telegram-cli's full functionality.\r\n\r\nClone this project's GitHub Repository in Cygwin Terminal\r\n\r\n     git clone --recursive https://github.com/vysheng/tg.git\r\n\r\nThen type: \r\n\r\n     apt-cyg install libevent-devel openssl-devel libreadline-devel lua-devel python3\r\n\r\n(Install package 'python' to use Python 2.7, or install package 'python3' to use Python 3)\r\n\r\nlibconfig and libjansson are not included in the cygwin package, so you should compile them yourself.\r\n\r\nCompile libconfig:\r\n     \r\n     wget https://github.com/hyperrealm/libconfig/archive/v1.7.2.tar.gz\r\n     mv v1.7.2.tar.gz libconfig-1.7.2.tar.gz\r\n     tar xvf libconfig-1.7.2.tar.gz \u0026\u0026 cd libconfig-1.7.2\r\n     autoreconf\r\n     ./configure\r\n     make \u0026\u0026 make install \u0026\u0026 cd ..\r\n\r\nCompile libjansson:\r\n\r\n     wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz\r\n     tar xvf jansson-2.7.tar.gz \u0026\u0026 cd jansson-2.7\r\n     ./configure\r\n     make \u0026\u0026 make install \u0026\u0026 cd ..\r\n\r\nThen, change to the tg directory and generate the Makefile.\r\n\r\n     cd tg\r\n     ./configure\r\n\r\nIn case `configure` fails, it might be because of the CRLF line endings, so:\r\n\r\n     dos2unix -f configure\r\n\r\nAnd again,\r\n\r\n     ./configure\r\n\r\nWe need to patch the Makefile and loop.c to compile properly in cygwin. The patch is included, so just type:\r\n\r\n     patch -p1 \u003c telegram-cli-cygwin.patch\r\n\r\nThen,\r\n\r\n     make\r\n\r\nOnce the compilation is complete, **telegram-cli.exe** will be found in the **bin** subdirectory.\r\n\r\nTo run `telegram-cli`, type\r\n     \r\n     bin/telegram-cli -k tg-server.pub\r\n\r\n**Caution**: A binary compiled with Cygwin should be run in Cygwin Terminal.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenorb-contrib%2Ftg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenorb-contrib%2Ftg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenorb-contrib%2Ftg/lists"}