Telegram API with PHP not bot

Billy Mahmood picture Billy Mahmood · Jan 8, 2016 · Viewed 15.4k times · Source

app using Ionic and have a PHP api backend for this app.

We need to integrate Telegram API messaging in this app, I need to use the API and not bot as we need to retrieve the users contacts to allow them to send new private message.

I have spent over 7 hours on looking for examples and Telegrams docs however still cant find a way to implement this, I wanted to know if anyone can point me in the right direction.

Answer

javad shariaty picture javad shariaty · Jan 10, 2017

PHP implementation of the telegram mtproto protocol.This project can run on PHP 7, PHP 5.6 and HHVM, only 64 bit systems are supported ATM.

https://github.com/danog/MadelineProto

or

https://daniil.it/MadelineProto