2

I want to Control a Telegram Account With php ! is it possible to connect to telegram like that ? because i saw a robot like this in one of my groups ! that used a mobile number not botfather key !

Matteo Enna
  • 1,285
  • 1
  • 15
  • 36
Parsi
  • 23
  • 4

1 Answers1

6

Yes this is Possible. You need to build a Telegram Client in code. there are libraries in several languages for this.

But you can also write such code yourself.

Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
  • thanks charles , i know php but i heared lua is best language for this job ? is this true ? where is api about building telegram client ? i just found telegram robors documents ! is this a goof sample for my start ? https://github.com/zyberspace/php-telegram-cli-client ! why lua is better than php in telegram client ?! – Parsi Dec 21 '16 at 11:48
  • @Parsi What language are you comfortable with? That should determine what works best for you. Also if you have the time and what to learn, you could build a Telegram client from scratch for yourself. – Charles Okwuagwu Dec 21 '16 at 11:58
  • i am comfortable with php if it can handle this kind of stuff , the job of robot is joining groups and send advertising messages , also analysis all messages for special words and find group join links ! and save users ids to database so i think we have a very big data to handle and so many requests , script is running on a server (no vps or host ...) and i already got the project so have no time for learning ! – Parsi Dec 21 '16 at 12:19
  • @Parsi some advice to you, Ensure you are only sending advertising messages to users who have opted-in to receive your messages – Charles Okwuagwu Dec 21 '16 at 13:09
  • 1
    @charls Thank Your , but i am not the owner of company ! I am Just a Employee I pass your advice to them – Parsi Dec 22 '16 at 13:41
  • 1
    upvote.. seems you have lots of experiences about telegram API. I'm trying to make something like what OP mentioned in the question. May you please give me some clues? I use PHP language. – Martin AJ Mar 12 '17 at 17:32
  • @martinaj what do you want to achieve? You can actually use any language you are comfortable with. – Charles Okwuagwu Mar 12 '17 at 17:38
  • @CharlesOkwuagwu I want to achieve [this](http://stackoverflow.com/questions/42748981/can-i-access-my-telegrams-messages-as-json). Do you have any solution? All I know is doing that is possible. But is there any implemented example in PHP? – Martin AJ Mar 12 '17 at 17:51
  • @CharlesOkwuagwu Do you have an example for that? – H Aßdøµ Sep 13 '20 at 20:23
  • @HAßdøµ try to use the tdlib here: https://core.telegram.org/api#tdlib-build-your-own-telegram and here: https://github.com/tdlib/td – Charles Okwuagwu Sep 13 '20 at 23:28