Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

175
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!