ars3niy / tdlib-purple

libpurple Telegram plugin using tdlib
Other
147 stars 29 forks source link

Request name for account registration during login instead of deriving it from account alias #35

Closed EionRobb closed 4 years ago

EionRobb commented 4 years ago

When creating a new "Telegram (tdlib)" account, after entering in full phone number with country code, an SMS code is received, however the purple_request_input box only appears briefly before the account is marked as disconnected with the error: "Authentication error after sending phone number: code 401 (Unauthorized)"

purple debug log:

(22:20:41) account: Connecting to account +6412345678.
(22:20:41) connection: Connecting. gc = 439F7680
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: authorization state
(22:20:41) telegram-tdlib: Authorization state update: TDLib parameters requested
(22:20:41) telegram-tdlib: Account +6412345678 using database directory C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678
(22:20:41) telegram-tdlib: Sending query id 1
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: authorization state
(22:20:41) telegram-tdlib: Authorization state update: encriytion key requested
(22:20:41) telegram-tdlib: Sending query id 2
(22:20:41) telegram-tdlib: Authentication success on query 1
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: authorization state
(22:20:41) telegram-tdlib: Authorization state update: phone number requested
(22:20:41) telegram-tdlib: Sending query id 3
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=-1069066940
(22:20:41) telegram-tdlib: Authentication success on query 2
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(22:20:41) telegram-tdlib: Incoming update
(22:20:41) telegram-tdlib: Incoming update: connection state
(22:20:41) telegram-tdlib: Connection in progress
(22:20:42) telegram-tdlib: Incoming update
(22:20:42) telegram-tdlib: Incoming update: connection state
(22:20:42) telegram-tdlib: Connection ready
(22:20:42) telegram-tdlib: Sending query id 4
(22:20:42) telegram-tdlib: getContacts response to request 4
(22:20:42) connection: Connection error on 439F7680 (reason: 0 description: Authentication error after sending phone number: code 401 (Unauthorized))
(22:20:42) account: Disconnecting account +6412345678 (0C5476C0)
(22:20:42) connection: Disconnecting connection 439F7680
(22:20:42) telegram-tdlib: Destroyed TdTransceiver
ars3niy commented 4 years ago

Try this branch https://github.com/ars3niy/tdlib-purple/tree/try-fix-login

EionRobb commented 4 years ago

That seems to trigger a 429 error:

(21:49:05) account: Connecting to account +6412345678.
(21:49:05) connection: Connecting. gc = 4F5107E0
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: authorization state
(21:49:05) telegram-tdlib: Authorization state update: TDLib parameters requested
(21:49:05) telegram-tdlib: Account +6412345678 using database directory C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678 
(21:49:05) telegram-tdlib: Sending query id 1
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: authorization state
(21:49:05) telegram-tdlib: Authorization state update: encriytion key requested
(21:49:05) telegram-tdlib: Sending query id 2
(21:49:05) telegram-tdlib: Authentication success on query 1
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=900822020
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: authorization state
(21:49:05) telegram-tdlib: Authorization state update: phone number requested
(21:49:05) telegram-tdlib: Sending query id 3
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=-1069066940
(21:49:05) telegram-tdlib: Authentication success on query 2
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(21:49:05) telegram-tdlib: Incoming update
(21:49:05) telegram-tdlib: Incoming update: connection state
(21:49:05) telegram-tdlib: Connection in progress
(21:49:06) telegram-tdlib: Incoming update
(21:49:06) telegram-tdlib: Incoming update: connection state
(21:49:06) telegram-tdlib: Connection ready
(21:49:06) connection: Connection error on 4F5107E0 (reason: 0 description: Authentication error after sending phone number: code 429 (Too Many Requests: retry after 1333))
(21:49:06) account: Disconnecting account +6412345678 (07DDF188)
(21:49:06) connection: Disconnecting connection 4F5107E0
(21:49:06) telegram-tdlib: Destroyed TdTransceiver
(21:49:06) connection: Destroying connection 4F5107E0
(21:49:06) telegram-tdlib: Ignoring response (object id -722616727) as transceiver is already destroyed
(21:49:06) telegram-tdlib: Destroyed TdTransceiverImpl
ars3niy commented 4 years ago

I think it's a telegram thing when you can't request code something like more than once every half an hour and more than 5 times a day?

EionRobb commented 4 years ago

I waited 30mins after the "too many requests" and it didn't disconnect me. It didn't connect me either though, the debug is the same as above but stopping on the last line telegram-tdlib: Connection ready with nothing happening after that.

Full debug:

