Commit Graph

57 Commits

Author SHA1 Message Date
Tulir Asokan 4a538f77ef gotd: log download response length 2026-03-29 13:11:33 +03:00
Tulir Asokan b43adb6bab gotd: update readme
[skip ci]
2026-03-28 16:58:28 +02:00
Tulir Asokan abae7b2854 gotd: assume any response is an ack 2026-03-28 16:50:51 +02:00
Tulir Asokan 472b9df44c gotd: fix infinite loop if server keeps replying with timeout to download request 2026-03-28 16:50:51 +02:00
Tulir Asokan bfe5999951 chatsync: merge post-login and takeout syncs and refactor everything 2026-03-19 13:13:01 +02:00
Tulir Asokan b1b5745033 gotd: add max duration and log for flood wait 2026-03-19 01:36:24 +02:00
Tulir Asokan 0e45edd1f4 gotd: always set field in logger 2026-03-04 01:59:56 +02:00
Tulir Asokan 7fb4539885 gotd: don't log uploaded bytes 2026-03-03 18:13:32 +02:00
Tulir Asokan 67adededff gotd/message: fix generators and update entity utilities 2026-03-03 15:16:44 +02:00
Tulir Asokan e5914196c5 gotd: update to layer 223 2026-03-03 15:13:10 +02:00
Tulir Asokan 189dbdfc52 gotd: move update dispatcher out of generator 2026-03-03 15:09:05 +02:00
Tulir Asokan 7738fc21f5 handletelegram,gotd: add missing log context 2026-03-03 14:34:02 +02:00
Tulir Asokan 4511c82cb0 gotd: only update server time offset once 2026-03-03 13:16:25 +02:00
Tulir Asokan 6af986ded5 gotd: add time synchronization 2026-02-26 18:24:51 +02:00
Tulir Asokan 52b2373528 dependencies: update 2026-02-16 15:41:08 +02:00
Tulir Asokan e597eace68 login: allow retrying phone codes and 2fa passwords (#131) 2026-02-10 16:49:49 +02:00
Tulir Asokan 78ba8e4d45 gotd: add missing getDifference retries 2026-01-07 16:11:41 +02:00
Tulir Asokan cac1f5acde gotd: retry auth transfers on AUTH_BYTES_INVALID error 2025-12-29 23:15:40 +02:00
Tulir Asokan 56fe704934 gotd: don't log file download responses 2025-12-29 23:15:40 +02:00
Tulir Asokan 7573e3d5a7 gotd: return fatal errors from all getDifference calls 2025-12-18 17:32:51 +02:00
Tulir Asokan a887f26023 gotd: retry non-fatal errors in getDifference calls 2025-12-18 16:48:03 +02:00
Tulir Asokan ced0a2d067 gotd: don't emit duplicate updates for channels 2025-12-18 16:36:23 +02:00
Tulir Asokan 20446d0d7d gotd: fix logging response payload 2025-12-16 17:33:43 +02:00
Tulir Asokan 1a2fd67ee9 gotd: remove extra wrapping in check participant error 2025-12-12 17:26:41 +02:00
Tulir Asokan d6a8e6a648 gotd: don't return run context error from channel state 2025-12-12 16:16:06 +02:00
Tulir Asokan 095bd65d51 gotd: add extra cache for left channels 2025-12-12 16:15:49 +02:00
Tulir Asokan cd9970055f gotd: fix channel membership check not doing anything 2025-12-12 16:15:26 +02:00
Tulir Asokan 3663f91c8a gotd: add more error wrapping around update loop 2025-12-12 16:04:40 +02:00
Tulir Asokan 0c3749a2ca gotd: don't start getDifference for left channels 2025-12-12 15:57:14 +02:00
Tulir Asokan ba4dd48d5a gotd: ensure user is member of channels before starting getDifference loop 2025-12-12 15:45:39 +02:00
Tulir Asokan 4775e67476 client: adjust start/stop logs 2025-12-11 15:29:42 +02:00
Tulir Asokan 43b230148b client: don't drop errors from client.Run() 2025-12-11 15:01:12 +02:00
Tulir Asokan d03260c4a7 gotd/updates: initialize channel state runctx immediately 2025-12-11 14:55:43 +02:00
Tulir Asokan de2e87ed52 client,gotd: remove unnecessary dispatcher wrapper 2025-12-11 14:07:48 +02:00
Tulir Asokan 581ba79c84 handletelegram,gotd: stop get difference polling after leaving channel 2025-12-11 13:56:48 +02:00
Tulir Asokan f80d6de818 gotd: use constants for error strings 2025-12-10 19:39:56 +02:00
Tulir Asokan 69fcbd30ce gotd: don't stop connection on channel error 2025-12-10 19:17:50 +02:00
Tulir Asokan 0e3b1b63a9 gotd/updates: stop listening to channel on ChannelForbidden/Invalid 2025-12-10 19:14:08 +02:00
Tulir Asokan 7f13284b59 gotd: remove redundant closures and improve logs on disconnect 2025-12-10 18:34:07 +02:00
Tulir Asokan 4268ee9909 gotd/transport: add default read/write deadlines 2025-12-10 18:33:37 +02:00
Tulir Asokan 14b3b1fed7 handletelegram: adjust some message handling code 2025-12-06 01:02:55 +02:00
Tulir Asokan 2cac8f8b4a client,gotd: refactor connection event handling
This might cause regressions if the onSession handler was load bearing
2025-12-04 14:53:35 +02:00
Tulir Asokan c83a361c0b gotd: reduce unnecessary debug logs 2025-12-04 14:44:13 +02:00
Tulir Asokan 04a10f361a gotd: skip broken manager test 2025-12-03 17:11:20 +02:00
ip75 abd5d058ff gotd: add filename to AudioDocumentBuilder
Cherry-picked from https://github.com/gotd/td/commit/52e0fcb1f655e7c1c09ae45e41fa333422cc4cab
2025-12-03 17:11:20 +02:00
Oleksii Kyslytsia 09185e8e53 gotd: handle all login token response types in QR login
Cherry-picked from https://github.com/gotd/td/commit/4c22747e9a0299b457f45084c3dbcbcbb5a7a5e7
2025-12-03 17:11:20 +02:00
Vadim Tertilov 097211cba1 gotd: add fallback handlers
Cherry-picked from https://github.com/gotd/td/commit/3238f7e7d3623ecd3648e2124f962c4ea0d03134
2025-12-03 17:11:20 +02:00
Tulir Asokan 55f8d1423b gotd: update hash computing sort 2025-12-03 17:11:20 +02:00
Tulir Asokan 66b84a7b44 gotd: update to layer 218 2025-12-03 17:11:20 +02:00
Tulir Asokan b38c3cc935 gotd: invoke with layer every time
Cherry-picked from upstream PR 1640. The reason is that tracking whether
the Telegram servers received our layer number is hard, so it's more
reliable to just always send it.
2025-12-03 17:11:19 +02:00