Commit Graph

513 Commits

Author SHA1 Message Date
levlam
f99fb4fc06 Delete events from callback before forgetting them in TQueue. 2022-12-20 16:37:22 +03:00
levlam
02ff843bbb Add internalLinkTypeUserToken. 2022-12-01 17:42:57 +03:00
levlam
6464cff5ef Fix warning. 2022-11-23 23:14:51 +03:00
levlam
5945cc9b70 Add TQueue::clear. 2022-11-08 17:04:45 +03:00
levlam
54799d0024 Support forum message links in getInternalLinkType. 2022-11-04 14:56:25 +03:00
levlam
0bf3e7f0e6 Treat usernames of length 4 as valid. 2022-10-25 19:25:15 +03:00
levlam
6a16492266 Support can_manage_topics administrator right and chat permission. 2022-10-23 13:20:53 +03:00
levlam
897032e0fd Add support for multiple usernames. 2022-10-12 21:04:18 +03:00
levlam
738f0493b1 Fix test. 2022-10-26 08:53:09 +03:00
levlam
f12ca7fbcb Move test's KDF3 out of namespace td. 2022-10-21 06:31:49 +03:00
levlam
ee28a37906 Minor improvements. 2022-10-12 15:59:58 +03:00
levlam
39d2ac80b0 Remove unused ActorId methods. 2022-10-01 11:29:09 +03:00
levlam
bc3ea3e123 Add fallback_url to internalLinkTypeInstantView. 2022-09-26 01:48:06 +03:00
levlam
faa738d6a9 Keep only Slice overload of utf8_utf16_substr. 2022-09-22 12:08:34 +03:00
levlam
b76a920db8 Open Telegraph links in instant view. 2022-09-16 13:51:52 +03:00
levlam
0025c4164b Add internalLinkTypeInstantView. 2022-09-16 01:30:54 +03:00
levlam
1ac2dfef30 Replace ConcurrentScheduler::init with constructor. 2022-09-14 15:06:52 +03:00
levlam
e8d78263b9 Support new authorization flow in tdclient test. 2022-09-08 08:48:11 +03:00
levlam
f6a2ecdded Inline tdlibParameters in setTdlibParameters. 2022-09-07 22:19:08 +03:00
levlam
287cceb162 Remove separate authorizationStateWaitEncryptionKey. 2022-09-07 21:27:23 +03:00
levlam
e595730735 Support t.me subdomains. 2022-09-02 16:34:05 +03:00
levlam
4543c485a7 Optimize fix_url. 2022-08-20 13:44:55 +03:00
levlam
4206246b0c Simplify match_url code. 2022-08-20 11:34:21 +03:00
levlam
0d2ddc2d56 Allow only domain symbols in user data after first dot to improve performance. 2022-08-19 21:01:39 +03:00
levlam
31a4608463 Fix fix_formatted_text test. 2022-08-19 15:05:49 +03:00
levlam
c5b258f097 Explicitly pass options to get_simple_config_*. 2022-08-18 21:45:29 +03:00
levlam
8f81a46ede Allow some new characters in hashtags. 2022-07-29 16:23:05 +03:00
levlam
e3ae8957bb Support addemoji links. 2022-07-27 19:58:58 +03:00
levlam
d4b59bda87 Add internalLinkTypeRestorePurchases. 2022-07-25 12:06:32 +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
07b7faf66c Reduce run time of some tests. 2022-07-28 00:15:18 +03:00
levlam
c50e05db27 Add helper for td_api::chatAdministratorRights creation. 2022-07-04 18:38:34 +03:00
levlam
2472e13f7f Add internalLinkTypeBotStart.autostart. 2022-07-01 16:21:29 +03:00
levlam
ebebe0300c Move promise_send_closure to PromiseFuture.h. 2022-06-28 14:02:14 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
da2e504566 Remove Promise operators. 2022-06-27 03:59:23 +03:00
levlam
513da45a8f Use free-standing function to create event promises. 2022-06-27 02:57:56 +03:00
levlam
ee926f86a3 Move directory creation and database check to another thread. 2022-06-21 02:02:48 +03:00
levlam
782aa6a2ec Minor fixes. 2022-06-14 16:11:38 +03:00
levlam
5c7f842f72 Actually support targetChatChosen. 2022-06-01 18:35:34 +03:00
levlam
8c59d4bd6d Improve td_api::internalLinkTypeAttachmentMenuBot. 2022-06-01 18:06:49 +03:00
levlam
dfe067e52e Add supported chat types to internalLinkTypeAttachmentMenuBot. 2022-06-01 17:12:53 +03:00
levlam
677c5795a3 Cancel speech recognition by timeout. 2022-05-27 19:07:37 +03:00
levlam
2c44f8c273 Add internalLinkTypePremiumFeatures. 2022-05-23 20:37:15 +03:00
levlam
0909f88bc3 Use int53 for file size in TDLib API. 2022-05-11 17:17:20 +03:00
levlam
0a280c5b0d Support alternative form of invoice links. 2022-05-07 11:28:25 +03:00
levlam
464ef38806 Add internalLinkTypeInvoice. 2022-05-03 17:19:22 +03:00
levlam
1b5798393d Move FloodControlGlobal to tdutils. 2022-06-09 17:12:59 +03:00
levlam
a30ac1c277 Minor improvements. 2022-06-09 16:38:38 +03:00
levlam
da4282a6d9 Add optional administrator_rights to internalLinkTypeBotStartInGroup. 2022-04-16 05:30:23 +03:00
levlam
ff6f165551 Fix "attachment menu" spelling. 2022-04-14 22:56:27 +03:00
levlam
163e739302 Add set_promises/fail_promises helper functions. 2022-04-13 17:40:12 +03:00
levlam
fd00755bec Add internalLinkTypeBotAddToChannel. 2022-04-02 14:51:20 +03:00
levlam
7364334ebe Add internalLinkTypeAttachMenuBot. 2022-04-01 14:00:34 +03:00
alyral
a78245ee69
Add more Settings links (#1884) 2022-03-14 20:13:59 +03:00
levlam
867c95bdb2 Add td_api::internalLinkTypeUserPhoneNumber. 2022-02-18 18:56:58 +03:00
levlam
b2e6da4031 Unify actor_id/actor_shared names. 2022-03-05 14:35:19 +03:00
levlam
5b4bea1fef Add HashMap build time benchmark. 2022-02-11 14:46:30 +03:00
levlam
b8ab910b81 Various improvements. 2022-02-10 23:01:28 +03:00
levlam
bcc2adeb47 Fix includes and formatting. 2022-02-08 00:04:34 +03:00
Arseny Smirnov
86bceb2972 td: replace most of std::unordered_map usages to td::FlatHashMap 2022-02-07 21:21:31 +01:00
levlam
382bd2a066 Add find_url tests. 2022-02-03 15:53:36 +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
90e130f03c Don't use implicitly namespace td in set with position tests. 2022-01-16 22:34:38 +03:00
levlam
338292c278 Don't use implicitly namespace td in string cleaning tests. 2022-01-15 22:56:55 +03:00
levlam
cc82b60b24 Don't use implicitly namespace td in SecureStorage tests. 2022-01-12 21:23:08 +03:00
levlam
e592ca4b83 Make sort in PollManager::get_vote_percentage more stable. 2022-01-11 21:52:29 +03:00
levlam
c2a2cb0055 Don't use implicitly namespace td in MTProto tests. 2022-01-09 12:04:08 +03:00
levlam
687193c8e9 Don't use implicitly namespace td in HTTP tests. 2022-01-08 01:25:42 +03:00
levlam
1769b7b61c Don't use implicitly namespace td in db tests. 2022-01-07 12:51:50 +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
f7588582cd Use at most 7 client threads on OpenBSD to stay within default limit of 128 file descriptors. 2021-12-24 14:11:36 +03:00
levlam
b7ec416a30 Fix handling of privatepost links. 2021-12-13 20:13:43 +03:00
levlam
7bff3ed912 Add SqliteKeyValue::set_all. 2021-12-12 22:34:19 +03:00
levlam
b1f004ab19 Expect SeqNo in tests only if needed. 2021-12-12 15:32:36 +03:00
levlam
5a76413990 Minor improvements. 2021-12-10 00:07:59 +03:00
levlam
cee41e0806 Allow to change tests verbosity level. 2021-11-21 21:51:46 +03:00
levlam
a28b5f2fbb Remove explicit verbosity level changes in tests. 2021-11-21 21:41:11 +03:00
levlam
2b9b9f0c31 Add ThreadIdGuard to tests and tg_cli. 2021-11-18 16:25:37 +03:00
levlam
6238f0fc89 Minor improvements. 2021-11-10 21:09:28 +03:00
levlam
ca7947cf44 Minor improvements. 2021-11-04 12:46:08 +03:00
levlam
81bfbecb18 Add internalLinkTypeUnsupportedProxy. 2021-10-28 21:46:34 +03:00
levlam
c69293e1cc Rename voice chats to video chats. 2021-10-14 15:44:21 +03:00
levlam
e6c4bc6ca4 Fix ClientManager without EventFd. 2021-10-25 08:03:18 +03:00
levlam
0c1469f7c6 Fix TransparentProxy::Callback. 2021-10-22 19:59:15 +03:00
levlam
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
44a186c7c1 Minor improvements. 2021-10-18 19:26:14 +03:00
levlam
a160241db7 Improve NetQueryCreator constructor. 2021-10-06 18:47:32 +03:00
levlam
61c3a2bcf5 Remove TD_EXPERIMENTAL_WATCH_OS. 2021-09-24 13:41:22 +03:00
levlam
626caad19a Create database before attaching it. 2021-09-22 20:17:37 +03:00
levlam
a0cc1be3e6 Add allow_creation parameter to SqliteDb::init. 2021-09-22 19:04:56 +03:00
levlam
f073c790c5 Make DbKey required to construct SqliteConnectionSafe. 2021-09-22 17:20:10 +03:00
levlam
2008290425 Remove old way to init SqliteDb. 2021-09-22 17:05:52 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
41c391f140 Update layer to 133. 2021-09-03 12:27:59 +03:00