Commit Graph

7992 Commits

Author SHA1 Message Date
levlam
ee3df1d03c Don't try to load broadcast members without being an administrator. 2023-03-09 16:36:33 +03:00
levlam
92837b3bee Reget message to delete it after receiving "MESSAGE_ID_INVALID" from getPollResults. 2023-03-09 15:54:31 +03:00
levlam
95177f4aad Drop last_message_id when the last message is unloaded from memory. 2023-03-09 14:42:26 +03:00
levlam
0c09070ce5 Update version to 1.8.12. 2023-03-08 21:14:44 +03:00
levlam
97968f8956 Add "gift_premium_from_attachment_menu" and "gift_premium_from_input_field" options. 2023-03-08 21:13:29 +03:00
levlam
9260822b6e Add reaction date to addedReaction. 2023-03-08 21:12:45 +03:00
levlam
30ad06aa21 Update layer to 155. 2023-03-08 21:12:09 +03:00
levlam
4b00266a5b Avoid a fatal error in PartManager. 2023-03-08 20:34:23 +03:00
levlam
5cd6b2d853 Handle invalid data index table size. 2023-03-08 19:23:12 +03:00
levlam
e45eaa9939 Handle data parsing errors in ContactsManager. 2023-03-08 19:15:51 +03:00
levlam
57a3773fd6 Call connection_online_update after sending service queries. 2023-03-08 18:27:58 +03:00
levlam
aa5093b361 Don't call Callback::on_read for 0 size. 2023-03-08 18:16:08 +03:00
levlam
f670699c8c Improve logging in SessionConnection. 2023-03-08 18:10:07 +03:00
levlam
b13ab1e148 Avoid some MultiTimeout usages in NotificationManager while closing. 2023-03-08 16:25:58 +03:00
levlam
17540f1c15 Fix type of size parameter in set_known_prefix. 2023-03-08 16:06:08 +03:00
levlam
1d476d15b8 Add more logging on fatal errors. 2023-03-08 14:11:35 +03:00
levlam
29f919415a Add function for logging the whole PartsManager state. 2023-03-08 14:08:17 +03:00
levlam
3b83d77b2d Return parse error if invalid sticker set identifier is found in the database. 2023-03-08 13:45:44 +03:00
levlam
1af9e9fed1 Add more fatal error logging. 2023-03-08 13:40:06 +03:00
levlam
d2b15d353f Add more logging for invalid pointer alignment. 2023-03-08 13:02:17 +03:00
levlam
d157cd3bbb Use safe_promise in FileGenerateManager. 2023-03-08 12:56:49 +03:00
levlam
d2c7584cf4 Fail message parsing immediately if parsed invalid message identifier. 2023-03-08 12:49:22 +03:00
levlam
bce6af3a19 Imrove viewMessages for threads with root messages from albums. 2023-03-07 19:07:12 +03:00
levlam
4803cf970d Universally initialize max_thread_message_id. 2023-03-07 18:22:39 +03:00
levlam
72b6eadd8d tg_cli: disallow '_' as separator. 2023-03-06 21:43:27 +03:00
levlam
a49e63985d Send updateAddChatMembersPrivacyForbidden after successful request response. 2023-03-06 21:42:06 +03:00
levlam
23341647ba Support null updates in get_update_ids. 2023-03-06 21:01:00 +03:00
levlam
e7242b1188 Fix includes. 2023-03-06 20:36:56 +03:00
levlam
d4646d4cd9 Minor improvements. 2023-03-06 16:59:18 +03:00
levlam
6692f9c918 Allow to view additional root thread messages. 2023-03-06 12:35:52 +03:00
levlam
d44351bcd7 Improve error message. 2023-03-05 15:51:00 +03:00
levlam
31be0a5be8 Fix viewMessages.force_read. 2023-03-05 15:49:08 +03:00
levlam
c983eb6eab Fix warning. 2023-03-05 13:12:30 +03:00
levlam
12d04ec684 Rename can_send_messages to can_send_basic_messages. 2023-03-04 21:31:51 +03:00
levlam
040f0a954c Rename share_text to short_description. 2023-03-04 20:31:21 +03:00
levlam
0381558d54 Send td_api::updateAddChatMembersPrivacyForbidden after failed addition of a channel member. 2023-03-03 16:09:29 +03:00
levlam
97248f1432 Send td_api::updateAddChatMembersPrivacyForbidden after failed adding of a user to a basic group. 2023-03-03 15:43:14 +03:00
levlam
b45d56d116 Add updateAddChatMembersPrivacyForbidden. 2023-03-03 14:42:30 +03:00
levlam
dff135fa6c Allow truncated links in updates and event log. 2023-03-03 04:23:46 +03:00
levlam
3dce19ca2b Check that button text isn't empty. 2023-03-02 19:57:11 +03:00
levlam
da974f2e5e Improve view_date documentation. 2023-03-02 19:01:56 +03:00
levlam
aee858338d Avoid unneeded FileStats copying in main thread. 2023-03-02 18:54:09 +03:00
levlam
a2fcf5b8f7 Improve documentation for t.me link creation. 2023-03-02 18:16:36 +03:00
levlam
1fecd55d03 Improve internal link test and fix some link parsing issues. 2023-03-02 18:03:24 +03:00
levlam
672ef60828 Add td_api::getInternalLink. 2023-03-02 16:21:36 +03:00
levlam
235d68e587 Add LinkManager::get_proxy_link. 2023-03-02 02:41:22 +03:00
levlam
319a3f1c39 Add and use LinkManager::get_t_me_url(). 2023-03-01 23:49:22 +03:00
levlam
b7ad8e8068 Return portable tg:// URLs in internalLinkTypeMessage. 2023-03-01 22:14:26 +03:00
levlam
9652b075b6 Disallow numeric invite link hashes. 2023-03-01 21:35:16 +03:00
levlam
86b4213a8c More generic parsing of background fill name. 2023-03-01 21:26:49 +03:00
levlam
69c85f0df8 Move is_background_name_local to BackgroundType. 2023-03-01 16:36:34 +03:00
levlam
3a598036e6 Support file reference repair for Web App files. 2023-02-28 14:11:49 +03:00
levlam
b427a7b9f6 Add send_emoji to get_input_media. 2023-02-27 02:12:21 +03:00
levlam
57655958a9 Add td_api::getBotInfoShareText. 2023-02-27 01:47:55 +03:00
levlam
0c8b9bf555 Add td_api::setBotInfoShareText. 2023-02-27 01:41:46 +03:00
levlam
d7ba7f693b Add td_api::getBotInfoDescription. 2023-02-27 01:33:51 +03:00
levlam
72bebaf3f5 Add td_api::setBotInfoDescription. 2023-02-27 01:00:17 +03:00
levlam
00983863e3 Pass specified emoji in documentAttributeSticker. 2023-02-26 22:40:58 +03:00
levlam
0cc5579aaf Add sponsor_info and additional_info to sponsoredMessage. 2023-02-24 16:02:45 +03:00
levlam
e7da8e88e0 Add td_api::getWebAppLinkUrl. 2023-02-24 15:08:16 +03:00
levlam
c8ebe2aabe Improve Web App and game name checks. 2023-02-24 14:09:47 +03:00
levlam
129de63bea Add td_api::searchWebApp. 2023-02-24 14:07:40 +03:00
levlam
7b07de64e7 Improve field name. 2023-02-23 19:00:12 +03:00
levlam
d8b062b21f Add td_api::internalLinkTypeWebApp. 2023-02-23 18:07:33 +03:00
levlam
1f32ae3dfd Add sending_id to messageSendOptions. 2023-02-23 17:05:43 +03:00
levlam
439dd7c2ca Add td_api::messageViewers. 2023-02-23 15:15:10 +03:00
levlam
b27eeda8bd Add authorizationStateWaitPassword.has_passport_data. 2023-02-22 15:59:36 +03:00
levlam
b4a86fb299 Add MessageWebViewWriteAccessAllowed. 2023-02-22 12:24:43 +03:00
levlam
2268ae87a4 Add td_api::webApp. 2023-02-21 22:35:20 +03:00
levlam
670a42885a Fix sticker set deletion. 2023-02-21 21:53:58 +03:00
levlam
46fab0cbac Add inlineQueryResultsButtonTypeWebApp. 2023-02-21 21:22:36 +03:00
levlam
651bb7a156 Add inlineQueryResultsButton. 2023-02-21 20:44:03 +03:00
levlam
ba5643f775 Add document flags. 2023-02-21 14:58:52 +03:00
levlam
466853496b Ignore failed to parse application log events. 2023-02-21 13:38:56 +03:00
levlam
947a3031f3 Fix AppConfig parsing. 2023-02-21 13:34:36 +03:00
levlam
4b7a3dc649 Make StickerSetId storer/parser implementation private. 2023-02-21 12:23:39 +03:00
levlam
acec58e7ef Add addApplicationChangelog. 2023-02-21 12:08:55 +03:00
levlam
862abd1e84 Reregister uploaded by URL WEBP stickers. 2023-02-20 20:40:37 +03:00
levlam
0b502964b3 Remove unneeded include. 2023-02-20 15:10:24 +03:00
levlam
f75c6b6762 Fix uploading of WEBP stickers by URL. 2023-02-20 14:00:54 +03:00
levlam
ba2c797350 Return Ok from setStickerSetThumbnail. 2023-02-16 20:38:19 +03:00
levlam
c3d2ad8c59 Return Ok from addStickerToSet. 2023-02-16 19:50:52 +03:00
levlam
359ec5e66c Add td_api::deleteStickerSet. 2023-02-16 16:17:29 +03:00
levlam
c8c8b63e2b Add AppConfig cache. 2023-02-15 23:33:30 +03:00
levlam
1064fb2d6a Move inputSticker checks to StickersManager::prepare_input_file. 2023-02-14 16:15:13 +03:00
levlam
e8d022e52c Simplify StickersManager::upload_sticker_file. 2023-02-14 16:10:27 +03:00
levlam
7be16c8a68 Move sticker_format out of inputSticker. 2023-02-14 14:59:03 +03:00
levlam
ae0a473cb9 Add td_api::setStickerMaskPosition. 2023-02-10 15:52:25 +03:00
levlam
b895900e75 Simplify td_api::emojiCategory usage. 2023-02-09 22:47:44 +03:00
levlam
8e74b99e13 Add td_api::setStickerKeywords. 2023-02-09 21:43:38 +03:00
levlam
c53b05e4e8 Add td_api::setStickerEmojis. 2023-02-09 20:42:09 +03:00
levlam
4d8fae253e Simplify uploadStickerFile. 2023-02-09 16:05:26 +03:00
levlam
b6de7319d4 Support inputSticker keywords. 2023-02-09 15:23:55 +03:00
levlam
8e2cbeebc1 Add td_api::setStickerSetTitle. 2023-02-08 21:43:09 +03:00
levlam
9871aba024 Add td_api::setCustomEmojiStickerSetThumbnail. 2023-02-08 21:29:54 +03:00
levlam
5bbac9d0b4 Support creation of repainted custom emoji sticker sets. 2023-02-08 20:29:53 +03:00
levlam
58775c5852 Allow to create emoji sticker sets. 2023-02-08 20:01:56 +03:00
levlam
91a13ea705 Allow multiple open/close for the same chat. 2023-02-07 21:45:03 +03:00
levlam
fbea859a11 Add MessageSource to viewMessages. 2023-02-07 21:08:54 +03:00
levlam
f6615189af Update layer to 154. 2023-02-07 14:01:45 +03:00