Commit Graph

88 Commits

Author SHA1 Message Date
levlam
73ccba7f0f Make remove_unallowed_quote_entities private to MessageQuote. 2024-04-25 16:30:33 +03:00
levlam
e08cf00efb Remove unused get_formatted_text parameters. 2024-04-23 20:04:38 +03:00
levlam
8e2713ca93 Use get_formatted_text. 2024-04-23 19:43:12 +03:00
levlam
e9beb42444 Add get_formatted_text(string, vector<MessageEntity>). 2024-04-23 19:23:02 +03:00
levlam
03a624903e Move relevant functions to UserManager. 2024-04-02 03:52:34 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
9a9e3be8cf Trim quote from the replied message. 2023-12-04 16:27:15 +03:00
levlam
682df38d96 Add td_api::searchQuote. 2023-11-03 13:51:38 +03:00
levlam
d6b3a77899 Return Slice from get_first_url(). 2023-11-01 22:13:29 +03:00
levlam
1b12428c9a Add truncate_formatted_text function. 2023-10-29 21:22:25 +03:00
levlam
b2b665e8d6 Remove unallowed reply quote entities. 2023-10-29 01:25:21 +03:00
levlam
88199d1865 Skip confirmation in link preview opening for visible URLs. 2023-10-19 13:20:48 +03:00
levlam
070399c89a Add combine_hashes function. 2023-07-27 19:05:15 +03:00
levlam
3861b927ba Remove outdated comment superseded by static_assert. 2023-05-19 14:17:44 +03:00
levlam
896de65c3e Improve field name. 2023-02-11 22:37:43 +03:00
levlam
3f7148407c Keep bot commands and media timestamps in translated text. 2023-01-18 20:45:46 +03:00
levlam
3121757b32 Add functions for conversion between FormattedText and textWithEntities. 2023-01-18 15:38:36 +03:00
levlam
34226ac4ad Recheck UTF-8 in parse_html only if needed. 2023-01-09 12:59:14 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
aa6ed42734 Add class CustomEmojiId. 2022-10-03 01:26:32 +03:00
levlam
f0a89c3dbe Remove process_input_caption in favor of get_formatted_text. 2022-08-15 16:26:51 +03:00
levlam
8b61255387 Add additional parameters to get_formatted_text. 2022-08-15 16:16:50 +03:00
levlam
b1e43bfbd5 Pass FormattedText to get_first_url. 2022-08-15 15:55:48 +03:00
levlam
47c0f387de Add get_formatted_text function. 2022-08-15 15:37:17 +03:00
levlam
2c9e1767dd Ignore empty entities loaded from database. 2022-07-31 00:34:30 +03:00
levlam
a5da79327d Preload and check all custom emoji in secret chats. 2022-07-27 23:47:16 +03:00
levlam
36c6b84ec8 Add remove_premium_custom_emoji_entities. 2022-07-27 23:36:44 +03:00
levlam
e601012e9f Remove known premium emoji from secret chat messages from non-premium users. 2022-07-27 21:52:42 +03:00
levlam
6383e7f1b1 Improve remove_unallowed_entities. 2022-07-27 20:35:40 +03:00
levlam
97ab564e07 Prepare for removing premium custom emoji if have no premium. 2022-07-22 18:11:55 +03:00
levlam
833dfcc9db Remove spoiler and custom emoji entities from messages forwarded to secret chats. 2022-07-22 16:47:58 +03:00
levlam
8e09a83506 Support custom emoji in MarkdownV2. 2022-07-18 23:40:57 +03:00
levlam
fb0689545d Add textEntityTypeCustomEmoji. 2022-07-18 01:03:58 +03:00
levlam
02396be7eb Allow internal links in bio of non-premium users. 2022-07-16 16:10:06 +03:00
levlam
b0b98f8f83 Return bio as formatted text. 2022-06-07 18:28:19 +03:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
a136a9d22b Move methods inside Dependencies class. 2022-03-11 15:10:24 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
68539fe846 Add textEntityTypeSpoiler. 2021-12-28 20:41:37 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
a59a916f21 Fix MessageEntity constructors. 2021-08-13 13:10:54 +03:00
levlam
4b631b16bf Find MediaTimestamp entities in old messages. 2021-08-09 19:37:47 +03:00
levlam
2098f10441 Store media_timestamp in a separate field. 2021-08-06 09:14:52 +03:00
levlam
2605cd374b Add has_media_timestamps. 2021-08-05 05:41:24 +03:00
levlam
da3b8f93a0 Hide too big media timestamps. 2021-08-04 09:28:53 +03:00
levlam
45bf232417 Fimd media timestamp entities in find_entities. 2021-08-04 04:26:41 +03:00
levlam
14cf908017 Implement find_media_timestamps. 2021-07-28 08:30:22 +03:00
levlam
389e92f1f4 Add skip_media_timestamps parameter to get_formatted_text. 2021-07-26 22:48:33 +03:00
levlam
ab71d6a200 Add textEntityTypeMediaTimestamp. 2021-07-26 07:53:36 +03:00
levlam
aa71db8da1 Update message content when has_bots is changed. 2021-07-22 06:54:43 +03:00