Commit Graph

8265 Commits

Author SHA1 Message Date
levlam
e50e3e0b3a Add updateChatMember.via_chat_filter_invite_link. 2023-04-02 23:45:27 +03:00
levlam
6198a6a842 Add td_api::getChatFilterChatsToLeave. 2023-04-02 12:40:57 +03:00
levlam
4bf49b246f Add deleteChatFilter.leave_chat_ids. 2023-04-02 12:05:04 +03:00
levlam
7085bc4d8f Pass promise to on_update_dialog_filters. 2023-04-02 11:53:25 +03:00
levlam
890084df51 Add ContactsManager::leave_dialog. 2023-04-02 11:46:38 +03:00
levlam
0ca51e8b79 Use DialogId::get_chat_ids. 2023-04-02 11:24:48 +03:00
levlam
ea27f659e6 Use chatlists.leaveChatlist to delete shareable folders. 2023-04-01 23:24:57 +03:00
levlam
cb2ce5d1de Add td_api::addChatFilterByInviteLink. 2023-03-31 16:48:32 +03:00
levlam
d47bd927fe Add td_api::checkChatFilterInviteLink. 2023-03-31 15:50:49 +03:00
levlam
8b97f76255 Add DialogFilter::get_icon_name_by_emoji. 2023-03-31 15:48:57 +03:00
levlam
715f681651 Add class chatFilterIcon. 2023-03-31 13:34:47 +03:00
levlam
725c7ba5d1 Add DialogFilterInviteLink::is_valid_invite_link. 2023-03-31 12:57:58 +03:00
levlam
6e139200eb Use get_dialog_invite_link/get_dialog_filter_invite_link to generate the links. 2023-03-30 21:25:25 +03:00
levlam
5e14afc9dd Remove superflous checks before calls to get_url_query_hash/slug. 2023-03-30 21:16:03 +03:00
levlam
ced48b910f Remove superflous emptiness checks in get_url_query_hash/slug. 2023-03-30 21:12:54 +03:00
levlam
02a2e23cac Add td_api::internalLinkTypeChatFilterInvite. 2023-03-30 21:11:15 +03:00
levlam
49b9ea2ec1 Add td_api::deleteChatFilterInviteLink. 2023-03-30 19:52:55 +03:00
levlam
a9f862c3c3 Add td_api::editChatFilterInviteLink. 2023-03-30 19:37:01 +03:00
levlam
3fa7e6f2f7 tg_cli: allow to edit shareable filters. 2023-03-30 18:39:51 +03:00
levlam
761bc9c992 Add chatFilter.is_shareable. 2023-03-30 18:23:26 +03:00
levlam
d1c9cacf85 Add td_api::getChatFilterInviteLinks. 2023-03-30 17:15:04 +03:00
levlam
0ec458ebb1 Allow basic groups in createChatFilterInviteLink. 2023-03-30 16:58:24 +03:00
levlam
ea56e6865a Add td_api::reorderActiveBotUsernames. 2023-03-30 16:41:03 +03:00
levlam
93c3b5cc07 Add toggleBotUsernameIsActive. 2023-03-30 15:34:27 +03:00
levlam
3f9b43227c tg_cli: add td_api::setBotProfilePhoto. 2023-03-29 22:45:13 +03:00
levlam
9d88c64718 Add td_api::setBotProfilePhoto. 2023-03-29 21:49:54 +03:00
levlam
62818418ea Add setBotName/getBotName. 2023-03-28 18:42:54 +03:00
levlam
dceeb363d5 Invalidate UserFull for the edited bot. 2023-03-28 18:26:12 +03:00
levlam
92f1d26f08 Allow to edit description of owned bots. 2023-03-28 17:49:48 +03:00
levlam
aec7d5a26f Add userTypeBot.can_be_edited. 2023-03-28 16:26:42 +03:00
levlam
a487c08eca Move logging to DialogFilter::merge_dialog_filter_changes. 2023-03-27 21:40:07 +03:00
levlam
f844179528 Add td_api::createChatFilterInviteLink. 2023-03-27 21:36:44 +03:00
levlam
03819d0322 Move all chatFilter checks to DialogFilter::create_dialog_filter. 2023-03-27 19:08:25 +03:00
levlam
19ac20adc9 Move checks from DialogFilterManager::create_dialog_filter to DialogFilter. 2023-03-27 18:46:01 +03:00
levlam
f12fedd4d6 Add class DialogFilterDialogInfo. 2023-03-27 18:34:25 +03:00
levlam
f4daa4b61a Move dialog filter list to DialogFilterManager. 2023-03-27 17:44:13 +03:00
levlam
9259728d16 Use do_edit_dialog_filter. 2023-03-27 14:16:02 +03:00
levlam
2ef970307b Move get_chat_filter_object and load_dialog_filter to DialogFilterManager. 2023-03-27 14:09:55 +03:00
levlam
0ff733edad Move recommended filters to DialogFilterManager. 2023-03-27 11:50:40 +03:00
levlam
800258fa57 Add DialogFilterManager. 2023-03-27 11:27:17 +03:00
levlam
9a85e4df1c Add td_api::chatFilterInviteLink. 2023-03-24 17:06:09 +03:00
levlam
debf8f5f68 Support shareable filters. 2023-03-24 15:32:47 +03:00
levlam
910c5ee09c Add cryptocurrency price to messageGiftedPremium. 2023-03-21 14:54:36 +03:00
levlam
a45d2de881 Update layer to 158. 2023-03-21 14:11:43 +03:00
levlam
bb28f308ef Always return simple InputPeer. 2023-04-05 20:59:48 +03:00
levlam
55223c394f Fix misprint. 2023-04-03 12:15:44 +03:00
levlam
fb4d0daa2f Improve names of some variables. 2023-04-03 01:24:43 +03:00
levlam
375a024585 Remove redundant lambda creation. 2023-04-02 23:52:36 +03:00
levlam
6bc7c38e5f Add DialogId::get_chat_ids. 2023-04-01 23:37:36 +03:00
levlam
4ee61aae2b Improve error messages and documentation. 2023-03-31 15:01:38 +03:00
levlam
3be730b44a tg_cli: add ChatFilterId class. 2023-03-30 17:23:26 +03:00
levlam
2cac802e07 tg_cli: add InputChatPhoto. 2023-03-29 22:42:19 +03:00
levlam
c95598e5e1 Don't register users and channels for bots. 2023-03-27 12:05:32 +03:00
levlam
007e3d8d11 Fix get_input_peer for bots. 2023-03-27 12:02:39 +03:00
levlam
46a76fa9a8 Add CustomEmojiId::get_custom_emoji_ids. 2023-03-27 00:54:44 +03:00
levlam
881e74accb Add DialogId::get_dialog_ids. 2023-03-27 00:39:38 +03:00
AYMEN Mohammed
17e120d7ec
Fix typos. (#2365)
* Fix typos.

* Fix another typo. (by t.me/Mammad900)
2023-03-26 22:38:14 +03:00
levlam
eb664b4e9f Update version to 1.8.13. 2023-03-25 09:24:10 +03:00
AYMENJD
7d70dcc9a4 Improve authenticationCodeTypeSms documentation. 2023-03-25 09:02:55 +03:00
John Preston
f742a9710d Fix a type on viewMessages method documentation. 2023-03-25 09:01:45 +03:00
levlam
1ce9f9d27c Minor improvements. 2023-03-24 14:14:37 +03:00
levlam
1eb83f09d3 Improve documentation. 2023-03-23 18:52:34 +03:00
levlam
a511f1c56f Improve field names in DialogFilter. 2023-03-23 17:26:24 +03:00
levlam
b718933607 Don't drop is_outgoing message flag. 2023-03-23 16:54:18 +03:00
levlam
23c8ef2f63 Return error 404 from addApplicationChangelog if nothing was added. 2023-03-23 16:53:11 +03:00
levlam
cb27d4bd07 Make DialogFilter fields private. 2023-03-22 23:19:32 +03:00
levlam
f10fb4b6b5 Add and use DialogFilter::get_pinned_dialog_ids(). 2023-03-22 23:09:57 +03:00
levlam
7871a4192a Add DialogFilter::is_dialog_pinned. 2023-03-22 23:05:13 +03:00
levlam
d0593a02c1 Add DialogFilter::can_have_archived_dialogs. 2023-03-22 22:35:37 +03:00
levlam
dc18ce7b0e Add and use DialogFilter::is_dialog_included. 2023-03-22 22:30:00 +03:00
levlam
314dca6757 Fix misprint. 2023-03-22 21:50:07 +03:00
levlam
de8b68a492 Send updateLanguagePackStrings when language pack is loaded for the first time. 2023-03-22 21:40:05 +03:00
levlam
a9ba8f5a6c Reload promo data sequentially. 2023-03-22 19:52:06 +03:00
levlam
511689877c Improve some log messages. 2023-03-22 19:29:33 +03:00
levlam
2bdb2dc371 Load channels from messages. 2023-03-22 19:22:10 +03:00
levlam
66da2bc97e Add more input_channel checks. 2023-03-22 19:17:00 +03:00
levlam
f733e01d76 Add more checks for get_input_channel responses. 2023-03-22 18:35:28 +03:00
levlam
7c3822d932 Add and use ContactsManager::get_input_user_force. 2023-03-22 18:18:35 +03:00
levlam
25047c28cf Use TRY_RESULT_PROMISE for get_input_user. 2023-03-22 17:39:56 +03:00
levlam
d1146a46f2 Add more secret chat checks. 2023-03-22 16:44:52 +03:00
levlam
e4942d9cf7 Add GroupCallManager::can_join_group_calls. 2023-03-22 15:36:45 +03:00
levlam
4a0f5011cb Add some secret chat checks. 2023-03-22 15:05:05 +03:00
levlam
dbf66634cf Add DialogFilter::can_include_dialog. 2023-03-22 14:26:05 +03:00
levlam
4c5651027e Add DialogFilter::set_pinned_dialog_ids. 2023-03-22 14:14:21 +03:00
levlam
d3ef57e961 Add td_api::getSupportName. 2023-03-22 13:54:04 +03:00
levlam
b5df19ae34 Improve DialogFilter variable names. 2023-03-22 13:36:28 +03:00
levlam
ecc57d7b93 Move set_dialog_filters_order to DialogFilter. 2023-03-22 01:24:14 +03:00
levlam
f792137692 Add DialogFilter::need_dialog. 2023-03-22 01:17:07 +03:00
levlam
06940b2817 Add DialogFilter::get_chat_filter_object. 2023-03-22 01:00:54 +03:00
levlam
0c22f267c2 Improve log message. 2023-03-22 00:49:51 +03:00
levlam
54a9f1a554 Completely delete DialogFilter if all chats there are inaccessible. 2023-03-22 00:28:18 +03:00
levlam
18b7ee5e62 Add DialogFilter::set_dialog_is_pinned/include_dialog. 2023-03-21 23:21:19 +03:00
levlam
739bc08a31 Add DialogFilter::remove_dialog_id. 2023-03-21 23:20:33 +03:00
levlam
c5c06a8523 Move get_dialog_filter_ids to DialogFilter. 2023-03-21 22:35:00 +03:00
levlam
bfc0361b02 Move get_dialog_filter_folder_ids to DialogFilter. 2023-03-21 17:02:09 +03:00
levlam
d8a7114a2b Move create_dialog_filter to DialogFilter. 2023-03-21 16:55:07 +03:00
levlam
9acf785389 Move sort_input_dialog_ids to class DialogFilter. 2023-03-21 16:26:06 +03:00
levlam
51c4c1368b Add DialogFilter::for_each_dialog. 2023-03-21 16:12:47 +03:00
levlam
0168d47a8a Add a.t.me Telegram domain. 2023-03-20 16:29:45 +03:00
levlam
1af942de49 Add td_api::resetAuthenticationEmailAddress. 2023-03-20 15:17:51 +03:00
levlam
e47adeab37 Improve email address reset API. 2023-03-20 14:45:11 +03:00
levlam
61a4259bfe Add email address reset infomation to authorizationStateWaitEmailCode. 2023-03-20 01:40:05 +03:00
levlam
f3225b7106 Allow to call resendAuthenticationCode for Firenase SMS. 2023-03-19 00:29:10 +03:00
levlam
200b334f49 Update layer to 156. 2023-03-18 23:30:58 +03:00
levlam
b7d6383de7 Print a warning if a field is marked as nullable erroneously. 2023-03-17 22:43:37 +03:00
levlam
670bff9a01 Send updateUser when user.have_access is changed. 2023-03-17 21:59:22 +03:00
levlam
5563ad4304 Add get_update_user/basic_group/supergroup/secret_chat_object 2023-03-17 21:42:34 +03:00
levlam
c44869f873 Support input*FromMessage. 2023-03-17 18:51:04 +03:00
levlam
5ee4ba2759 Fix warning. 2023-03-17 02:06:45 +03:00
levlam
b6a6c07de5 Add optional source to MultiTimeout::cancel_timeout. 2023-03-17 01:02:30 +03:00
levlam
897319a275 Add more is_bot checks. 2023-03-16 23:38:03 +03:00
levlam
f282e2b6ac Pass NotificationInfo to get_next_notification_id. 2023-03-16 23:11:08 +03:00
levlam
ad08cc1775 PAss NotificationInfo to *notification_id_to_message_id_correspondence. 2023-03-16 23:07:12 +03:00
levlam
7406361444 Improve NotificationInfo field names. 2023-03-16 22:57:14 +03:00
levlam
ea2567f5d0 Move max_notification_message_id to NotificationInfo. 2023-03-16 22:54:03 +03:00
levlam
b01ee666e9 Add struct NotificationInfo. 2023-03-16 22:38:29 +03:00
levlam
96981eed53 Add get_notification_group_info helper. 2023-03-16 20:39:00 +03:00
levlam
b19a1f5ba4 Move scheduled message info into a class. 2023-03-16 20:10:54 +03:00
levlam
c9a1d5bee6 Move read_history_log_event_ids out of Dialog. 2023-03-16 18:21:51 +03:00
levlam
a9e70dcafc Move updated_read_history_message_ids out of Dialog. 2023-03-16 18:05:36 +03:00
levlam
3a1aaa1148 Move suffix load out of Dialog. 2023-03-16 17:54:33 +03:00
levlam
97fa882a8f Move pending_viewed_live_locations out of Dialog. 2023-03-16 16:15:54 +03:00
levlam
0ffd1718be Fix partial location check. 2023-03-16 14:11:41 +03:00
levlam
d26b0f42e8 Fix condition. 2023-03-15 23:51:15 +03:00
levlam
365c639c22 Move pending message views out of Dialog. 2023-03-15 23:45:30 +03:00
levlam
1b23cf0478 Don't use yet_unsent_thread_message_ids_ for bots. 2023-03-15 17:01:38 +03:00
levlam
7d99fc50ed Move yet_unsent_thread_message_ids out of Dialog. 2023-03-15 16:59:23 +03:00
levlam
78d5146188 Move yet_unsent_message_id_to_persistent_message_id out of each Dialog. 2023-03-15 16:50:56 +03:00
levlam
5ee1c751f9 Remove debug_message_op. 2023-03-15 16:26:22 +03:00
levlam
969e239e56 Fix warning. 2023-03-15 15:32:00 +03:00
levlam
add71b25c9 Drop requests after few retries if failed to return profile photos. 2023-03-15 14:00:34 +03:00
levlam
56a93292bb Support multiple retries for getUserProfilePhotos. 2023-03-15 13:51:35 +03:00
levlam
1153e5464d Support multiple getUserProfilePhotos requests. 2023-03-15 13:33:41 +03:00
levlam
e5cb2fa963 Add call_source to register_photo_size. 2023-03-15 00:23:41 +03:00
levlam
0dc9aac724 Add source to PhotoSizeSource::get_unique. 2023-03-15 00:18:34 +03:00
levlam
a4c7d25c69 Ignore invalid partial locations. 2023-03-14 23:56:23 +03:00
levlam
b1f16cffb2 Improve error message. 2023-03-14 23:39:59 +03:00
levlam
387e84004b Ignore invalid polls stored in database. 2023-03-14 23:24:19 +03:00
levlam
4c390b4988 Don't use poll multi-timeouts while closing. 2023-03-14 23:20:05 +03:00
levlam
487ecfc87e Always restart upload when known file prefix decreases. 2023-03-14 22:35:08 +03:00
levlam
4938e6dda7 Fix auth.sentCodeSuccess handling. 2023-03-14 21:45:23 +03:00
levlam
1673d2366b Log real pong/read time. 2023-03-14 15:45:01 +03:00
levlam
28e788995a Fix log message. 2023-03-14 15:30:43 +03:00
levlam
0293189b62 Allow to ignore background updates when file database is used. 2023-03-14 01:50:33 +03:00
levlam
d132c3e50d Add Global::keep_media_order. 2023-03-14 01:48:32 +03:00
levlam
d6faa001e2 Add Global::use_sqlite_pmc. 2023-03-14 01:41:04 +03:00
levlam
47bd6b4ded Don't cancel NotificationManager timeouts while closing. Callbacks will do nothing anyway. 2023-03-13 23:33:31 +03:00
levlam
1ce19c89ed Inline TdDb::binlog_path/sqlite_path. 2023-03-13 22:41:59 +03:00
levlam
201ac65a73 Don't store sqlite_path_ explicitly. 2023-03-13 22:34:23 +03:00
levlam
47c4d50907 Add TdDb::Parameters. 2023-03-13 22:29:56 +03:00
levlam
03e7c4ce7c Improve files_directory checking. 2023-03-13 21:33:35 +03:00
levlam
5b4f29e781 fix database parameters in the database thread, 2023-03-13 21:32:12 +03:00
levlam
367d3eaa2b Move ignore_background_updates() to Td. 2023-03-13 21:13:59 +03:00
levlam
af838647df Explicitly pass use_secret_chats to SecretChatsManager. 2023-03-13 20:35:19 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
835ee52491 Make TdParameters private in Global. 2023-03-13 19:47:38 +03:00
levlam
68336dbefc Add option "ignore_file_names". 2023-03-13 19:19:13 +03:00
levlam
cac5c4467a Replace value of "use_storage_optimizer" option with value of the corresponding TDLib parameter. 2023-03-13 19:10:26 +03:00
levlam
1bd581a66d Use explicit CHECK instead of vector::at. 2023-03-13 18:48:35 +03:00
levlam
32d0433c26 Add "disable_network_statistics" option. 2023-03-13 17:26:23 +03:00
levlam
2baff56b7a Don't store TdParameters in Td. 2023-03-13 16:30:11 +03:00
levlam
7bd211fd82 Improve TdParameters. 2023-03-13 16:06:43 +03:00
levlam
0f45b3bd6e Don't clean TdParameters on closing. 2023-03-13 15:54:05 +03:00
levlam
b373fc6f2b Update scheduled_message_date when message date changes. 2023-03-13 15:43:15 +03:00
levlam
8847638d28 Autostart bots with non-empty message history. 2023-03-11 23:18:24 +03:00
levlam
70bee089d4 Fix watchOS building. 2023-03-10 13:22:18 +03:00
levlam
6c92eaf59e Fix reload_dialog_administrators. 2023-03-10 13:13:57 +03:00
levlam
7d9a443650 Fix compilation error. 2023-03-09 23:12:32 +03:00
levlam
703ef13a86 Fix messageSendOptions processing. 2023-03-09 22:21:24 +03:00
levlam
6c53a61162 Don't process USER_PRIVACY_RESTRICTED errors for bots. 2023-03-09 18:11:12 +03:00
levlam
c2a25b7652 Don't try to reload channel scheduled messages if have no access to them. 2023-03-09 16:56:48 +03:00
levlam
453aecd9af Ignore USER_NOT_PARTICIPANT error when leaving a channel. 2023-03-09 16:51:12 +03:00
levlam
f100399c8e Don't call getDifference explicitly after failed requests. 2023-03-09 16:41:31 +03:00
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