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 |
|
levlam
|
4b0bda767c
|
Add SecretChatLayer.h.
|
2021-07-05 05:42:37 +03:00 |
|
levlam
|
f8f03db0ce
|
Improve error message.
|
2021-06-24 23:11:23 +03:00 |
|
levlam
|
8b87e8ed56
|
Allow pre, TextUrl and TextMention entities, containing only new lines.
|
2021-06-09 20:35:02 +03:00 |
|
levlam
|
3614425c8a
|
Add is_hidden_data_entity function.
|
2021-06-09 19:59:52 +03:00 |
|
levlam
|
d2f575fc1c
|
Ignore FTP links in get_first_url.
|
2021-06-04 21:33:20 +03:00 |
|
levlam
|
a630c87178
|
Add tg URLs parsing.
|
2021-06-03 18:27:40 +03:00 |
|
levlam
|
ce2202b1cc
|
Remove only_urls parameter from find_entities.
|
2021-06-03 15:38:26 +03:00 |
|
levlam
|
c9de490c7f
|
Allow dashes in URLs.
|
2021-06-03 15:21:26 +03:00 |
|
levlam
|
198af82254
|
Move check_url to LinkManager.
|
2021-05-25 02:53:25 +03:00 |
|
levlam
|
a6a4eb6616
|
Don't include SliceBuilder.h in logging.h.
|
2021-05-17 15:21:11 +03:00 |
|
levlam
|
add28462a0
|
Fix Slice underflow.
|
2021-05-14 13:18:52 +03:00 |
|
levlam
|
b48421a7a1
|
Resplit splittable entities before sending them to the server.
|
2021-04-28 22:10:39 +03:00 |
|
levlam
|
8039660cfe
|
Reload objects from server if failed to resolve their dependencies.
|
2021-04-04 03:23:22 +03:00 |
|
levlam
|
f0e7b211c3
|
Use case-insensitive comparison for short mention entities.
|
2021-03-20 22:57:34 +03:00 |
|
levlam
|
578b8a4dec
|
Minor performance improvements.
|
2021-02-14 01:25:17 +03:00 |
|
levlam
|
65b381f7fd
|
Add fast path in fix_formatted_text.
|
2021-02-13 22:45:11 +03:00 |
|
levlam
|
b07a9efb2e
|
Disable SFTP link highlighting.
|
2021-02-03 21:08:01 +03:00 |
|
levlam
|
82f0386e73
|
Move some functions from misc.h to algorithm.h.
|
2021-01-01 16:01:03 +03:00 |
|
levlam
|
52c1da0a70
|
Update copyright year.
|
2021-01-01 15:57:46 +03:00 |
|
levlam
|
905d09d82c
|
Accept non-lowercase end HTML tags.
|
2020-12-19 13:46:22 +03:00 |
|
levlam
|
8afd5a8508
|
Disable commands highlighting in the chat with the Replies bot.
GitOrigin-RevId: 398db6133f1c2f23c4367b240bc35e4c499483c8
|
2020-09-30 04:32:28 +03:00 |
|
levlam
|
bcba0f8f78
|
Bump enitites fix date again.
GitOrigin-RevId: 28b83e168ee6ce10d6da36650d0956c1309cb7c8
|
2020-09-17 17:08:01 +03:00 |
|
levlam
|
b575ed9a98
|
Add static assert for array size.
GitOrigin-RevId: 1f044bd3c05346316d27c7ae0462a2b0d575168a
|
2020-08-23 21:25:06 +03:00 |
|
levlam
|
3de679b560
|
Fix MessageEntity::get_type_priority.
GitOrigin-RevId: 175f6e2f1f97e87309add8314321934d744b0493
|
2020-08-18 11:05:10 +03:00 |
|
levlam
|
cae55c5a54
|
Fix misprint.
GitOrigin-RevId: 0659d2d6949a03234a0951aca8652dec9a692636
|
2020-07-13 23:13:41 +03:00 |
|
levlam
|
8a1ffe0cbb
|
Fix remove_invalid_entities.
GitOrigin-RevId: 6cad36ac6017dcc3870411129a1b0512f9351d17
|
2020-07-13 15:34:56 +03:00 |
|
levlam
|
9cf8aed326
|
Add check debug logging.
GitOrigin-RevId: a58f888b7af480e3e6da2ce668ef2fd5367857da
|
2020-05-17 03:00:48 +03:00 |
|
levlam
|
42f88e3b72
|
Remove whitespaces at the beginning of some entities.
GitOrigin-RevId: b0597524571c15b3ffbfec613cb856bfa6e7a224
|
2020-05-11 01:31:29 +03:00 |
|
levlam
|
f88735b9a9
|
Do not highlight parts of float numbers as bank card numbers.
GitOrigin-RevId: cc58f030c6485c393f115fb89a4e9a5b2e6b40b9
|
2020-05-07 23:11:54 +03:00 |
|
levlam
|
390d66e3d2
|
Improve match_bank_card_numbers.
GitOrigin-RevId: 1df7c2fc487a66ba12e92d80d63e355d1490cef5
|
2020-05-05 03:15:30 +03:00 |
|
levlam
|
06e74cfba9
|
Remove whitespace-only entities added in merge_entities.
GitOrigin-RevId: 8b2dbe05d0758639c4447fbfec038b8350dfda9a
|
2020-04-22 00:57:00 +03:00 |
|
levlam
|
c1a5285b47
|
Fix warning.
GitOrigin-RevId: 040b2879b6f120cc948ad6020f91c8ab5995134e
|
2020-04-21 13:51:17 +03:00 |
|
levlam
|
4e7cd24285
|
Add support for quiz explanation.
GitOrigin-RevId: ab4346fe3abe5c5abd7234d5b4b3937e995494af
|
2020-04-03 23:39:50 +03:00 |
|
levlam
|
f42a955d75
|
Replace some offending characters in all strings.
GitOrigin-RevId: a942e9a71db7b5bc3c1be6b15f9b21d767c3d803
|
2020-04-08 01:23:05 +03:00 |
|
levlam
|
aad96d536e
|
Fix CHECK.
GitOrigin-RevId: 02effd6bbb16e7b84c9df3f47a98dad94844ddc7
|
2020-03-30 15:20:37 +03:00 |
|
levlam
|
6518f0448c
|
Fix warnings.
GitOrigin-RevId: 42ec38520b8ed0a040680df56750493bbe4eccc3
|
2020-03-12 20:34:06 +03:00 |
|
levlam
|
9c67f42682
|
Add td_api::getMarkdownText.
GitOrigin-RevId: b463cc2c92052c552d66d774450ffa7bb4bc132e
|
2020-03-12 06:22:14 +03:00 |
|
levlam
|
ed7e486668
|
Improve parse_markdown_v3 test and fix parse_text_url_entities_v3.
GitOrigin-RevId: 337b87cbb885f92f30c9c95603b0ac37693d104f
|
2020-03-12 01:44:42 +03:00 |
|
levlam
|
ee0e60e097
|
Allow to output FormattedText to StringBuilder.
GitOrigin-RevId: 8ffffb2305ebe531f5dcb9118f9333367afb1238
|
2020-03-11 04:09:23 +03:00 |
|
levlam
|
08a5f1b874
|
Add fast path for ". " in match_urls.
GitOrigin-RevId: 306419ea1e076f527e924721ef6caa4347c955ff
|
2020-03-10 17:53:55 +03:00 |
|
levlam
|
83cf2b3dd1
|
Add text_length function.
GitOrigin-RevId: bf58e5427e0c354e6fdddd4756e67cf7eeaf49a9
|
2020-03-10 17:43:07 +03:00 |
|
levlam
|
08d32673a3
|
Add sort_entities function.
GitOrigin-RevId: 0026fb224c77cd895ed8f5c38a99a267efb95f84
|
2020-03-10 17:38:07 +03:00 |
|
levlam
|
532567a475
|
Resort entities if needed after rtrim.
GitOrigin-RevId: f3124b2dc72e1b7858dde90133c5313025103603
|
2020-03-10 17:22:57 +03:00 |
|
levlam
|
718067e218
|
Remove wrong check from remove_invalid_entities.
GitOrigin-RevId: 843dea6a6668de87287a23532d95e9c6712c5b09
|
2020-03-10 17:06:22 +03:00 |
|
levlam
|
b2a175463f
|
Improve logging on failed check_is_sorted check.
GitOrigin-RevId: 756039b50c69c4b3d5d07ff7b671801726e4a6dc
|
2020-03-10 16:43:09 +03:00 |
|
levlam
|
6417510d51
|
Return all entities in get_message_entities.
GitOrigin-RevId: b08c7a9ab0cfa9a78e450d5cbf3567203abd7d67
|
2020-03-10 03:51:56 +03:00 |
|
levlam
|
1068cac8f0
|
Add synchronous td_api::parseMarkdown method.
GitOrigin-RevId: 89f59eda7076959a6bed9db006f895298e2fd66c
|
2020-03-09 23:55:32 +03:00 |
|
levlam
|
d11882c0cb
|
Prefer continuous ranges as a bank card number.
GitOrigin-RevId: 77eb573fd9580cd79964cecfe879a91178d5a43c
|
2020-03-05 16:56:17 +03:00 |
|
levlam
|
ae5588bf11
|
Make webPage.description a formatted text.
GitOrigin-RevId: b64cf0e915f9fdeeadc8cdee8280fcbb236c92bb
|
2020-03-02 16:05:18 +03:00 |
|
levlam
|
e14d15196c
|
Repait broken entities instead of clearing.
GitOrigin-RevId: 7044b000997b7415f55caa1610c418a76c7ea793
|
2020-02-25 01:46:30 +03:00 |
|