rubenlagus / TelegramApi

Java library to create Telegram Clients
MIT License
296 stars 108 forks source link

Implement a Gateway Telegram Client #53

Open chri1389 opened 6 years ago

chri1389 commented 6 years ago

Hello! I have a question.

Is it possible to create a Gateway Telegram Client? My idea is to take an existent Java Telegram Client, modify so that can accept Socket connections from mobile phone (that use my app) and then it acts as a link trought the Mobile Phone and Telegram Server. In other words Telegram Server see this client as it is formed by more clients telegram.

Is it possibile for the Api Telegram?

Thank you very much!

Best Regards!

victorchicu commented 6 years ago

I think you can do it by forwarding the packet to your mobile connection and viceversa and implement packet deserialization, read/write data e.t.c on phone side.