vysheng / tg

telegram-cli
GNU General Public License v2.0
6.5k stars 1.54k forks source link

Problem secret chat message from telegram-cli to Iphone #1586

Open sergiokovalski opened 5 years ago

sergiokovalski commented 5 years ago

Sending secret chat messages from telegram-cli to Iphone does not work. Sending to Android is work ok.

Creating a secret chat with Iphone is ok. After create secret chat with Iphone, send any messages, but chat is empty. Telegram-cli no error, but in log - "can not decrypt message".

Telegram-cli use old Telegram API library - "tgl", that describes the protocol MTProto, end-to-end TL-schema. Maybe problem in the old version MTProto or encrypted TL-schema in tgl? In file tg/tgl/queries-encrypted.c describes the algorithm of work end-to-end encryption by old MTProto 1.0 If update this algorithm to MTProto 2.0, will work?

Any ideas why secret chat doesn't work from telegram-cli with iphone? Thx.