mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 22:45:38 +00:00
Support multiple Test DC connections
This commit is contained in:
parent
26942d33f2
commit
b1649839d9
2 changed files with 3 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ namespace WTelegram
|
|||
new_nonce = new Int256(RNG),
|
||||
dc = session.DataCenter?.id ?? 0
|
||||
};
|
||||
if (client.TLConfig?.test_mode == true) pqInnerData.dc += 10000;
|
||||
if (session.DataCenter?.flags.HasFlag(DcOption.Flags.media_only) == true) pqInnerData.dc = -pqInnerData.dc;
|
||||
byte[] encrypted_data = null;
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue