php - How to implement authorization for Telegram using tg? -
i'm in process of implementation of simple telegram chat on php, , question raised: how perform authorization on telegram, if decided use tg client , php-telegram-cli-client wrapper interaction client via unix file socket?
https://github.com/zyberspace/php-telegram-cli-client
in client, before can send messages , use commands, need authorize yourself. run:
bin/telegram-cli -k tg-server.pub
and after console app asks mobile phone , verifying code. when you're trying change user realize don't have tools it. tried change rsa key other one, didn't me much.
should change tool task (several users authorize on site , drop in chat room created them) or haven't paid attention details me?
thank you!
i not sure trying do, have gone down road too. vshengs telegram cli under linux works ok-ish, tends change code without thinking of backwards compatibility, prepared high maintenance solution. also, complicated whole in combination php (or language matter)
if @ official telegram bot api
Comments
Post a Comment