danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.86k stars 661 forks source link

MD5_CHECKSUM_INVALID on sendEncryptedFile in secret chat #712

Closed poltesting0 closed 4 years ago

poltesting0 commented 4 years ago

Hello, first of all thanks for this useful library!

About the issue, basically I'm trying to create a secret chat and send a sticker. I'm using a stripped version of https://github.com/danog/MadelineProto/blob/master/tests/testing.php, here it is:

#!/usr/bin/env php
<?php

include 'madeline.php';

/*
 * Load .env for settings
 */
if (\file_exists('.env')) {
    echo 'Loading .env...'.PHP_EOL;
    $dotenv = Dotenv\Dotenv::create(\getcwd());
    $dotenv->load();
}

putenv('TEST_SECRET_CHAT=@dummy_username');
if (\getenv('TEST_SECRET_CHAT') == '') {
    echo('TEST_SECRET_CHAT is not defined in .env, please define it (copy .env.example).'.PHP_EOL);
    die(1);
}

echo 'Loading settings...'.PHP_EOL;
$settings = \json_decode(\getenv('MTPROTO_SETTINGS'), true) ?: [];

/*
 * Load MadelineProto
 */
echo 'Loading MadelineProto...'.PHP_EOL;
$MadelineProto = new \danog\MadelineProto\API(\getcwd().'/s.madeline', $settings);
$MadelineProto->start();
$MadelineProto->async(false);

try {
    $MadelineProto->getSelf();
} catch (\danog\MadelineProto\Exception $e) {
    if ($e->getMessage() === 'TOS action required, check the logs') {
        $MadelineProto->acceptTos();
    }
}

/**
 * Request a secret chat.
 */
$secret_chat_id = $MadelineProto->requestSecretChat(\getenv('TEST_SECRET_CHAT'));
echo 'Waiting for '.\getenv('TEST_SECRET_CHAT').' (secret chat id '.$secret_chat_id.') to accept the secret chat...'.PHP_EOL;

/*
    * Wait until the other party accepts it
    */
while ($MadelineProto->secretChatStatus($secret_chat_id) !== 2) {
    $MadelineProto->getUpdates();
}

/**
 * Send secret media.
 */
$secret_media = [];

// Sticker, secret chat
$secret_media['sticker'] = ['peer' => $secret_chat_id, 'file' => 'tests/lel.webp', 'message' => ['_' => 'decryptedMessage', 'ttl' => 0, 'message' => '', 'media' => ['_' => 'decryptedMessageMediaDocument', 'thumb' => \file_get_contents('tests/lel.preview.jpg'), 'thumb_w' => 90, 'thumb_h' => 90, 'mime_type' => \mime_content_type('tests/lel.webp'), 'caption' => 'test', 'file_name' => 'lel.webp', 'size' => \filesize('tests/lel.webp'), 'attributes' => [['_' => 'documentAttributeSticker', 'alt' => 'LEL', 'stickerset' => ['_' => 'inputStickerSetEmpty']]]]]];

foreach ($secret_media as $type => $smessage) {
    \danog\MadelineProto\Logger::log("Encrypting and uploading $type...");
    $type = $MadelineProto->messages->sendEncryptedFile($smessage);
}

It successfully logs in as user and creates a secret chat, but crashes on $type = $MadelineProto->messages->sendEncryptedFile($smessage);, with this message:

Exception:          Telegram returned an RPC error: The MD5 checksums do not match (400) (MD5_CHECKSUM_INVALID), caused by phar:///path/to/madeline.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoSession/ResponseHandler.php:533
Revision: e81ecc87c998b40ae474c526008fab6d8a5d0818

TL trace:
['messages.sendEncryptedFile']
ResponseHandler.php(92):    handle_response()
Driver.php(116):        handle_messages("xuk",null)
Driver.php(72):         tick()
Loop.php(84):           run()
Tools.php(216):         run({})
APIFactory.php(147):    wait({})
test.php(63):           __call()

