Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
Access Telegram-CLI by php

I want to access the Telegram-CLI using PHP.

I'm compiled Telegram-CLI and loged in to my account, and its works like a charm.
I installed LAMP ([in Linux], Apache, MySQL, PHP) and i tested them works.
I even installed these [following] PHP packages one-by-one using "Composer" and tested the examples but i couldnt make them run...

Also it seems their forum are abandoned to get my questions answer.

  • php-client for telegram-cli
  • A wrapper for Telegram-CLI
  • PHP Wrapper and Drupal module using Telegram CLI

I have no idea how the "Composer" works and how to make them work?

Could somebody tell me how to make one of them work in simple way.
     

Edit: All steps of building Telegram-cli, loging in for first time and run it as deamon has beed completed.

This project has been installed on php project root dir using "Composer".

Example.php file has been moved to web server root directory. But also unning it cause a 500 Internal server error.

The error line is:

$telegram = new \Zyberspace\Telegram\Cli\Client('unix:///tmp/tg.sck');

notices: The file has been checked and is already there.

And the telegram-cli is running as a daemon on root user.


Edit 2:

I added a telegramd group and telegramd user assigned to that group.

I detacted that php commands running under apache user account.

I changed the apache user group to telegramd.

But again nothing...

So, Please help me

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda