Commit Graph

189 Commits

Author SHA1 Message Date
levlam
8f433070df Minor fixes. 2022-08-14 15:04:08 +03:00
levlam
2e687480c0 Allow premium emoji in Saved Messages. 2022-08-01 01:53:36 +03:00
levlam
fc72eeaff7 Skip more types of empty entities. 2022-07-31 00:44:51 +03:00
levlam
2c9e1767dd Ignore empty entities loaded from database. 2022-07-31 00:34:30 +03:00
levlam
8f81a46ede Allow some new characters in hashtags. 2022-07-29 16:23:05 +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
84202b5554 Add limit on the total number of entities in secret chat messages. 2022-07-27 21:28:43 +03:00
levlam
af607bf611 Support spoiler and custom emoji entities in secret chats. 2022-07-27 21:10:18 +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
eef3fe5932 Support custom emoji in parse_html. 2022-07-19 14:13:37 +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
e38615b71e Update layer to 144. 2022-07-01 14:33:59 +03:00
levlam
02396be7eb Allow internal links in bio of non-premium users. 2022-07-16 16:10:06 +03:00
levlam
26fdb92dd8 Minor improvements. 2022-06-28 15:32:05 +03:00
levlam
3f763f6fc5 Add more logging. 2022-06-22 16:15:56 +03:00
levlam
b0b98f8f83 Return bio as formatted text. 2022-06-07 18:28:19 +03:00
levlam
dba308951a Add comments for entity type priorities. 2022-06-06 20:44:44 +03:00
levlam
bf0caca138 Simplify LinkManager::check_link usage. 2022-05-31 01:41:01 +03:00
levlam
0375704460 Use get_input_user instead of have_input_user. 2022-03-28 20:26:28 +03:00
levlam
c9441d78be Allow to send MentionName using TextUrl entities. 2022-03-15 14:49:05 +03:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
8b16cf7271 Make all fields in Dependencies class private. 2022-03-11 15:31:28 +03:00
levlam
a4d80c76b3 Allow middle dot in hashtags. 2022-01-31 02:19:17 +03:00
levlam
d3c712e660 Increase maximum allowed TLD length in email address. 2022-01-30 13:51:28 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
19f1f66eca Support tg-spoiler HTML tag. 2021-12-31 17:15:11 +03:00
levlam
68539fe846 Add textEntityTypeSpoiler. 2021-12-28 20:41:37 +03:00
levlam
20a460aeb3 Update layer to 136. 2021-12-28 17:19:18 +03:00
levlam
29e8df5113 Unify entity variable names. 2021-12-28 18:50:11 +03:00
levlam
ff6615e734 Fix some misprints. 2021-12-23 14:18:32 +03:00
levlam
b060536ae3 Return Result<...> from get_input_user. 2021-12-16 22:46:03 +03:00
levlam
2725f7c58a Move get_link_user_id to LinkManager. 2021-11-24 12:53:38 +03:00
levlam
c66cf3dec6 Use range-based for on arrays/strings if possible. 2021-11-01 01:24:51 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
9b7957c9c6 Minor warning fixes. 2021-10-17 13:07:20 +03:00
levlam
d6f3d9f08a Use error code 400 instead of small error codes. 2021-09-24 10:59:51 +03:00
levlam
41c391f140 Update layer to 133. 2021-09-03 12:27:59 +03:00
levlam
f63196f9fa Improve URL and email matching. 2021-09-09 17:59:24 +03:00
levlam
6beaf41231 Minor improvements. 2021-09-01 20:31:39 +03:00
levlam
5c2441021e Add fast path in remove_invalid_entities. 2021-08-18 21:37:31 +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