Installation info: MadelineProto revision e81ecc87c998b40ae474c526008fab6d8a5d0818 macOS 10.14.6 PHP 7.1.23 (cli)

I've tried looking at https://core.telegram.org/api/errors#400-bad-request, but it doesn't say much... Do you have any idea why it fails? Or what MD5 is it talking about?

Here's the full log of the execution:

$ php test.php
Loading settings...
Loading MadelineProto...
Logger:             MadelineProto
Logger:             Copyright (C) 2016-2019 Daniil Gentili
Logger:             Licensed under AGPLv3
Logger:             https://github.com/danog/MadelineProto
API:                Waiting for shared lock of serialization lockfile...
API:                Shared lock acquired, deserializing...
DataCenterConnection, 916369007:    Disconnecting from shared DC 
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection, 916369007:    Disconnecting from shared DC 
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection, 916369007:    Disconnecting from shared DC 
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection, 916369007:    Disconnecting from shared DC 
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection, 916369007:    Disconnecting from shared DC 
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 
DataCenterConnection, 916369007:    Disconnecting from shared DC 
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 
DataCenter, 916369007:      Reconnecting to DC 2 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
Connection, 916369007:      Connecting to DC 2.0
DataCenter, 916369007:      Reconnecting to DC 1 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.175.54:443 main DC 1, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
Connection, 916369007:      Connecting to DC 1.0
DataCenter, 916369007:      Reconnecting to DC 3 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.175.100:443 main DC 3, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
Connection, 916369007:      Connecting to DC 3.0
DataCenter, 916369007:      Reconnecting to DC 4 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.167.91:443 main DC 4, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
Connection, 916369007:      Connecting to DC 4.0
DataCenter, 916369007:      Reconnecting to DC 4_media (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.164.250:443 main DC 4_media, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
Connection, 916369007:      Connecting to DC 4_media.0
DataCenter, 916369007:      Reconnecting to DC 5 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://91.108.56.126:443 main DC 5, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
Connection, 916369007:      Connecting to DC 5.0
DataCenterConnection, 916369007:    Restoring 0 messages to DC 2
DataCenter, 916369007:      OK!
Connection, 916369007:      Connecting to DC 4_media.1
DataCenterConnection, 916369007:    Restoring 0 messages to DC 4
DataCenter, 916369007:      OK!
Connection, 916369007:      Connecting to DC 4_media.2
Connection, 916369007:      Connecting to DC 4_media.3
DataCenterConnection, 916369007:    Restoring 0 messages to DC 3
DataCenter, 916369007:      OK!
DataCenterConnection, 916369007:    Restoring 0 messages to DC 1
DataCenter, 916369007:      OK!
Connection, 916369007:      Connecting to DC 4_media.4
DataCenterConnection, 916369007:    Restoring 0 messages to DC 5
DataCenter, 916369007:      OK!
DataCenterConnection, 916369007:    Restoring 0 messages to DC 4_media
DataCenter, 916369007:      OK!
AuthKeyHandler, 916369007:  Initing authorization...
AuthKeyHandler, 916369007:  Initing authorization DC 2...
AuthKeyHandler, 916369007:  Done initing authorization DC 2
AuthKeyHandler, 916369007:  Initing authorization DC 1...
AuthKeyHandler, 916369007:  Done initing authorization DC 1
AuthKeyHandler, 916369007:  Initing authorization DC 3...
AuthKeyHandler, 916369007:  Done initing authorization DC 3
AuthKeyHandler, 916369007:  Initing authorization DC 4...
AuthKeyHandler, 916369007:  Done initing authorization DC 4
AuthKeyHandler, 916369007:  Initing authorization DC 5...
AuthKeyHandler, 916369007:  Done initing authorization DC 5
AuthKeyHandler, 916369007:  Initing authorization DC 4_media...
AuthKeyHandler, 916369007:  Done initing authorization DC 4_media
MTProto, 916369007:         Updated config!
MTProto, 916369007:         {
    "_": "config",
    "phonecalls_enabled": true,
    "default_p2p_contacts": true,
    "preload_featured_stickers": false,
    "ignore_phone_entities": false,
    "revoke_pm_inbox": true,
    "blocked_mode": false,
    "pfs_enabled": false,
    "date": 1573038647,
    "expires": 1573042510,
    "test_mode": false,
    "this_dc": 4,
    "dc_txt_domain_name": "apv3.stel.com",
    "chat_size_max": 200,
    "megagroup_size_max": 200000,
    "forwarded_count_max": 100,
    "online_update_period_ms": 210000,
    "offline_blur_timeout_ms": 5000,
    "offline_idle_timeout_ms": 30000,
    "online_cloud_timeout_ms": 300000,
    "notify_cloud_delay_ms": 30000,
    "notify_default_delay_ms": 1500,
    "push_chat_period_ms": 60000,
    "push_chat_limit": 2,
    "saved_gifs_limit": 200,
    "edit_time_limit": 172800,
    "revoke_time_limit": 2147483647,
    "revoke_pm_time_limit": 2147483647,
    "rating_e_decay": 2419200,
    "stickers_recent_limit": 200,
    "stickers_faved_limit": 5,
    "channels_read_media_period": 604800,
    "pinned_dialogs_count_max": 5,
    "pinned_infolder_count_max": 100,
    "call_receive_timeout_ms": 20000,
    "call_ring_timeout_ms": 90000,
    "call_connect_timeout_ms": 30000,
    "call_packet_timeout_ms": 10000,
    "me_url_prefix": "https://t.me/",
    "gif_search_username": "gif",
    "venue_search_username": "foursquare",
    "img_search_username": "bing",
    "caption_length_max": 1024,
    "message_length_max": 4096,
    "webfile_dc_id": 4
}
DataCenter, 916369007:      Reconnecting to DC 2 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
DataCenterConnection, 916369007:    Already connected!
DataCenter, 916369007:      OK!
DataCenter, 916369007:      Reconnecting to DC 1 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.175.54:443 main DC 1, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
DataCenterConnection, 916369007:    Already connected!
DataCenter, 916369007:      OK!
DataCenter, 916369007:      Reconnecting to DC 3 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.175.100:443 main DC 3, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
DataCenterConnection, 916369007:    Already connected!
DataCenter, 916369007:      OK!
DataCenter, 916369007:      Reconnecting to DC 4 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.167.91:443 main DC 4, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
DataCenterConnection, 916369007:    Already connected!
DataCenter, 916369007:      OK!
DataCenter, 916369007:      Reconnecting to DC 4_media (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://149.154.164.250:443 main DC 4_media, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
DataCenterConnection, 916369007:    Already connected!
DataCenter, 916369007:      OK!
DataCenter, 916369007:      Reconnecting to DC 5 (-1) from existing
DataCenterConnection, 916369007:    Trying shared connection via tcp://91.108.56.126:443 main DC 5, via ipv4 using AbridgedStream => BufferedRawStream => DefaultStream (-1)
DataCenterConnection, 916369007:    Already connected!
DataCenter, 916369007:      OK!
AuthKeyHandler, 916369007:  Initing authorization...
AuthKeyHandler, 916369007:  Initing authorization DC 2...
AuthKeyHandler, 916369007:  Done initing authorization DC 2
AuthKeyHandler, 916369007:  Initing authorization DC 1...
AuthKeyHandler, 916369007:  Done initing authorization DC 1
AuthKeyHandler, 916369007:  Initing authorization DC 3...
AuthKeyHandler, 916369007:  Done initing authorization DC 3
AuthKeyHandler, 916369007:  Initing authorization DC 4...
AuthKeyHandler, 916369007:  Done initing authorization DC 4
AuthKeyHandler, 916369007:  Initing authorization DC 5...
AuthKeyHandler, 916369007:  Done initing authorization DC 5
AuthKeyHandler, 916369007:  Initing authorization DC 4_media...
AuthKeyHandler, 916369007:  Done initing authorization DC 4_media
MTProto, 916369007:         Updated config!
MTProto, 916369007:         {
    "_": "config",
    "phonecalls_enabled": true,
    "default_p2p_contacts": true,
    "preload_featured_stickers": false,
    "ignore_phone_entities": false,
    "revoke_pm_inbox": true,
    "blocked_mode": false,
    "pfs_enabled": false,
    "date": 1573038647,
    "expires": 1573042510,
    "test_mode": false,
    "this_dc": 4,
    "dc_txt_domain_name": "apv3.stel.com",
    "chat_size_max": 200,
    "megagroup_size_max": 200000,
    "forwarded_count_max": 100,
    "online_update_period_ms": 210000,
    "offline_blur_timeout_ms": 5000,
    "offline_idle_timeout_ms": 30000,
    "online_cloud_timeout_ms": 300000,
    "notify_cloud_delay_ms": 30000,
    "notify_default_delay_ms": 1500,
    "push_chat_period_ms": 60000,
    "push_chat_limit": 2,
    "saved_gifs_limit": 200,
    "edit_time_limit": 172800,
    "revoke_time_limit": 2147483647,
    "revoke_pm_time_limit": 2147483647,
    "rating_e_decay": 2419200,
    "stickers_recent_limit": 200,
    "stickers_faved_limit": 5,
    "channels_read_media_period": 604800,
    "pinned_dialogs_count_max": 5,
    "pinned_infolder_count_max": 100,
    "call_receive_timeout_ms": 20000,
    "call_ring_timeout_ms": 90000,
    "call_connect_timeout_ms": 30000,
    "call_packet_timeout_ms": 10000,
    "me_url_prefix": "https://t.me/",
    "gif_search_username": "gif",
    "venue_search_username": "foursquare",
    "img_search_username": "bing",
    "caption_length_max": 1024,
    "message_length_max": 4096,
    "webfile_dc_id": 4
}
MTProto, 916369007:         Not fetching phone config
MsgIdHandler, 916369007:    WARNING: Given message id (6756203272060428289) is bigger than or equal to the current limit (6756203272060383233). Consider syncing your date.
ResponseHandler, 916369007:     Defer sending [{"_":"user","self":true,"contact":false,"mutual_contact":false,"deleted":false,"bot":false,"bot_chat_history":false,"bot_nochats":false,"verified":false,"restricted":false,"min":false,"bot_inline_geo":false,"support":false,"scam":false,"id":916369007,"access_hash":5748210509534669192,"first_name":"test","last_name":"test","phone":"<redacted>","status":{"_":"userStatusOnline","expires":1573051346}}] to deferred
ResponseHandler, 916369007:     Deferred: sent [{"_":"user","self":true,"contact":false,"mutual_contact":false,"deleted":false,"bot":false,"bot_chat_history":false,"bot_nochats":false,"verified":false,"restricted":false,"min":false,"bot_inline_geo":false,"support":false,"scam":false,"id":916369007,"access_hash":5748210509534669192,"first_name":"test","last_name":"test","phone":"<redacted>","status":{"_":"userStatusOnline","expires":1573051346}}] to deferred
ResponseHandler, 916369007:     Defer sending cdnConfig to deferred
ResponseHandler, 916369007:     Deferred: sent cdnConfig to deferred
MTProto, 916369007:         Starting update system
FeedLoop, 916369007:        Resumed update feed loop generic
MTProto, 916369007:         Getting updates after deserialization...
API:                MadelineProto is ready!
APIFactory, 916369007:      Finished init asynchronously
APIFactory:         Didn't serialize in a while, doing that now...
MsgIdHandler, 916369007:    WARNING: Given message id (6756203273411170305) is bigger than or equal to the current limit (6756203273411158017). Consider syncing your date.
ResponseHandler, 916369007:     Defer sending [{"_":"user","self":true,"contact":false,"mutual_contact":false,"deleted":false,"bot":false,"bot_chat_history":false,"bot_nochats":false,"verified":false,"restricted":false,"min":false,"bot_inline_geo":false,"support":false,"scam":false,"id":916369007,"access_hash":5748210509534669192,"first_name":"test","last_name":"test","phone":"<redacted>","status":{"_":"userStatusOnline","expires":1573051346}}] to deferred
ResponseHandler, 916369007:     Deferred: sent [{"_":"user","self":true,"contact":false,"mutual_contact":false,"deleted":false,"bot":false,"bot_chat_history":false,"bot_nochats":false,"verified":false,"restricted":false,"min":false,"bot_inline_geo":false,"support":false,"scam":false,"id":916369007,"access_hash":5748210509534669192,"first_name":"test","last_name":"test","phone":"<redacted>","status":{"_":"userStatusOnline","expires":1573051346}}] to deferred
AuthKeyHandler, 916369007:  Creating secret chat with 156599081...
ResponseHandler, 916369007:     Defer sending updates.differenceEmpty to deferred
ResponseHandler, 916369007:     Deferred: sent updates.differenceEmpty to deferred
UpdateLoop, 916369007:      Finished parsing updates in getUpdate loop generic, now resuming feeders
UpdateLoop, 916369007:      Finished resuming feeders in getUpdate loop generic, signaling updates
UpdateLoop, 916369007:      Finished signaling updates in getUpdate loop generic, pausing
ResponseHandler, 916369007:     Defer sending messages.dhConfigNotModified to deferred
ResponseHandler, 916369007:     Deferred: sent messages.dhConfigNotModified to deferred
AuthKeyHandler, 916369007:  Generating a...
AuthKeyHandler, 916369007:  Generating g_a...
AuthKeyHandler, 916369007:  Executing g_a check (1/2)...
AuthKeyHandler, 916369007:  Executing g_a check (2/2)...
ResponseHandler, 916369007:     Defer sending encryptedChatWaiting to deferred
ResponseHandler, 916369007:     Deferred: sent encryptedChatWaiting to deferred
AuthKeyHandler, 916369007:  Secret chat -76244422 requested successfully!
Waiting for @dummy_username (secret chat id -76244422) to accept the secret chat...
ResponseHandler, 916369007:     Defer sending updates.differenceEmpty to deferred
ResponseHandler, 916369007:     Deferred: sent updates.differenceEmpty to deferred
UpdateLoop, 916369007:      Finished parsing updates in getUpdate loop generic, now resuming feeders
UpdateLoop, 916369007:      Finished resuming feeders in getUpdate loop generic, signaling updates
UpdateLoop, 916369007:      Finished signaling updates in getUpdate loop generic, pausing
UpdateHandler, 916369007:   Parsing updates (updates) received via the socket...
SeqLoop, 916369007:         Was fed updates of type updates...
FeedLoop, 916369007:        Was fed an update of type updateEncryption in update feed loop generic...
FeedLoop, 916369007:        Resumed update feed loop generic
UpdateHandler, 916369007:   Completing creation of secret chat -76244422
UpdateHandler, 916369007:   Parsing updates (updates) received via the socket...
SeqLoop, 916369007:         Was fed updates of type updates...
FeedLoop, 916369007:        Was fed an update of type updateNewEncryptedMessage in update feed loop generic...
ResponseHandler, 916369007:     Defer sending messages.dhConfigNotModified to deferred
ResponseHandler, 916369007:     Deferred: sent messages.dhConfigNotModified to deferred
AuthKeyHandler, 916369007:  Executing g_a check (1/2)...
AuthKeyHandler, 916369007:  Executing g_a check (2/2)...
test:               Encrypting and uploading sticker...
ResponseHandler, 916369007:     Defer sending messages.sentEncryptedMessage to deferred
ResponseHandler, 916369007:     Deferred: sent messages.sentEncryptedMessage to deferred
AuthKeyHandler, 916369007:  Secret chat -76244422 completed successfully!
MsgIdHandler, 916369007:    WARNING: Given message id (6756203306580265985) is bigger than or equal to the current limit (6756203306579102721). Consider syncing your date.
ResponseHandler, 916369007:     Defer sending true to deferred
ResponseHandler, 916369007:     Deferred: sent true to deferred
Files, 916369007:           Upload status: 100%
Files, 916369007:           Total upload time: 0.67459893226624
Files, 916369007:           Total upload speed: 0.243297 mbps
Exception:          Telegram returned an RPC error: The MD5 checksums do not match (400) (MD5_CHECKSUM_INVALID), caused by phar:///path/to/madeline.phar/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoSession/ResponseHandler.php:533
Revision: e81ecc87c998b40ae474c526008fab6d8a5d0818

TL trace:
['messages.sendEncryptedFile']
ResponseHandler.php(92):    handle_response()
Driver.php(116):        handle_messages("icey",null)
Driver.php(72):         tick()
Loop.php(84):           run()
Tools.php(216):         run({})
APIFactory.php(147):    wait({})
test.php(63):           __call()

API, 916369007:             Shutting down MadelineProto (normally or due to an exception, idk)
PeriodicLoop, 916369007:    Got signal in call check, exiting
PeriodicLoop, 916369007:    Got signal in serialize, exiting
PeriodicLoop, 916369007:    Got signal in phone config, exiting
PeriodicLoop, 916369007:    Got signal in config, exiting
PeriodicLoop, 916369007:    Got signal in TOS, exiting
DataCenterConnection, 916369007:    Disconnecting from shared DC 2
Connection, 916369007:      Disconnecting from DC 2.0
DataCenterConnection, 916369007:    Backed up  from DC 2.0
Connection, 916369007:      Disconnected from DC 2.0
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 2
DataCenterConnection, 916369007:    Disconnecting from shared DC 1
Connection, 916369007:      Disconnecting from DC 1.0
DataCenterConnection, 916369007:    Backed up  from DC 1.0
Connection, 916369007:      Disconnected from DC 1.0
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 1
DataCenterConnection, 916369007:    Disconnecting from shared DC 3
Connection, 916369007:      Disconnecting from DC 3.0
DataCenterConnection, 916369007:    Backed up  from DC 3.0
Connection, 916369007:      Disconnected from DC 3.0
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 3
DataCenterConnection, 916369007:    Disconnecting from shared DC 4
Connection, 916369007:      Disconnecting from DC 4.0
DataCenterConnection, 916369007:    Backed up  from DC 4.0
Connection, 916369007:      Disconnected from DC 4.0
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 4
DataCenterConnection, 916369007:    Disconnecting from shared DC 4_media
PeriodicLoop, 916369007:    Got signal in robin loop DC 4_media, exiting
Connection, 916369007:      Disconnecting from DC 4_media.0
DataCenterConnection, 916369007:    Backed up  from DC 4_media.0
Connection, 916369007:      Disconnected from DC 4_media.0
Connection, 916369007:      Disconnecting from DC 4_media.1
DataCenterConnection, 916369007:    Backed up  from DC 4_media.1
Connection, 916369007:      Disconnected from DC 4_media.1
Connection, 916369007:      Disconnecting from DC 4_media.2
DataCenterConnection, 916369007:    Backed up  from DC 4_media.2
Connection, 916369007:      Disconnected from DC 4_media.2
Connection, 916369007:      Disconnecting from DC 4_media.3
DataCenterConnection, 916369007:    Backed up  from DC 4_media.3
Connection, 916369007:      Disconnected from DC 4_media.3
Connection, 916369007:      Disconnecting from DC 4_media.4
DataCenterConnection, 916369007:    Backed up  from DC 4_media.4
Connection, 916369007:      Disconnected from DC 4_media.4
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 4_media
DataCenterConnection, 916369007:    Disconnecting from shared DC 5
Connection, 916369007:      Disconnecting from DC 5.0
DataCenterConnection, 916369007:    Backed up  from DC 5.0
Connection, 916369007:      Disconnected from DC 5.0
DataCenterConnection, 916369007:    Backed up 0, added to 0 existing messages) from DC 5
MTProto, 916369007:         Successfully destroyed MadelineProto
$

PS. I've seen that "Consider syncing your date." warning, however the system is synced with apple's ntp servers, I guess it should suffice?

danog commented 4 years ago

Fixed now