Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

184
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda