Commit Graph

178 Commits

Author SHA1 Message Date
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
levlam
14cf908017 Implement find_media_timestamps. 2021-07-28 08:30:22 +03:00
levlam
bdbf4db9ff Move fix_entity_offsets to a separate function. 2021-07-28 06:48:52 +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
d985e3cc84 Use preincrement for iterators. 2021-08-04 03:43:48 +03:00
levlam
13d5854e2f Update match_cashtags. 2021-08-03 02:58:12 +03:00
levlam
f327ff1cfd Add comment, why warning is supressed for media albums. 2021-07-26 06:45:53 +03:00
levlam
aa71db8da1 Update message content when has_bots is changed. 2021-07-22 06:54:43 +03:00
levlam
e0c9efc26b Skip bot command entities if needed. 2021-07-22 05:39:16 +03:00
levlam
0e244ea67c Rename need_skip_bot_commands to need_always_skip_bot_commands. 2021-07-22 04:38:15 +03:00
levlam
1d3e72aa9d Improve constant names. 2021-07-05 19:17:26 +03:00