mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 22:45:38 +00:00
Fix BadMsgNotification 17 for PC with not precise system clock
Add logging examples
This commit is contained in:
parent
2c99e21234
commit
3ad36f3e56
2 changed files with 16 additions and 0 deletions
|
|
@ -117,6 +117,7 @@ namespace WTelegram
|
|||
var g_a = BigEndianInteger(serverDHinnerData.g_a);
|
||||
var dh_prime = BigEndianInteger(serverDHinnerData.dh_prime);
|
||||
ValidityChecks(dh_prime, serverDHinnerData.g);
|
||||
session.LastSentMsgId = 0;
|
||||
session.ServerTicksOffset = (serverDHinnerData.server_time - localTime).Ticks;
|
||||
Helpers.Log(1, $"Time offset: {session.ServerTicksOffset} | Server: {serverDHinnerData.server_time.TimeOfDay} UTC | Local: {localTime.TimeOfDay} UTC");
|
||||
//6)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue