tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.23k stars 1.47k forks source link

PHP Example #23

Closed rizhenkov closed 6 years ago

rizhenkov commented 6 years ago

Please write little simple PHP example for easy starting up. Thank you!

vladislav-yashin commented 6 years ago

Since PHP doesn't support C-bindings itself, I think that you should go with writing your own native php extension in C.

yaroslavche commented 6 years ago

I really don't know if there is any sense in this extension in PHP. In any case, see here - simple (and ugly) implementation of td_json_client with example. I'm not even sure what I did it right. Just for fun =)

danog commented 6 years ago

Or you could use my client, which is a native PHP implementation of MTProto.

levlam commented 6 years ago

You can use TDLib from PHP through phptdlib (already mentioned there) or PIF-TDPony extensions.