Commit Graph

7895 Commits

Author SHA1 Message Date
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
levlam
8b292e4f85 Ensure that being added FileSource isn't copied. 2023-02-28 14:35:52 +03:00
levlam
3678343a06 Simplify language code check. 2023-02-27 01:17:22 +03:00
levlam
22fdc0258b Use "receive"/"have"/"loaded" instead of "got" and other log message improvements. 2023-02-26 14:22:31 +03:00
levlam
ffcc1719ef Improve log message spelling. 2023-02-26 13:41:49 +03:00
levlam
47724bd4d8 Improve log message spelling. 2023-02-26 13:08:03 +03:00
levlam
9b8ee4df3c Improve FileLoader comment. 2023-02-26 01:18:59 +03:00
levlam
d1f6ae168b Simplify sticker set source logging. 2023-02-25 23:37:50 +03:00
levlam
3979fc122b Allow to create basic groups without other members. 2023-02-24 16:33:14 +03:00
levlam
1543c41f34 Fix ContactsManager::reload_channel. 2023-02-23 12:52:15 +03:00
levlam
c4b7100ad8 Repair unread mention count in channels when a mention is read. 2023-02-22 13:09:24 +03:00
levlam
4b538adbdb Remove redundant Slice copy constructor usages. 2023-02-21 11:21:07 +03:00
levlam
de1c6a0ecd Store last handshake query in string instead of BufferSlice. 2023-02-21 11:02:10 +03:00
levlam
a369025cd3 Improve NetQuery debug. 2023-02-20 13:11:39 +03:00
levlam
bc8811ea82 Simplify MessagesManager::can_unload_message for bots; allow to unload the last message. 2023-02-20 12:40:49 +03:00
levlam
6e0ed42544 tg_cli: remove as_button_id. 2023-02-19 11:21:42 +03:00
levlam
bdbb8613f7 Improve PhotoSize type logging. 2023-02-18 23:14:59 +03:00
levlam
e3fac31061 Log photo date. 2023-02-18 23:09:04 +03:00
levlam
6c38e3c018 Use G()->close_status() instead of manual error. 2023-02-17 16:14:31 +03:00
levlam
3fef62a396 Reuse default_result. 2023-02-17 16:06:38 +03:00
levlam
6cf6f32418 Add Global::ignore_result_if_closing. 2023-02-16 13:35:27 +03:00
levlam
337bdc5f5e Use request promise in getWebPagePreview. 2023-02-15 15:05:37 +03:00
levlam
d9a4e5572f Don't pass default is_optional value to get_json_object_string_field. 2023-02-14 15:21:10 +03:00
levlam
abbeffe964 Improve thumbnail variable names. 2023-02-14 15:10:27 +03:00
levlam
896de65c3e Improve field name. 2023-02-11 22:37:43 +03:00
levlam
6ba394fc41 Add class StickerMaskPosition. 2023-02-09 20:15:21 +03:00
levlam
5a39bb4952 Use error code returned by get_input_file_id. 2023-02-09 18:31:02 +03:00
levlam
7b759a06bc Add StickersManager::get_sticker_input_document. 2023-02-09 17:26:50 +03:00
levlam
ed9df60e1e Update needs_repainting documentation. 2023-02-09 13:29:39 +03:00
levlam
58c4a12ca6 Fix getPremiumStickers. 2023-02-08 18:36:54 +03:00
levlam
7eee3f469a Update clang-format to 16.0.0. 2023-02-08 15:28:36 +03:00
levlam
1e6c3ef93d Don't try to reload data mutiple times without network. 2023-02-06 20:31:17 +03:00
levlam
d4833b7844 Reload autosave settings periodically. 2023-02-06 20:10:27 +03:00
levlam
2260944afe Save autosave settings to database. 2023-02-06 19:53:21 +03:00
levlam
3d0140b3ef Fix SQLite key-value usage. 2023-02-06 15:41:22 +03:00
levlam
5ed1d22d08 Fix watchOS compilation error. 2023-02-06 15:20:09 +03:00
levlam
43e5f2aded Support updateAutosaveSettings in getCurrentState. 2023-02-05 10:04:19 +03:00
levlam
f6616f6ba3 Fix creator in ForumTopicInfo. 2023-02-04 17:59:17 +03:00
levlam
e9aa2fd64b Don't try to check password without checkAuthenticationPassword/recoverAuthenticationPassword query. 2023-02-04 13:36:01 +03:00
levlam
9bf492dbc0 Fix warnings. 2023-02-04 09:55:11 +03:00
levlam
2f46132aa2 Send updateAutosaveSettings. 2023-02-04 03:32:16 +03:00
levlam
6dc48f30da Add td_api::updateAutosaveSettings. 2023-02-03 20:59:32 +03:00
levlam
810b58d55a Check and fix max_video_file_size. 2023-02-03 16:49:17 +03:00
levlam
7556ef4b18 Support telegram_api::updateAutoSaveSettings. 2023-02-03 16:08:44 +03:00
levlam
39f4091ac5 Add td_api::setAutosaveSettings. 2023-02-03 15:58:15 +03:00
levlam
498f507646 Improve class names. 2023-02-03 13:45:51 +03:00
levlam
255d887bce Add td_api::clearAutosaveSettingsExceptions. 2023-02-03 13:07:43 +03:00
levlam
c5c9707837 Add td_api::getAutosaveSettings. 2023-02-03 12:39:23 +03:00
levlam
216b6e1acf Add AutosaveManager. 2023-02-03 10:41:31 +03:00
levlam
ddab8d5dbc Improve translateText documentation. 2023-02-03 00:01:03 +03:00
levlam
3179d35694 Update version to 1.8.11. 2023-02-02 19:19:34 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +03:00
levlam
38b2fbe176 Fix query merge while closing. 2023-02-02 03:15:10 +03:00
levlam
882de6e8e8 Replace unsafe to maintain data_ field with get_data() method. 2023-02-02 03:08:26 +03:00
levlam
3ead2030f6 Improve chat photo animation documentation. 2023-02-01 21:13:41 +03:00
levlam
6be6871b5b Fix error handling in QueryMerger. 2023-02-01 18:56:28 +03:00
levlam
d824cec905 Add get_custom_emoji_stickers_unlimited. 2023-02-01 03:48:06 +03:00
levlam
7596600548 Reload default chat photo custom emoji identifiers. 2023-02-01 02:35:57 +03:00
levlam
783a73b0e6 Fix formatting. 2023-02-01 02:18:02 +03:00
levlam
b067159d78 Improve chat type check. 2023-02-01 02:10:03 +03:00
levlam
b1ea693f1b Don't try to repair empty draft message. 2023-02-01 01:51:41 +03:00
levlam
ec7c72e942 Check chat activness. 2023-02-01 01:48:05 +03:00
levlam
da7c518686 Improve needs_repainting documentation. 2023-02-01 00:57:06 +03:00
levlam
101afa286e Don't check bot_is_member and bot_administrator_rights. 2023-02-01 00:40:39 +03:00
levlam
a347eb4da3 Add ability to check shared with bot user/chat. 2023-01-31 16:52:05 +03:00
levlam
ade5a089e9 Implement ReplyMarkup::check_shared_dialog. 2023-01-31 16:40:51 +03:00
levlam
9d5299820c Add updateNewChatJoinRequest.user_chat_id. 2023-01-31 13:50:40 +03:00
levlam
4d70d1e920 Minor improvements. 2023-01-31 13:33:30 +03:00
levlam
ed32026958 Increase MessageUnsupported version. 2023-01-30 21:47:54 +03:00
levlam
68d7353350 Add listener nullability checks. 2023-01-30 18:21:57 +03:00
levlam
784b46a298 Add td_api::deviceTokenHuaweiPush. 2023-01-30 15:42:15 +03:00
levlam
47fd88b33f Add and use "since_last_open" internal option. 2023-01-30 01:29:33 +03:00
levlam
0469ac0147 Add inputChatPhotoSticker. 2023-01-30 00:35:14 +03:00
levlam
5666925e5b Don't postpone updates during initial getDifference. 2023-01-29 12:49:25 +03:00
levlam
23b345f87c Improve LinkManager::get_external_link_info. 2023-01-28 03:41:17 +03:00
levlam
75dacac872 Add td_api::emojiCategoryTypeChatPhoto. 2023-01-27 15:16:40 +03:00
levlam
25cdd0e6ec Ignore message_thread_id for channel posts. 2023-01-26 01:12:23 +03:00
levlam
a4f61ce47d Add td_api::premiumFeatureRealTimeChatTranslation. 2023-01-25 21:26:09 +03:00
levlam
17f16ce839 Avoid duplicate updateUserStatus updates for self. 2023-01-25 21:00:41 +03:00
levlam
f6485e711e Add StickersManager::get_used_language_codes_string. 2023-01-25 20:25:23 +03:00
levlam
f9b81efe4b Replace result with "Request Aborted" error only if it is successful. 2023-01-25 19:58:23 +03:00
levlam
5cd523408d Asynchronously check local location of all viewed and opened files. 2023-01-25 19:25:04 +03:00
levlam
5a6fb91bd9 Remove unneeded logging. 2023-01-25 17:50:42 +03:00
levlam
2325c5041b Collect statistics about received updates. 2023-01-25 17:48:04 +03:00
levlam
30cdbe69b6 Store emoji groups in the database. 2023-01-25 16:23:34 +03:00
levlam
57548741c4 Send updateNewMessage after file upload has started. 2023-01-25 13:03:57 +03:00
levlam
b02f134798 Add td_api::EmojiCategoryType. 2023-01-24 21:38:53 +03:00
levlam
ae3a96e52d Fix language pack information repair. 2023-01-24 18:34:49 +03:00
levlam
8730fd6f34 Add td_api::getEmojiCategories. 2023-01-24 18:11:02 +03:00
levlam
f51bea81e1 Support search by multiple emojis in getStickers. 2023-01-24 15:15:37 +03:00
levlam
e5b557f55c Improve function name. 2023-01-23 23:46:51 +03:00
levlam
587a882270 Don't remove emoji selectors in search_stickers. 2023-01-23 22:10:23 +03:00
levlam
833c7c30da Allow mutiple emojis in searchStickers. 2023-01-23 21:40:32 +03:00
levlam
e5441b5ed7 Support sticker_type in searchStickers. 2023-01-23 21:07:42 +03:00
levlam
b6fc03e3bb Add StickersManager::reload_found_stickers helper. 2023-01-23 19:58:34 +03:00
levlam
94819c2218 Fix handling of requestPeerTypeBroadcast. 2023-01-23 19:39:30 +03:00
levlam
0feb0f15ce Improve names of methods and message contents related to sharing user/chat with a bot. 2023-01-23 18:19:35 +03:00
levlam
c4568db488 Add more t.me domains for web clients. 2023-01-23 17:43:15 +03:00