mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-06 23:14:01 +00:00
Login failed: CancelCode but don't make things worse
This commit is contained in:
parent
2cee5b8e6e
commit
fdc05e5514
4 changed files with 13 additions and 8 deletions
8
FAQ.md
8
FAQ.md
|
|
@ -247,11 +247,11 @@ The following choices were made while implementing Secret Chats in WTelegramClie
|
|||
- It may not support remote antique Telegram clients *(prior to 2018, still using insecure MTProto 1.0)*
|
||||
- It doesn't store outgoing messages *(so if remote client was offline for a week and ask us to resend old messages, we will send void data)*
|
||||
- It doesn't store incoming messages on disk *(it's up to you if you want to store them)*
|
||||
- If you pass `DecryptMessage` parameter `fillGaps: true` *(the default)*, incoming messages are ensured to be delivered to you in correct order.
|
||||
If for some (weird) reason, we received them in incorrect order, messages are kept in memory until the requested missing messages are obtained.
|
||||
- If you pass `DecryptMessage` parameter `fillGaps: true` *(default)*, incoming messages are ensured to be delivered to you in correct order.
|
||||
If for some reason, we received them in incorrect order, messages are kept in memory until the requested missing messages are obtained.
|
||||
If those missing messages are never obtained during the session, incoming messages might get stuck and lost.
|
||||
- SecretChats file data is only valid for the current user, so make sure to select the right file *(or a new file name)* if you change logged-in user.
|
||||
- If you want to accept Secret Chats request only from specific user, you must check it in OnUpdate before:
|
||||
- SecretChats file data is only valid for the current user, so make sure to pick the right file *(or a new file name)* if you change logged-in user.
|
||||
- If you want to accept incoming Secret Chats request only from specific user, you must check it in OnUpdate before:
|
||||
`await Secrets.HandleUpdate(ue, ue.chat is EncryptedChatRequested ecr && ecr.admin_id == EXPECTED_USER_ID);`
|
||||
- As recommended, new encryption keys are negotiated every 100 sent/received messages or after one week.
|
||||
If remote client doesn't complete this negotiation before reaching 200 messages, the Secret Chat is aborted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue