Commit Graph

387 Commits

Author SHA1 Message Date
Tulir Asokan 76e06d4a33 emojis: initialize maps lazily
Closes #99
2025-12-07 21:24:26 +02:00
Tulir Asokan 10f1583da9 login: add support for bot tokens 2025-12-07 20:06:30 +02:00
Tulir Asokan 48fed1c026 login: refactor to share more code 2025-12-07 20:02:19 +02:00
Tulir Asokan abb4671a16 client: add shortcut field for user login metadata 2025-12-07 20:02:19 +02:00
Tulir Asokan 96b2afeed1 dbmeta: remove disallowed fields in ghosts 2025-12-06 15:27:51 +02:00
Tulir Asokan d5f87d2ec1 all: add support for topics and refactor other things 2025-12-06 15:27:51 +02:00
Tulir Asokan 14b3b1fed7 handletelegram: adjust some message handling code 2025-12-06 01:02:55 +02:00
Tulir Asokan 16a57d78ac handletelegram: flatten service message handling 2025-12-05 23:51:17 +02:00
Tulir Asokan 548672d243 client: simplify IsLoggedIn check 2025-12-05 23:50:44 +02:00
Tulir Asokan ef23946cbc store: remove redundant index 2025-12-05 23:45:41 +02:00
Tulir Asokan 9b2b691afd handletelegram: resync channel on update event 2025-12-05 23:29:12 +02:00
Tulir Asokan c04866c854 reactions: flatten poll code 2025-12-05 15:39:00 +02:00
Tulir Asokan fa28593635 handlematrix: don't block read receipt handler on reaction poll 2025-12-05 15:39:00 +02:00
Tulir Asokan 9dd8f30480 handlematrix: fix reaction polling logic
Only supergroups need it. The map also needed a lock
2025-12-05 14:55:52 +02:00
Tulir Asokan 19c3121e77 login*: apply zap log level shifting 2025-12-04 16:32:26 +02:00
Tulir Asokan 6232a27881 startchat: don't allow starting chat without access hash 2025-12-04 16:13:04 +02:00
Tulir Asokan 526903cb7c userinfo: refactor GetUserInfo and remote profile handling 2025-12-04 15:39:46 +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 c6dd85040c client: fix parsing username message links 2025-12-03 23:23:07 +02:00
Tulir Asokan 08a2fe9753 chatinfo: refactor processing group chat info 2025-12-03 22:34:13 +02:00
Tulir Asokan 2580e28bee media: refactor sticker conversion 2025-12-03 22:15:59 +02:00
Tulir Asokan b7e5078053 chatinfo: ensure own member is always added 2025-12-03 17:44:18 +02:00
Tulir Asokan 8bef95e237 chatinfo,backfill,tomatrix: downgrade unnecessary warnings 2025-12-03 17:11:20 +02:00
Tulir Asokan 04a10f361a gotd: skip broken manager test 2025-12-03 17:11:20 +02:00
Tulir Asokan fed5752f38 handletelegram: don't return errors from message converter 2025-12-03 17:11:20 +02:00
Tulir Asokan 35c161185c directdownload,tomatrix: add missing nil checks 2025-12-03 17:11:20 +02:00
Tulir Asokan 1ecb9e8b64 login*: set device config on login clients 2025-12-03 17:11:20 +02:00
Tulir Asokan 2004085312 connector: fix import ordering 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 8e7a7db85f humanise: update error list and move generator 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
1Conan b9d19a3aad handlematrix: implement RoomAvatarHandlingNetworkAPI 2025-11-26 01:27:41 +08:00
1Conan 74a5dfccd5 handlematrix: implement RoomNameHandlingNetworkAPI 2025-11-26 01:25:50 +08:00
Conan b3f9bfb5b3 handlematrix: implement group chat deletes (#126) 2025-11-20 01:22:02 +08:00
Nick Mills-Barrett ca46d36998 media: default unknown media mime to application/octet-stream
Keeps the photo jpeg default but only for photos so we don't incorrectly
flag unknown extensions as jpegs.
2025-11-18 11:22:39 +00:00
Conan 3aa7bdfa91 handlematrix: fix delete chat (#125) 2025-10-28 02:34:24 +08:00
Tulir Asokan 14f40abeca config: update default saved message avatar 2025-10-19 23:37:16 +03:00
Conan b1f3c4c1db handlematrix: Implement DeleteChatHandlingNetworkAPI (#122) 2025-10-07 21:26:10 +08:00
Tulir Asokan 4410415776 chatinfo: flag group resyncs as excluded from timeline 2025-10-01 16:17:06 +03:00
Adam Van Ymeren a38c3e5d00 resync: resync portals upon viewing if they haven't been synced in the last 24h (#124) 2025-09-25 12:34:41 -07:00
Tulir Asokan eb5bfb4666 chatinfo: set power level for disappearing timer event 2025-09-17 14:43:53 +03:00
Tulir Asokan fcace69cbd capabilities: fix definition of a month 2025-09-17 00:17:14 +03:00
Tulir Asokan f48737c894 capabilities: fix disappearing timer capability 2025-09-16 23:04:31 +03:00
Tulir Asokan d359bafb53 connector: rename files to be more consistent with other bridges 2025-09-16 22:47:48 +03:00
Tulir Asokan 44be515705 matrix: use Normalize instead of manually changing disappearing type 2025-09-16 22:43:22 +03:00