Commit Graph

7350 Commits

Author SHA1 Message Date
levlam
24786e05d0 Improve error messages. 2023-01-16 16:55:05 +03:00
levlam
fcb5e068e0 Open main connection before authorization. 2023-01-16 16:43:07 +03:00
levlam
f6168879af Explicitly fail reload attachment menu bot queries. 2023-01-16 15:16:36 +03:00
levlam
14fbdf5928 Forcely load chosen chat from database. 2023-01-13 17:47:08 +03:00
levlam
97cc57a25c Add td_api::sendChosenChat. 2023-01-13 17:16:16 +03:00
levlam
0b54e28467 Add td_api::sendChosenUser. 2023-01-13 17:03:35 +03:00
levlam
4922b0c776 Add messageUserChosen. 2023-01-11 20:03:43 +03:00
levlam
9a2dd58b6f Implement RequestedDialogType. 2023-01-11 19:52:35 +03:00
levlam
1afcc3bcfd Add separate keyboardButtonTypeRequestUser. 2023-01-11 18:31:49 +03:00
levlam
83403d9836 Add keyboardButtonTypeRequestChat. 2023-01-11 16:54:46 +03:00
levlam
06a432a373 Add td_api::messageChatChosen. 2023-01-10 16:20:30 +03:00
levlam
6f3d7ac308 Add td_api::getDefaultProfilePhotoCustomEmojiStickers. 2023-01-10 15:40:52 +03:00
levlam
84077d72dc Add td_api::getDefaultChatPhotoCustomEmojiStickers. 2023-01-10 15:23:07 +03:00
levlam
f0d0ac6b78 Allow to create forum supergroups. 2023-01-09 21:43:51 +03:00
levlam
ad8ecec67c Support separate chat permissions for different media types. 2023-01-06 14:16:34 +03:00
levlam
69760f891a Make DialogParticipant flags 64-bit. 2023-01-06 13:43:46 +03:00
levlam
f638e83e34 Support authentication_token after authorization. 2023-01-06 13:00:21 +03:00
levlam
2cdb35d2fb Support auth.sentCodeSuccess. 2023-01-06 12:53:24 +03:00
levlam
050a11ece7 Update layer to 152. 2023-01-06 12:42:16 +03:00
levlam
758ced943e Don't use Time::now_cached in Session. 2023-01-19 12:27:23 +03:00
levlam
1588f0d687 Return after call to on_error. 2023-01-18 17:10:08 +03:00
levlam
42af57ee05 Support General topic in getMessageThread. 2023-01-17 15:34:31 +03:00
levlam
754ff0fc53 Improve handling of internal options with updates. 2023-01-17 14:24:18 +03:00
levlam
02a4851e12 Fix set_option_empty. 2023-01-17 13:55:51 +03:00
levlam
4408af6643 Improve "id" variable names in FileManager. 2023-01-16 13:30:03 +03:00
levlam
ad8f0c4146 Improve some spelling. 2023-01-16 12:59:43 +03:00
levlam
c508e54a49 Improve message_id variable names in Session. 2023-01-15 23:27:58 +03:00
levlam
8d8f72a17a Fix some lower-case spelling. 2023-01-15 12:00:26 +03:00
levlam
052d5e120b Improve some mixed-case spelling. 2023-01-15 11:25:54 +03:00
levlam
45ff12ca49 Improve PTS/QTS spelling. 2023-01-15 11:05:53 +03:00
levlam
fb935a8de2 Reduce ping timeout in primary non-main-DC connections. 2023-01-15 00:25:22 +03:00
levlam
973df16c88 Improve logging. 2023-01-14 23:08:50 +03:00
levlam
1a732db19e Explicitly fail some promises on closing. 2023-01-14 22:01:35 +03:00
levlam
fb79543d41 Combine getChannel queries with the same channel_id. 2023-01-13 15:42:15 +03:00
levlam
d3690e1502 Merge GetChat queries. 2023-01-13 14:45:53 +03:00
levlam
13e8094aaa Reload contacts if failed to load the from database. 2023-01-13 14:38:36 +03:00
levlam
eed410ce0a Merge getUser queries. 2023-01-13 14:29:47 +03:00
levlam
b1883d357c Add QueryMerger. 2023-01-13 13:09:38 +03:00
levlam
3b6874818a Always wait for mailbox. 2023-01-11 01:08:22 +03:00
levlam
eac1f0a096 Improve config recovery source order. 2023-01-10 20:03:05 +03:00
levlam
eeb73d4eb2 Optimize parsing of argument value in HTML tags. 2023-01-09 17:14:31 +03:00
levlam
137fd3beb9 Replace text in-place in parse_html. 2023-01-09 15:12:14 +03:00
levlam
ac0de06b5f Ensure that PTS/QTS updates are null after processing. 2023-01-09 13:27:28 +03:00
levlam
fd53a81603 Replace text in-place in parse_markdown. 2023-01-09 13:11:45 +03:00
levlam
34226ac4ad Recheck UTF-8 in parse_html only if needed. 2023-01-09 12:59:14 +03:00
levlam
0fb64f97a4 Use StringBuilder to create new string in parse_html. 2023-01-09 12:43:15 +03:00
levlam
2ba41ac279 Explicitly use std::move to return entities. 2023-01-09 10:46:49 +03:00
levlam
4dc554bd08 Avoid some minor string copying in message entity parsing. 2023-01-09 00:48:45 +03:00
levlam
1c037ff0e0 Don't send more than 100 user entities to server. 2023-01-08 23:07:57 +03:00
levlam
d0500988ac Remove checks that status.is_error in ResultHandler::on_error. 2023-01-07 23:36:55 +03:00
levlam
e3951e524c Fix warning. 2023-01-04 17:49:53 +03:00
levlam
3573990d52 Support symbolic links in walk_path. 2023-01-04 17:25:30 +03:00
levlam
4a5b2ac722 Skip returned by server messages, not matching the filter. 2023-01-04 13:18:38 +03:00
levlam
887ddbd88e Improve warnings about changed MessageForwardInfo. 2023-01-04 10:49:53 +03:00
levlam
9834594b16 Don't send parallel ping-server requests. 2023-01-03 15:32:10 +03:00
levlam
62040c8d8e Fix check for use_pfs. 2023-01-03 15:06:12 +03:00
levlam
c06ae49db4 Log if instance wasn't launched for more than 24 hours. 2023-01-03 13:54:49 +03:00
levlam
ab735519a6 Log last used time for auth key. 2023-01-03 12:58:19 +03:00
levlam
5711c6c8eb Add some emptiness checks. 2023-01-02 20:12:15 +03:00
levlam
29c264df59 Log number of unprocessed updateMessageID while closing. 2023-01-02 19:07:48 +03:00
levlam
686fcc1933 Log source for failed to add awaited messages. 2023-01-02 18:05:35 +03:00
levlam
12561229fe Improve logging in on_get_channel_difference. 2023-01-02 17:36:38 +03:00
levlam
0f05e72fa3 Silently ignore PERSISTENT_TIMESTAMP_INVALID errors for channels.getDifference. 2023-01-02 17:06:26 +03:00
levlam
903d994799 Improve punctuation. 2023-01-02 15:38:04 +03:00
levlam
4258030967 Drop cached attachment menu bots when database is deleted. 2023-01-02 13:51:04 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
5ee9c7365b Remove "forum_member_count_min" option. 2022-12-31 00:17:18 +03:00
levlam
b0bfdd2b35 Improve setTdlibParameters errors. 2022-12-30 23:13:40 +03:00
levlam
691941ea10 Revert invalid 439e0863f3. 2022-12-30 22:24:31 +03:00
levlam
93c42f6d7c Update version to 1.8.10. 2022-12-30 12:59:58 +03:00
levlam
6a3dac6730 Split call to destroy_on_scheduler in two to avoid variable tracking size limit. 2022-12-30 11:55:01 +03:00
levlam
9ab6822e19 Fix warning. 2022-12-30 04:31:01 +03:00
levlam
24a67cb67c Send typings to General topic by default in forums. 2022-12-30 04:00:52 +03:00
levlam
e4c8eb376e Fix spoiler in on_upload_message_media_success. 2022-12-30 02:39:31 +03:00
levlam
2a0f211dfe Improve field name. 2022-12-30 01:36:06 +03:00
levlam
3422ab1082 Process updates about pinned forum topics. 2022-12-30 01:06:05 +03:00
levlam
9fb35e8c95 Add td_api::setPinnedForumTopics. 2022-12-29 23:48:19 +03:00
levlam
118c336c01 Add td_api::toggleForumTopicIsPinned. 2022-12-29 23:23:09 +03:00
levlam
b203030e5c Add "pinned_forum_topic_count_max" option. 2022-12-29 22:26:09 +03:00
levlam
86f0de23f5 Improve message-TTL-related log messages. 2022-12-28 21:59:41 +03:00
levlam
90b6403e86 Improve message_auto_delete_time field and class names. 2022-12-28 21:46:16 +03:00
levlam
a77c7d566c Avoid duplicate 't' and 'i' photo sizes. 2022-12-28 20:39:24 +03:00
levlam
6aa4558850 Improve return value of searchCallMessages. 2022-12-28 19:17:25 +03:00
levlam
9663dc98b5 Improve return type of searchChatMessages. 2022-12-28 18:42:11 +03:00
levlam
630101358b Add internalLinkTypeEditProfileSettings. 2022-12-28 18:08:00 +03:00
levlam
1a3789e88d Add internalLinkTypeDefaultMessageAutoDeleteTimerSettings. 2022-12-28 17:58:17 +03:00
levlam
7e1d550870 Fix misprints. 2022-12-28 17:25:51 +03:00
levlam
36fc74ea7c Rename message.ttl to self_destruct_timer. 2022-12-28 17:09:39 +03:00
levlam
1ff40ce132 Rename message TTL to auto-delete timer when appropriate. 2022-12-28 17:02:41 +03:00
levlam
a19f55b116 Rename is_aggressive_anti_spam_enabled to has_aggressive_anti_spam_enabled. 2022-12-27 19:14:37 +03:00
levlam
bb9108ca32 Add internalLinkTypeStickerSet.expect_custom_emoji. 2022-12-27 18:17:49 +03:00
levlam
14989932b7 Improve set_user_profile_photo. 2022-12-27 16:00:43 +03:00
levlam
c05a6d9631 Improve class name. 2022-12-26 23:33:01 +03:00
levlam
6dcc260f2a Ignore photo returned by DeleteContactProfilePhotoQuery. 2022-12-26 22:24:08 +03:00
levlam
206c8275f9 Drop UserFull photos, only if they are unknown. 2022-12-26 22:11:14 +03:00
levlam
3bb9e06f62 Use cached UserFull in ContactsManager::delete_profile_photo. 2022-12-26 22:04:06 +03:00
levlam
27fcd805e1 Remove unneeded calls to update_user/update_user_full. 2022-12-26 21:54:42 +03:00
levlam
d3c070e95e Drop all UserFull photos when profile photo is changed. 2022-12-26 21:51:31 +03:00
levlam
74eb5d6ae4 Always send updates in ContactsManager::delete_my_profile_photo_from_cache. 2022-12-26 21:40:04 +03:00
levlam
604b98696c Fix call to drop_user_photos. 2022-12-26 21:19:51 +03:00