Commit Graph

67 Commits

Author SHA1 Message Date
Tulir Asokan e6243d8935 imagepack: switch to new shared metadata field 2026-04-27 20:24:10 +03:00
Tulir Asokan 6eacf38d74 tomatrix: use extra field in info for custom fields 2026-04-27 20:24:10 +03:00
Tulir Asokan 8512cfe6a6 commands/imagepack: include pack metadata in sticker info 2026-04-23 14:26:52 +03:00
Tulir Asokan 95db7a6d0d tomatrix: fix default file names 2026-04-13 16:48:19 +03:00
Tulir Asokan 4d46c5ee7c tomatrix: use m.image for bridging document images 2026-04-12 01:03:06 +03:00
Tulir Asokan 0988de1267 tomatrix: consistently add extensions for all files 2026-04-10 20:19:16 +03:00
Tulir Asokan 5c1975808a tomatrix: add extension to unnamed documents from telegram 2026-04-10 20:01:30 +03:00
Tulir Asokan 634cec5ba9 tomatrix: avoid multipart messages 2026-04-10 14:43:37 +03:00
Tulir Asokan 117c5cd0ce tomatrix: always add extension for photos 2026-04-06 18:00:08 +03:00
Tulir Asokan 41f2166feb tomatrix: fix adding per-message profile for channel messages 2026-04-06 00:38:31 +03:00
Tulir Asokan 92fdf7b8e9 all: fix inconsistent method receiver names 2026-04-05 21:22:22 +03:00
Tulir Asokan 0172a5733b tomatrix: add support for partial quotes 2026-04-04 22:37:22 +03:00
Tulir Asokan cbff082e4d config: re-add displayname template
Fixes #1057
2026-04-03 15:09:36 +03:00
Tulir Asokan a44cc41933 tomatrix: bridge live photos as videos 2026-04-01 21:22:58 +03:00
Tulir Asokan 770b3b8d8c gotd: update to layer 224 2026-04-01 21:08:49 +03:00
Tulir Asokan c5cdde83e4 tomatrix: include image mime type in url previews 2026-03-29 13:36:56 +03:00
Tulir Asokan 8bd4ff8f82 tomatrix: use channel ghost if portal not found 2026-03-29 13:36:25 +03:00
Tulir Asokan b695e0b4ea tomatrix: add forward headers 2026-03-17 12:01:20 +02:00
Tulir Asokan 58f40aeba5 userinfo: use min access hashes for avatars 2026-03-15 12:28:14 +02:00
Tulir Asokan 2b1cfae52f tomatrix: fix sticker metadata 2025-12-29 23:25:08 +02:00
Tulir Asokan 769a397a03 tomatrix: don't use portal disappearing timer for incoming messages 2025-12-16 17:32:59 +02:00
Tulir Asokan d5f87d2ec1 all: add support for topics and refactor other things 2025-12-06 15:27:51 +02:00
Tulir Asokan 08a2fe9753 chatinfo: refactor processing group chat info 2025-12-03 22:34:13 +02:00
Tulir Asokan 8bef95e237 chatinfo,backfill,tomatrix: downgrade unnecessary warnings 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 2004085312 connector: fix import ordering 2025-12-03 17:11:20 +02:00
Tulir Asokan f48737c894 capabilities: fix disappearing timer capability 2025-09-16 23:04:31 +03:00
Adam Van Ymeren 9706deb27d media: always give the unsupported notice if we don't yet handle the type 2025-09-12 09:22:43 -07:00
Adam Van Ymeren 233516ca4d media: Don't error on MessageMediaPaidMedia, just bridge unsupported notice 2025-09-12 09:17:17 -07:00
Tulir Asokan 0051042555 database: migrate disappearing timer to standard location (#121) 2025-09-12 18:35:09 +03:00
Tulir Asokan 8341492c9f dependencies: update mautrix-go 2025-08-26 18:07:45 +03:00
Tulir Asokan a7aa96ef2b tomatrix: add more nil safety to media id hashing 2025-07-15 14:53:12 +03:00
Adam Van Ymeren 7a04f298d2 move gotd fork into repo. (#111)
- update to latest telegram layer
- remove some references to fields in tg.Entities that don't exist in
the schema
- originally added here:
https://github.com/beeper/td/commit/820929062a2ba0104397bc01235ab58a9cff780e
  - referenced here
-
https://github.com/mautrix/telegramgo/commit/124f0967ed195b5a380c9bd02e170ada9710dde3
-
https://github.com/mautrix/telegramgo/commit/4205047aab2e0639217148b5d125bfaab668bd8e
2025-06-27 20:03:37 -07:00
Toni Spets a9a267bc0d directmedia: handle webpage previews as well 2025-05-27 14:39:47 +03:00
Tulir Asokan 05b1eb1214 handletelegram: provide stream order in read receipts (#102) 2025-05-27 11:45:39 +03:00
Toni Spets 7e75c8ef83 media: make all media direct downloadable
The only exception is emojis.

Also changed direct download encoding field names to be more generic
when used in mixed manner depending on peer type.

Direct downloads are still somewhat inefficient as they require an API
round trip to succeed but we can cache things in the database if needed.
2025-05-07 06:43:51 +03:00
Tulir Asokan 6347383788 tomatrix: fix refetching channel media when bridging messages 2025-03-27 18:31:48 +02:00
Sumner Evans 1bc3a2538e treewide: add copyright/license notices
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-03-05 10:16:50 -07:00
Sumner Evans 36bb741c68 client: refetch message during conversion if file reference expired
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-02-24 11:45:21 -07:00
Sumner Evans e8ee5f174e connector/tomatrix: include previewed URL in hash
This will hopefully make it so that if the preview gets edited in by
Telegram at a later time, it will be bridged.

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-02-17 14:14:15 -07:00
Sumner Evans 4bef6ea09e connector/tomatrix: add timeout for getting webpage preview
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-01-13 11:00:15 -07:00
Sumner Evans 2743d5375a connector/tomatrix: fix broadcast messages with no From user
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-01-09 17:46:18 -07:00
Sumner Evans c3fc77c2a8 connector: always use channel sender in broadcast rooms and add per-message profile
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-01-09 12:52:43 -07:00
Sumner Evans 487f11ffd7 connector/tomatrix: strip filename unconditionally on stickers
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-01-06 10:44:17 -07:00
Sumner Evans 655cd98f27 connector/tomatrix: fix video stickers
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2025-01-06 10:26:02 -07:00
Sumner Evans 6c68351e1f connector/tomatrix: error early if client is nil
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-12-04 15:21:55 -07:00
Sumner Evans 46a4b68073 connector/tomatrix: fix nil handling again
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-12-04 15:21:55 -07:00
Sumner Evans d6765157ab connector: don't use Part IDs
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-12-02 09:54:12 -07:00
Sumner Evans 463277def0 connector/tomatrix: fix video captions
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-11-12 09:58:06 -07:00