(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: authorization state
(22:13:34) telegram-tdlib: Authorization state update: TDLib parameters requested
(22:13:34) telegram-tdlib: Account +6412345678 using database directory C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678 
(22:13:34) telegram-tdlib: Sending query id 1
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: authorization state
(22:13:34) telegram-tdlib: Authorization state update: encriytion key requested
(22:13:34) telegram-tdlib: Sending query id 2
(22:13:34) telegram-tdlib: Authentication success on query 1
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: authorization state
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=-1069066940
(22:13:34) telegram-tdlib: Authentication success on query 2
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(22:13:34) telegram-tdlib: Incoming update
(22:13:34) telegram-tdlib: Incoming update: connection state
(22:13:34) telegram-tdlib: Connection in progress
(22:13:35) telegram-tdlib: Incoming update
(22:13:35) telegram-tdlib: Incoming update: connection state
(22:13:35) telegram-tdlib: Connection ready
ars3niy commented 4 years ago

So the thing is, there's normally plenty more debug information on either stdout or stderr, don't remember which, printed by tdlib itself. I need to see that to figure out what is going on.

How do you run pidgin and how do you get the log?

EionRobb commented 4 years ago

Ah ok, I'll run from a command prompt. Currently extracting the log from Help->Debug Window

ars3niy commented 4 years ago

Yes run pidgin with -d then, hope the output doesn't get eaten due to it being a GUI application

EionRobb commented 4 years ago
(22:29:30) account: Connecting to account +6412345678.
(22:29:30) connection: Connecting. gc = 08BDF3C0
[ 3][t 0][1589452171.005103350][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 4][1589452171.005103350][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "version"
  value = optionValueString {
    value = "1.6.4"
  }
}
[ 3][t 0][1589452171.005103350][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2a7c88
[ 3][t 4][1589452171.005103350][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateAuthorizationState {
  authorization_state = authorizationStateWaitTdlibParameters {
  }
}
[ 3][t 0][1589452171.005103350][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452171.005103350][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b7cf250
[ 3][t 0][1589452171.005103350][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\okcupid.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\okcupid.png': No such file or directory
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png': No such file or directory
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png': No such file or directory
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png': No such file or directory
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\hipchat.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\hipchat.png': No such file or directory
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\trillian.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\trillian.png': No such file or directory
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\instagram.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\instagram.png': No such file or directory
(22:29:31) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png': No such file or directory
(22:29:31) telegram-tdlib: Incoming update
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
(22:29:31) telegram-tdlib: Incoming update
(22:29:31) telegram-tdlib: Incoming update: authorization state
(22:29:31) telegram-tdlib: Authorization state update: TDLib parameters requested
(22:29:31) telegram-tdlib: Account +6412345678 using database directory C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678
(22:29:31) telegram-tdlib: Sending query id 1
[ 3][t 4][1589452171.069929600][Td.cpp:3334][#1][!Td][&td_requests]     Receive request 1: setTdlibParameters {
  parameters = tdlibParameters {
    use_test_dc = false
    database_directory = "C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678"
    files_directory = ""
    use_file_database = false
    use_chat_info_database = false
    use_message_database = true
    use_secret_chats = true
    api_id = 94575
    api_hash = "a3406de8d171bb422bb6ddf3bbd800e2"
    system_language_code = "en"
    device_model = "Desktop"
    system_version = "Unknown"
    application_version = "1.0"
    enable_storage_optimizer = true
    ignore_file_names = false
  }
}
[ 3][t 4][1589452171.073918819][Binlog.cpp:370][#1][!Td]        Load: init encryption
[ 3][t 4][1589452171.073918819][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateAuthorizationState {
  authorization_state = authorizationStateWaitEncryptionKey {
    is_encrypted = true
  }
}
[ 3][t 4][1589452171.073918819][Td.cpp:4474][#1][!Td][&td_requests]     Sending result for request 1: ok {
}
[ 3][t 0][1589452171.073918819][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b318398
[ 3][t 0][1589452171.081901312][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.081901312][Client.cpp:276][&td_requests]   End to wait for updates, returning object 1 0b3183e8
[ 3][t 0][1589452171.081901312][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: authorization state
(22:29:31) telegram-tdlib: Authorization state update: encriytion key requested
(22:29:31) telegram-tdlib: Sending query id 2
(22:29:31) telegram-tdlib: Authentication success on query 1
[ 3][t 4][1589452171.081901312][Td.cpp:3334][#1][!Td][&td_requests]     Receive request 2: checkDatabaseEncryptionKey {
  encryption_key = bytes [0] { }
}
[ 3][t 4][1589452171.082895041][Binlog.cpp:370][#1][!Td]        Load: init encryption
[ 2][t 4][1589452171.089905500][TdDb.cpp:315][#1][!Td]  Got PRAGMA user_version = 11
[ 3][t 4][1589452171.089905500][DialogDb.cpp:27][#1][!Td]       Init dialog database [version:11]
[ 3][t 4][1589452171.089905500][MessagesDb.cpp:44][#1][!Td]     Init message database [version:11]
[ 3][t 4][1589452171.089905500][FileDb.cpp:44][#1][!Td] Init file database [version:11]
[ 3][t 4][1589452171.089905500][Td.cpp:4066][#1][!Td]   Successfully inited database in [database_directory:C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678\] and [files_directory:C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678\]
[ 3][t 4][1589452171.089905500][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "unix_time"
  value = optionValueInteger {
    value = 1589452169
  }
}
[ 3][t 4][1589452171.090873480][NetQueryDispatcher.cpp:286][#1][!Td]    [main_dc_id:1]
[ 3][t 0][1589452171.090873480][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2add68
[ 3][t 4][1589452171.095867395][AuthManager.cpp:883][#1][!Td]   Load auth_state from database: [state:5]
[ 3][t 0][1589452171.095867395][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.097856283][ContactsManager.cpp:2875][#1][!Td]      Loaded location_visibility_expire_date = 0 and pending_location_visibility_expire_date = -1
[ 3][t 4][1589452171.097856283][NetQuery.h:348][#1][!Td]        [Query:[id:65536][tl:0x1fb33026][state:Query]]
[ 3][t 4][1589452171.097856283][Td.cpp:3483][#1][!Td][&net_query]       Send [Query:[id:65536][tl:0x1fb33026][state:Query]] to dispatcher
[ 3][t 4][1589452171.097856283][NetQuery.h:239][#1][!Td][&net_query]    [Query:[id:65536][tl:0x1fb33026][state:Query]] [debug:Td: send to NetQueryDispatcher]
[ 2][t 4][1589452171.097856283][AuthDataShared.cpp:109][#1][!Td]        DcId{1} [auth_key_id:12724712076430602546][state:NoAuth][created_at:1589364775.000000]
[ 3][t 5][1589452171.097856283][ResourceManager.cpp:136][#1][!UploadResourceManager]    [unused:2097152]
[ 3][t 4][1589452171.098852158][NetQuery.h:239][#1][!Td][&net_query]    [Query:[id:65536][tl:0x1fb33026][state:Query]] [debug:sent to main session multi proxy DcId{1}]
[ 3][t 4][1589452171.098852158][ConnectionCreator.cpp:1015][#1][!ConnectionCreator][&connections]       SAVE DcOptions{[DcOption:DcId{1}[ip:149.154.175.56][port:443][secret_len:0][flags:]], [DcOption:DcId{1}[ip:149.154.175.50][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{1}[ip:2001:b28:f23d:f001::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{2}[ip:149.154.167.50][port:443][secret_len:0][flags:]], [DcOption:DcId{2}[ip:149.154.167.51][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{2}[ip:149.154.167.151][port:443][secret_len:0][flags:(MediaOnly)]], [DcOption:DcId{2}[ip:2001:67c:4e8:f002::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{2}[ip:2001:67c:4e8:f002::b][port:443][secret_len:0][flags:(MediaOnly)(IPv6)]], [DcOption:DcId{3}[ip:149.154.175.100][port:443][secret_len:0][flags:]], [DcOption:DcId{3}[ip:149.154.175.100][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{3}[ip:2001:b28:f23d:f003::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{4}[ip:149.154.167.91][port:443][secret_len:0][flags:]], [DcOption:DcId{4}[ip:149.154.167.91][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{4}[ip:2001:67c:4e8:f004::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{4}[ip:149.154.165.96][port:443][secret_len:0][flags:(MediaOnly)]], [DcOption:DcId{4}[ip:2001:67c:4e8:f004::b][port:443][secret_len:0][flags:(MediaOnly)(IPv6)]], [DcOption:DcId{5}[ip:2001:b28:f23f:f005::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{5}[ip:91.108.56.198][port:443][secret_len:0][flags:]], [DcOption:DcId{5}[ip:91.108.56.198][port:443][secret_len:0][flags:(Static)]]}
[ 3][t 4][1589452171.098852158][ConfigManager.cpp:762][#1][!Recoverer][&config_recoverer]       Successfully connected
[ 3][t 4][1589452171.098852158][ConfigManager.cpp:832][#1][!Recoverer][&config_recoverer]       Wakeup NEVER
[ 3][t 4][1589452171.098852158][NetQuery.h:348][#1][!ConfigManager]     [Query:[id:131072][tl:0xc4f9186b][state:Query]]
[ 3][t 4][1589452171.098852158][NetQuery.h:239][#1][!ConfigManager][&net_query] [Query:[id:131072][tl:0xc4f9186b][state:Query]] [debug:sent to main session multi proxy DcId{1}]
[ 3][t 4][1589452171.098852158][StorageManager.cpp:347][#1][!StorageManager]    Schedule next file gc in 85499
[ 3][t 4][1589452171.099849224][StorageManager.cpp:247][#1][!StorageManager]    Loaded fast storage statistics with 0 files of total size 0
[ 3][t 4][1589452171.099849224][MessagesManager.cpp:10745][#1][!MessagesManager]        Begin ttl_db loop: [expires_from:0][expires_till:1589452184][has_query:false]
[ 3][t 4][1589452171.099849224][MessagesManager.cpp:10768][#1][!MessagesManager]        Send ttl_db query [expires_from:0][expires_till:1589452184][limit:50]
[ 3][t 4][1589452171.099849224][NotificationManager.cpp:4048][#1][!NotificationManager][&notifications] Begin to process 0 binlog events
[ 3][t 4][1589452171.099849224][NotificationManager.cpp:4095][#1][!NotificationManager][&notifications] Finish processing binlog events
[ 3][t 4][1589452171.099849224][MessagesManager.cpp:10785][#1][!MessagesManager]        Receive ttl_db query result [new expires_till:-1][got messages:0]
[ 3][t 4][1589452171.099849224][MessagesManager.cpp:10745][#1][!MessagesManager]        Begin ttl_db loop: [expires_from:1589452184][expires_till:-1][has_query:false]
[ 3][t 4][1589452171.099849224][MessagesManager.cpp:10754][#1][!MessagesManager]        Finish ttl_db loop
[ 3][t 4][1589452171.099849224][ConnectionCreator.cpp:540][#1][!ConnectionCreator][&connections]        Receive network flag true with generation 1
[ 3][t 4][1589452171.099849224][ConnectionCreator.cpp:545][#1][!ConnectionCreator][&connections]        Set proxy query token to 0: 0 1
[ 3][t 4][1589452171.099849224][ConnectionCreator.cpp:563][#1][!ConnectionCreator][&connections]        Receive online flag false
[ 3][t 4][1589452171.100846529][ConfigManager.cpp:762][#1][!Recoverer][&config_recoverer]       Successfully connected
[ 3][t 4][1589452171.100846529][ConfigManager.cpp:832][#1][!Recoverer][&config_recoverer]       Wakeup NEVER
[ 3][t 4][1589452171.100846529][ConfigManager.cpp:582][#1][!Recoverer][&config_recoverer]       ON CONNECTING true
[ 3][t 4][1589452171.100846529][ConfigManager.cpp:760][#1][!Recoverer][&config_recoverer]       Failed to connect for 0.000014
[ 3][t 4][1589452171.100846529][ConfigManager.cpp:829][#1][!Recoverer][&config_recoverer]       Wakeup in 20.0s
[ 2][t 4][1589452171.102841616][Session.cpp:147][#1][!SessionProxy:1:main]      Generate new session_id 12805111446987485713 for auth key 12724712076430602546 for main DC1
[ 3][t 4][1589452171.104835987][NetQuery.h:239][#1][!SessionProxy:1:main][&net_query]   [Query:[id:65536][tl:0x1fb33026][state:Query]] [debug:SessionProxy:1:main: sent to session]
[ 3][t 4][1589452171.104835987][Session.cpp:236][#1][!Session:1:main][&net_query]       Got query [Query:[id:65536][tl:0x1fb33026][state:Query]]
[ 3][t 4][1589452171.104835987][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:65536][tl:0x1fb33026][state:Query]] [debug:Session: pending]
[ 3][t 4][1589452171.104835987][NetQuery.h:239][#1][!SessionProxy:1:main][&net_query]   [Query:[id:131072][tl:0xc4f9186b][state:Query]] [debug:SessionProxy:1:main: sent to session]
[ 3][t 4][1589452171.104835987][ConnectionCreator.cpp:611][#1][!ConnectionCreator][&connections]        Request connection for [client:0x15437cee] to DcId{1} [allow_media_only:false]
[ 3][t 4][1589452171.104835987][ConnectionCreator.cpp:811][#1][!ConnectionCreator][&connections]        In client_loop: [client:0x15437cee]
[ 3][t 4][1589452171.104835987][ConnectionCreator.cpp:707][#1][!ConnectionCreator][&connections]        Create: [149.154.175.56:443] to DcId{1}
[ 3][t 4][1589452171.105833292][ConnectionCreator.cpp:783][#1][!ConnectionCreator][&connections]        Create new direct connection [149.154.175.56:443] to DcId{1} from [0.0.0.0:10997]
[ 3][t 4][1589452171.105833292][Session.cpp:236][#1][!Session:1:main][&net_query]       Got query [Query:[id:131072][tl:0xc4f9186b][state:Query]]
[ 3][t 4][1589452171.105833292][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:131072][tl:0xc4f9186b][state:Query]] [debug:Session: pending]
[ 3][t 4][1589452171.105833292][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "t_me_url"
  value = optionValueString {
    value = "https://t.me/"
  }
}
[ 3][t 4][1589452171.105833292][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "pinned_archived_chat_count_max"
  value = optionValueInteger {
    value = 100
  }
}
[ 3][t 0][1589452171.105833292][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af230
[ 3][t 4][1589452171.105833292][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "pinned_chat_count_max"
  value = optionValueInteger {
    value = 5
  }
}
[ 3][t 0][1589452171.105833292][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 4][1589452171.105833292][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "supergroup_size_max"
  value = optionValueInteger {
    value = 200000
  }
}
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.105833292][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af3c0
[ 3][t 4][1589452171.105833292][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "forwarded_message_count_max"
  value = optionValueInteger {
    value = 100
  }
}
[ 3][t 0][1589452171.105833292][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.105833292][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "call_connect_timeout_ms"
  value = optionValueInteger {
    value = 30000
  }
}
[ 3][t 0][1589452171.105833292][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af000
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.105833292][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "basic_group_size_max"
  value = optionValueInteger {
    value = 200
  }
}
[ 3][t 0][1589452171.105833292][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.106832981][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "expect_blocking"
  value = optionValueBoolean {
    value = false
  }
}
[ 3][t 0][1589452171.106832981][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af078
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.106832981][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "message_caption_length_max"
  value = optionValueInteger {
    value = 1024
  }
}
[ 3][t 0][1589452171.106832981][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.106832981][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "message_text_length_max"
  value = optionValueInteger {
    value = 4096
  }
}
[ 3][t 0][1589452171.106832981][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af410
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.106832981][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "venue_search_bot_username"
  value = optionValueString {
    value = "foursquare"
  }
}
[ 3][t 0][1589452171.106832981][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.106832981][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "is_location_visible"
  value = optionValueBoolean {
    value = false
  }
}
[ 3][t 0][1589452171.106832981][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af4d8
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.107828140][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "calls_enabled"
  value = optionValueBoolean {
    value = false
  }
}
[ 3][t 0][1589452171.107828140][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.107828140][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "photo_search_bot_username"
  value = optionValueString {
    value = "bing"
  }
}
[ 3][t 0][1589452171.107828140][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af0a0
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.107828140][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "call_packet_timeout_ms"
  value = optionValueInteger {
    value = 10000
  }
}
[ 3][t 0][1589452171.107828140][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.107828140][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "animation_search_bot_username"
  value = optionValueString {
    value = "gif"
  }
}
[ 3][t 0][1589452171.107828140][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af398
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.107828140][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "test_mode"
  value = optionValueBoolean {
    value = false
  }
}
[ 3][t 0][1589452171.107828140][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.107828140][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateOption {
  name = "favorite_stickers_limit"
  value = optionValueInteger {
    value = 5
  }
}
[ 3][t 0][1589452171.107828140][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af050
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.107828140][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateAuthorizationState {
  authorization_state = authorizationStateWaitRegistration {
    terms_of_service = termsOfService {
      text = formattedText {
        text = "By signing up for Telegram, you agree not to:

- Use our service to send spam or scam users.
- Promote violence on publicly viewable Telegram bots, groups or channels.
- Post pornographic content on publicly viewable Telegram bots, groups or channels.

We reserve the right to update these Terms of Service later."
        entities = vector[0] {
        }
      }
      min_user_age = 0
      show_popup = false
    }
  }
}
[ 3][t 0][1589452171.107828140][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.108825207][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateDiceEmojis {
  emojis = vector[3] {
    "­ƒÄ▓"
    "­ƒÄ»"
    "­ƒÅÇ"
  }
}
[ 3][t 0][1589452171.108825207][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af348
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.108825207][Td.cpp:4474][#1][!Td][&td_requests]     Sending result for request 2: ok {
}
[ 3][t 0][1589452171.108825207][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.108825207][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateSelectedBackground {
  for_dark_theme = false
  background = null
}
[ 3][t 0][1589452171.108825207][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af230
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.108825207][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateSelectedBackground {
  for_dark_theme = true
  background = null
}
[ 3][t 0][1589452171.108825207][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 0][1589452171.108825207][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af208
[ 3][t 4][1589452171.108825207][InlineQueriesManager.cpp:804][#1][!InlineQueriesManager]        Inline query loop
[ 3][t 0][1589452171.108825207][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.108825207][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af3c0
[ 3][t 4][1589452171.108825207][ConnectionCreator.cpp:941][#1][!ConnectionCreator][&connections]        Ready connection (unchecked) 0b3c0448 [rtt:0.0ns] [149.154.175.56:443] to DcId{1} from [0.0.0.0:10997]
[ 3][t 0][1589452171.108825207][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.108825207][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateConnectionState {
  state = connectionStateConnecting {
  }
}
[ 3][t 0][1589452171.109822035][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af438
[ 3][t 4][1589452171.109822035][ConnectionCreator.cpp:993][#1][!ConnectionCreator][&connections]        Add ready connection 0b3c0448 for [client:0x15437cee]
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.109822035][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 4][1589452171.109822035][ConnectionCreator.cpp:811][#1][!ConnectionCreator][&connections]        In client_loop: [client:0x15437cee]
[ 3][t 0][1589452171.109822035][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af4b0
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.109822035][ConnectionCreator.cpp:827][#1][!ConnectionCreator][&connections]        Send to promise [connection:0b3c0448]
[ 3][t 0][1589452171.109822035][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.109822035][Session.cpp:1049][#1][!Session:1:main]  Finished to open connection Session:1:main::Connect::Tcp::[149.154.175.56:443] to DcId{1} from [0.0.0.0:10997]
[ 3][t 0][1589452171.109822035][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af0c8
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.109822035][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:65536][tl:0x1fb33026][state:Query]] [debug:Session: trying to send to mtproto::connection]
[ 3][t 0][1589452171.109822035][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.109822035][Session.cpp:928][#1][!Session:1:main][&net_query]       Send query to connection [Query:[id:65536][tl:0x1fb33026][state:Query]] [msg_id:0x5ebd1d89c626d2d8][invoke_after:0x0000000000000000]
[ 3][t 0][1589452171.109822035][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af4d8
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 4][1589452171.109822035][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:131072][tl:0xc4f9186b][state:Query]] [debug:Session: trying to send to mtproto::connection]
[ 3][t 0][1589452171.109822035][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.109822035][Session.cpp:928][#1][!Session:1:main][&net_query]       Send query to connection [Query:[id:131072][tl:0xc4f9186b][state:Query]] [msg_id:0x5ebd1d89c626dab8][invoke_after:0x0000000000000000]
[ 3][t 0][1589452171.109822035][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b2af028
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 0][1589452171.109822035][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452171.109822035][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b3183f8
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.109822035][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452171.110819340][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b4220e0
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 0][1589452171.110819340][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452171.110819340][Client.cpp:276][&td_requests]   End to wait for updates, returning object 2 0b318698
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.110819340][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 0][1589452171.110819340][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b422500
[ 3][t 0][1589452171.110819340][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.110819340][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b422698
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=900822020
[ 3][t 0][1589452171.110819340][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452171.110819340][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b318998
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 0][1589452171.110819340][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:31) telegram-tdlib: Incoming update: authorization state
(22:29:31) telegram-tdlib: Incoming update
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=-1069066940
(22:29:31) telegram-tdlib: Authentication success on query 2
(22:29:31) telegram-tdlib: Incoming update
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(22:29:31) telegram-tdlib: Incoming update
(22:29:31) telegram-tdlib: Incoming update: ignorig ID=-1715658659
(22:29:31) telegram-tdlib: Incoming update
(22:29:31) telegram-tdlib: Incoming update: connection state
(22:29:31) telegram-tdlib: Connection in progress
[ 3][t 4][1589452171.592614651][ConfigManager.cpp:582][#1][!Recoverer][&config_recoverer]       ON CONNECTING false
[ 3][t 4][1589452171.592614651][ConfigManager.cpp:762][#1][!Recoverer][&config_recoverer]       Successfully connected
[ 3][t 4][1589452171.593530655][ConfigManager.cpp:832][#1][!Recoverer][&config_recoverer]       Wakeup NEVER
[ 3][t 4][1589452171.593530655][Session.cpp:542][#1][!Session:1:main]   New session 11900816714672496499 created with first message_id 6826645087735698136
[ 3][t 4][1589452171.593530655][NetQuery.h:348][#1][!Session:1:main]    [Query:[id:0][tl:0x00000000][state:Result][tl:0xe317af7e]]
[ 3][t 4][1589452171.593530655][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:0][tl:0x00000000][state:Result][tl:0xe317af7e]] [debug:sent to td (no callback)]
[ 3][t 4][1589452171.593530655][Session.cpp:618][#1][!Session:1:main][&net_query]       Ack [msg_id:6826645087735698136][Query:[id:65536][tl:0x1fb33026][state:Query]]
[ 3][t 4][1589452171.594527721][Session.cpp:618][#1][!Session:1:main][&net_query]       Ack [msg_id:6826645087735700152][Query:[id:131072][tl:0xc4f9186b][state:Query]]
[ 3][t 4][1589452171.594527721][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateConnectionState {
  state = connectionStateReady {
  }
}
[ 3][t 4][1589452171.594527721][NetQuery.h:239][#1][!Td][&net_query]    [Query:[id:0][tl:0x00000000][state:Result][tl:0xe317af7e]] [debug:Td: received from DcManager]
[ 3][t 0][1589452171.594527721][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b318c88
[ 3][t 4][1589452171.594527721][Td.cpp:3507][#1][!Td][&net_query]       Receive result of [Query:[id:0][tl:0x00000000][state:Result][tl:0xe317af7e]]
[ 3][t 0][1589452171.594527721][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 4][1589452171.594527721][UpdatesManager.cpp:638][#1][!Td]        Receive updatesTooLong {
}
(22:29:31) telegram-tdlib: Incoming update
[ 3][t 4][1589452171.594527721][UpdatesManager.cpp:661][#1][!Td]        Ignore received before authorization or after logout updatesTooLong {
}
(22:29:31) telegram-tdlib: Incoming update: connection state
(22:29:31) telegram-tdlib: Connection ready
[ 3][t 4][1589452171.597528696][Session.cpp:709][#1][!Session:1:main][&net_query]       Return query result [Query:[id:65536][tl:0x1fb33026][state:Query]]
[ 3][t 4][1589452171.597528696][NetQuery.h:127][#1][!Session:1:main][&net_query]        Got answer [Query:[id:65536][tl:0x1fb33026][state:Query]]
[ 3][t 4][1589452171.597528696][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:65536][tl:0x1fb33026][state:Result][tl:0x8e1a1775]] [debug:sent to callback]
[ 3][t 4][1589452171.597528696][NetQuery.h:239][#1][!Td][&net_query]    [Query:[id:65536][tl:0x1fb33026][state:Result][tl:0x8e1a1775]] [debug:Td: received from DcManager]
[ 3][t 4][1589452171.597528696][Td.cpp:3507][#1][!Td][&net_query]       Receive result of [Query:[id:65536][tl:0x1fb33026][state:Result][tl:0x8e1a1775]]
[ 3][t 4][1589452171.599522591][Session.cpp:709][#1][!Session:1:main][&net_query]       Return query result [Query:[id:131072][tl:0xc4f9186b][state:Query]]
[ 3][t 4][1589452171.599522591][NetQuery.h:127][#1][!Session:1:main][&net_query]        Got answer [Query:[id:131072][tl:0xc4f9186b][state:Query]]
[ 3][t 4][1589452171.599522591][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:131072][tl:0xc4f9186b][state:Result][tl:0x330b4067]] [debug:sent to callback]
[ 3][t 4][1589452171.599522591][ConfigManager.cpp:762][#1][!Recoverer][&config_recoverer]       Successfully connected
[ 3][t 4][1589452171.599522591][ConfigManager.cpp:832][#1][!Recoverer][&config_recoverer]       Wakeup NEVER
[ 3][t 4][1589452171.599522591][ConfigManager.cpp:1142][#1][!ConfigManager]     config {
  flags = 3656
  date = 1589452170
  expires = 1589455674
  test_mode = false
  this_dc = 1
  dc_options = vector[19] {
    dcOption {
      flags = 0
      id = 1
      ip_address = "149.154.175.56"
      port = 443
    }
    dcOption {
      flags = 16
      id = 1
      ip_address = "149.154.175.50"
      port = 443
    }
    dcOption {
      flags = 1
      id = 1
      ip_address = "2001:0b28:f23d:f001:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 0
      id = 2
      ip_address = "149.154.167.50"
      port = 443
    }
    dcOption {
      flags = 16
      id = 2
      ip_address = "149.154.167.51"
      port = 443
    }
    dcOption {
      flags = 2
      id = 2
      ip_address = "149.154.167.151"
      port = 443
    }
    dcOption {
      flags = 1
      id = 2
      ip_address = "2001:067c:04e8:f002:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 3
      id = 2
      ip_address = "2001:067c:04e8:f002:0000:0000:0000:000b"
      port = 443
    }
    dcOption {
      flags = 0
      id = 3
      ip_address = "149.154.175.100"
      port = 443
    }
    dcOption {
      flags = 16
      id = 3
      ip_address = "149.154.175.100"
      port = 443
    }
    dcOption {
      flags = 1
      id = 3
      ip_address = "2001:0b28:f23d:f003:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 0
      id = 4
      ip_address = "149.154.167.91"
      port = 443
    }
    dcOption {
      flags = 16
      id = 4
      ip_address = "149.154.167.91"
      port = 443
    }
    dcOption {
      flags = 1
      id = 4
      ip_address = "2001:067c:04e8:f004:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 2
      id = 4
      ip_address = "149.154.165.96"
      port = 443
    }
    dcOption {
      flags = 3
      id = 4
      ip_address = "2001:067c:04e8:f004:0000:0000:0000:000b"
      port = 443
    }
    dcOption {
      flags = 1
      id = 5
      ip_address = "2001:0b28:f23f:f005:0000:0000:0000:000a"
      port = 443
    }
    dcOption {
      flags = 0
      id = 5
      ip_address = "91.108.56.198"
      port = 443
    }
    dcOption {
      flags = 16
      id = 5
      ip_address = "91.108.56.198"
      port = 443
    }
  }
  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
}
[ 3][t 4][1589452171.600509882][ConnectionCreator.cpp:1015][#1][!ConnectionCreator][&connections]       SAVE DcOptions{[DcOption:DcId{1}[ip:149.154.175.56][port:443][secret_len:0][flags:]], [DcOption:DcId{1}[ip:149.154.175.50][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{1}[ip:2001:b28:f23d:f001::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{2}[ip:149.154.167.50][port:443][secret_len:0][flags:]], [DcOption:DcId{2}[ip:149.154.167.51][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{2}[ip:149.154.167.151][port:443][secret_len:0][flags:(MediaOnly)]], [DcOption:DcId{2}[ip:2001:67c:4e8:f002::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{2}[ip:2001:67c:4e8:f002::b][port:443][secret_len:0][flags:(MediaOnly)(IPv6)]], [DcOption:DcId{3}[ip:149.154.175.100][port:443][secret_len:0][flags:]], [DcOption:DcId{3}[ip:149.154.175.100][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{3}[ip:2001:b28:f23d:f003::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{4}[ip:149.154.167.91][port:443][secret_len:0][flags:]], [DcOption:DcId{4}[ip:149.154.167.91][port:443][secret_len:0][flags:(Static)]], [DcOption:DcId{4}[ip:2001:67c:4e8:f004::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{4}[ip:149.154.165.96][port:443][secret_len:0][flags:(MediaOnly)]], [DcOption:DcId{4}[ip:2001:67c:4e8:f004::b][port:443][secret_len:0][flags:(MediaOnly)(IPv6)]], [DcOption:DcId{5}[ip:2001:b28:f23f:f005::a][port:443][secret_len:0][flags:(IPv6)]], [DcOption:DcId{5}[ip:91.108.56.198][port:443][secret_len:0][flags:]], [DcOption:DcId{5}[ip:91.108.56.198][port:443][secret_len:0][flags:(Static)]]}
[ 3][t 4][1589452171.600509882][NetQuery.h:348][#1][!ConfigManager]     [Query:[id:196608][tl:0x98914110][state:Query]]
[ 3][t 4][1589452171.600509882][NetQuery.h:239][#1][!ConfigManager][&net_query] [Query:[id:196608][tl:0x98914110][state:Query]] [debug:sent to main session multi proxy DcId{1}]
[ 3][t 4][1589452171.600509882][NetQuery.h:239][#1][!SessionProxy:1:main][&net_query]   [Query:[id:196608][tl:0x98914110][state:Query]] [debug:SessionProxy:1:main: sent to session]
[ 3][t 4][1589452171.600509882][Session.cpp:236][#1][!Session:1:main][&net_query]       Got query [Query:[id:196608][tl:0x98914110][state:Query]]
[ 3][t 4][1589452171.600509882][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:196608][tl:0x98914110][state:Query]] [debug:Session: pending]
[ 3][t 4][1589452171.600509882][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:196608][tl:0x98914110][state:Query]] [debug:Session: trying to send to mtproto::connection]
[ 3][t 4][1589452171.600509882][Session.cpp:928][#1][!Session:1:main][&net_query]       Send query to connection [Query:[id:196608][tl:0x98914110][state:Query]] [msg_id:0x5ebd1d8a02253b0c][invoke_after:0x0000000000000000]
[ 3][t 4][1589452171.840949774][Session.cpp:709][#1][!Session:1:main][&net_query]       Return query result [Query:[id:196608][tl:0x98914110][state:Query]]
[ 3][t 4][1589452171.840949774][NetQuery.h:127][#1][!Session:1:main][&net_query]        Got answer [Query:[id:196608][tl:0x98914110][state:Query]]
[ 3][t 4][1589452171.841903210][NetQuery.h:239][#1][!Session:1:main][&net_query]        [Query:[id:196608][tl:0x98914110][state:Result][tl:0x99c1d49d]] [debug:sent to callback]
[ 3][t 4][1589452171.841903210][ConfigManager.cpp:1283][#1][!ConfigManager]     Receive app config jsonObject {
  value = vector[7] {
    jsonObjectValue {
      key = "test"
      value = jsonNumber {
        value = 1.000000
      }
    }
    jsonObjectValue {
      key = "emojies_animated_zoom"
      value = jsonNumber {
        value = 0.625000
      }
    }
    jsonObjectValue {
      key = "emojies_send_dice"
      value = jsonArray {
        value = vector[3] {
          jsonString {
            value = "­ƒÄ▓"
          }
          jsonString {
            value = "­ƒÄ»"
          }
          jsonString {
            value = "­ƒÅÇ"
          }
        }
      }
    }
    jsonObjectValue {
      key = "emojies_send_dice_success"
      value = jsonObject {
        value = vector[2] {
          jsonObjectValue {
            key = "­ƒÄ»"
            value = jsonObject {
              value = vector[2] {
                jsonObjectValue {
                  key = "value"
                  value = jsonNumber {
                    value = 6.000000
                  }
                }
                jsonObjectValue {
                  key = "frame_start"
                  value = jsonNumber {
                    value = 62.000000
                  }
                }
              }
            }
          }
          jsonObjectValue {
            key = "­ƒÅÇ"
            value = jsonObject {
              value = vector[2] {
                jsonObjectValue {
                  key = "value"
                  value = jsonNumber {
                    value = 5.000000
                  }
                }
                jsonObjectValue {
                  key = "frame_start"
                  value = jsonNumber {
                    value = 110.000000
                  }
                }
              }
            }
          }
        }
      }
    }
    jsonObjectValue {
      key = "youtube_pip"
      value = jsonString {
        value = "disabled"
      }
    }
    jsonObjectValue {
      key = "qr_login_camera"
      value = jsonBool {
        value = false
      }
    }
    jsonObjectValue {
      key = "qr_login_code"
      value = jsonString {
        value = "disabled"
      }
    }
  }
}
[ 3][t 4][1589452172.100256920][StateManager.cpp:139][#1][!State manager]       Auto set net_type = Other
[ 3][t 4][1589452172.100256920][ConnectionCreator.cpp:540][#1][!ConnectionCreator][&connections]        Receive network flag true with generation 1
[ 3][t 4][1589452172.100256920][ConnectionCreator.cpp:545][#1][!ConnectionCreator][&connections]        Set proxy query token to 0: 1 1
[ 3][t 4][1589452172.101173401][ConnectionCreator.cpp:811][#1][!ConnectionCreator][&connections]        In client_loop: [client:0x15437cee]
[ 3][t 4][1589452172.101173401][ConfigManager.cpp:762][#1][!Recoverer][&config_recoverer]       Successfully connected
[ 3][t 4][1589452172.101173401][ConfigManager.cpp:832][#1][!Recoverer][&config_recoverer]       Wakeup NEVER
[ 3][t 0][1589452172.594933510][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452172.594933510][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452173.595249891][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452173.595249891][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452174.595554829][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452174.595554829][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452175.595907688][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452175.595907688][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:36) util: Writing file status.xml to directory C:\Users\Eion\AppData\Roaming\.purple
(22:29:36) util: Writing file C:\Users\Eion\AppData\Roaming\.purple\status.xml
(22:29:36) util: Writing file prefs.xml to directory C:\Users\Eion\AppData\Roaming\.purple
(22:29:36) util: Writing file C:\Users\Eion\AppData\Roaming\.purple\prefs.xml
(22:29:36) util: Writing file accounts.xml to directory C:\Users\Eion\AppData\Roaming\.purple
(22:29:36) util: Writing file C:\Users\Eion\AppData\Roaming\.purple\accounts.xml
[ 3][t 0][1589452176.596231222][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452176.596231222][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452177.596555471][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452177.596555471][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452178.596883297][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452178.596883297][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452179.597204685][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452179.597204685][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452180.597532749][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452180.597532749][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452181.597852945][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452181.597852945][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452182.598184347][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452182.598184347][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452183.598503113][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452183.598503113][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452184.598833799][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452184.598833799][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452185.599101305][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452185.599101305][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
[ 3][t 0][1589452186.599424601][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
[ 3][t 0][1589452186.599424601][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 1.000000
(22:29:46) prefs: /purple/savedstatus/default changed, scheduling save.
(22:29:46) account: Disconnecting account +6412345678 (02752908)
(22:29:46) connection: Disconnecting connection 08BDF3C0
[ 3][t 4][1589452186.706108093][Td.cpp:3334][#1][!Td][&td_requests]     Receive request 18446744073709551615: close {
}
[ 2][t 4][1589452186.706108093][Td.cpp:3981][#1][!Td]   Close Td in state 2
[ 3][t 4][1589452186.706108093][TdDb.cpp:213][#1][!Td]  Flush all databases
[ 3][t 4][1589452186.707104683][Td.cpp:4474][#1][!Td][&td_requests]     Sending result for request 18446744073709551615: ok {
}
[ 3][t 4][1589452186.707104683][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateAuthorizationState {
  authorization_state = authorizationStateClosing {
  }
}
[ 3][t 0][1589452186.707104683][Client.cpp:276][&td_requests]   End to wait for updates, returning object 18446744073709551615 0b7977f0
[ 2][t 4][1589452186.707104683][Td.cpp:3834][#1][!Td]   Have no request actors
[ 3][t 1][1589452186.707104683][MessagesDb.cpp:1104][#1][!MessagesDbActor]      MessagesDb flushed
[ 3][t 4][1589452186.707104683][Td.cpp:3866][#1][!Td]   Clear Td
[ 3][t 4][1589452186.707104683][NotificationManager.cpp:1583][#1][!Td][&notifications]  Flush pending notifications in 0 notification groups
[ 3][t 4][1589452186.707104683][NotificationManager.cpp:1342][#1][!Td][&notifications]  Flush all pending notification updates with delayed chats from flush_all_notifications
[ 3][t 4][1589452186.707104683][NotificationManager.cpp:1358][#1][!Td][&notifications]  Flush pending updates in 0 notification groups
[ 3][t 4][1589452186.707104683][Session.cpp:353][#1][!Session:1:main]   Close session (external)
[ 3][t 4][1589452186.707104683][Session.cpp:476][#1][!Session:1:main]   Session closed: OK Session:1:main::Connect::Tcp::[149.154.175.56:443] to DcId{1} from [0.0.0.0:10997]
(22:29:46) telegram-tdlib: Destroyed TdTransceiver
[ 2][t 4][1589452186.707104683][Td.cpp:3755][#1][!Td]   ON_ACTORS_CLOSED
[ 3][t 4][1589452186.708103657][Td.cpp:4254][#1][!Td]   Destroy ConfigSharedCallback
[ 3][t 4][1589452186.708103657][TdDb.cpp:221][#1][!Td]  Close all databases
[ 3][t 1][1589452186.708103657][FileDb.cpp:74][#1][!FileDbActor]        FileDb is closed
[ 3][t 4][1589452186.710098267][SqliteConnectionSafe.cpp:41][#1][!TdDbCloseMultiPromiseActor]   Close SQLite database [path:C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678\db.sqlite]
[ 3][t 1][1589452186.709134817][ConcurrentBinlog.cpp:24][#1][!Binlog C:\Users\Eion\AppData\Roaming\.purple\tdlib\+6412345678\td.binlog] Finished closing binlog
[ 2][t 4][1589452186.711095810][Td.cpp:3812][#1][!Td]   ON_CLOSED
[ 3][t 4][1589452186.711095810][Td.cpp:4459][#1][!Td][&td_requests]     Sending update: updateAuthorizationState {
  authorization_state = authorizationStateClosed {
  }
}
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\okcupid.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\okcupid.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\hipchat.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\hipchat.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\trillian.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\trillian.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\instagram.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\instagram.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png': No such file or directory
(22:29:46) connection: Destroying connection 08BDF3C0
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\okcupid.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\okcupid.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\ning.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\hipchat.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\hipchat.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\trillian.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\trillian.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\instagram.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\instagram.png': No such file or directory
(22:29:46) gtkutils: gdk_pixbuf_new_from_file() returned nothing for file C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png: Failed to open file 'C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\whatsapp.png': No such file or directory
(22:29:46) telegram-tdlib: Ignoring response (object id -722616727) as transceiver is already destroyed
(22:29:46) telegram-tdlib: Destroyed TdTransceiverImpl
[ 3][t 4][1589452186.787915707][Td.cpp:3735][#1][!Td]   Receive Td::hangup
[ 2][t 4][1589452186.787915707][Td.cpp:3822][#1][!Td]   Stop Td
[ 3][t 0][1589452186.788886309][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 10.000000
[ 3][t 0][1589452186.788886309][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b797900
[ 3][t 0][1589452186.788886309][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 10.000000
[ 3][t 0][1589452186.788886309][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 0b797800
[ 3][t 0][1589452186.788886309][Client.cpp:270][&td_requests]   Begin to wait for updates with timeout 10.000000
[ 3][t 0][1589452186.788886309][Client.cpp:276][&td_requests]   End to wait for updates, returning object 0 00000000
(22:29:52) util: Writing file prefs.xml to directory C:\Users\Eion\AppData\Roaming\.purple
(22:29:52) util: Writing file C:\Users\Eion\AppData\Roaming\.purple\prefs.xml
(22:29:52) util: Writing file accounts.xml to directory C:\Users\Eion\AppData\Roaming\.purple
(22:29:52) util: Writing file C:\Users\Eion\AppData\Roaming\.purple\accounts.xml
ars3niy commented 4 years ago

Right. The issue here is that you are registering a new account, which I haven't tested so of course it doesn't work. I already had my account when I started writing this plugin, you see :)

EionRobb commented 4 years ago

I've used telegram before with the old plugin, with the same phone number

ars3niy commented 4 years ago

Actually yes, it's more tricky than that. For some reason, telegram tells you you are a new user and need to accept terms of service, even before it asks you for your phone number. It wasn't like that yesterday when you were getting "unauthorized" errors. This looks weird, but I guess I just have to add support for that.

ars3niy commented 4 years ago

Do you want a test case named after you?

ars3niy commented 4 years ago

OK, that it doesn't ask for phone number is not strange, it's normal. Still though, telegram is convinced that you are registering a new account. I wonder what will happen to your existing account once you do that?

ars3niy commented 4 years ago

You can try the latest revision from master branch. Be careful though, I don't know what's going to happen. Will you end up with two accounts on the same phone number? Will the old account disappear?

Thank you for testing, by the way! :)

EionRobb commented 4 years ago

I got the connection error about needing to set the local alias (not all UI's can set this though, you'd be better off using the purplerequest*() api instead) and then it seems to have connected 👍

Got some crashes, so will start up a new issue for them :)

ars3niy commented 4 years ago

Do you have all your contacts and groups? Or is it like a new account?

EionRobb commented 4 years ago

Yeah, a new account. web.telegram.org seems to think it's empty too

ars3niy commented 4 years ago

And can you still use the old account with the other plugin?

BenWiederhake commented 4 years ago

Yeah, a new account. web.telegram.org seems to think it's empty too

Sounds perfect for testing!

EionRobb commented 4 years ago

Whoops, shouldn't have closed this until the switch from the local-alias to the request api is done

ars3niy commented 4 years ago

@EionRobb , regarding those crashes: if you've used group chats in any way, please try the latest snapshot, I fixed a possible memory corruption today

EionRobb commented 4 years ago

Related to the changes in this ticket, I get a warning from PVS-Studio:

td-client.cpp:148 It is possible that 'break' statement is missing in switch statement

The case td::td_api::authorizationStateWaitRegistration::ID: case is missing a break; after the registerUser(). Not sure if that's intentional?

ars3niy commented 4 years ago

Yeah it's because I thought -Wall turns on, you know, all warnings. Apparently it doesn't. It didn't cause a bug. though. UPD: actually, it did. Thanks for catching this.

BenWiederhake commented 4 years ago

Yeah it's because I thought -Wall turns on, you know, all warnings.

For gcc: gcc -Wall -Wextra -pedantic turns on basically all warnings, but not strictly "all".

For clang, clang -Weverything turns on all warnings, including several that you usually don't care about, like inefficiencies in structs or incompatibilities with older C++ standards. So you might try something like clang -Weverything -Weverything -Wno-c++98-compat -Wno-padded or something very similar. The warning messages are going to tell you what the exact flags are.

Hope that helps :)