Commit Graph

968 Commits

Author SHA1 Message Date
levlam
8339a5818e Add td_api::translateMessage. 2022-01-14 22:28:28 +03:00
levlam
b0ad4e5e62 Add td_api::setChatAvailableReactions. 2022-01-05 16:23:35 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
01fccc430f Use explicit cast instead of 1ll. 2021-12-31 09:36:24 +03:00
levlam
a81ab8abba Remove viewSponsoredMessage in favor of viewMessages. 2021-12-27 18:17:02 +03:00
levlam
ff6615e734 Fix some misprints. 2021-12-23 14:18:32 +03:00
levlam
dd8b1169b1 Rename the method to endGroupCall. 2021-12-23 13:00:05 +03:00
levlam
e71f9f6d75 Remove unneeded includes. 2021-12-22 21:07:42 +03:00
levlam
4f2689d44a Rename expire_date to expiration_date. 2021-12-22 13:57:47 +03:00
levlam
ae1d1867f2 Remove multiple sponsored messages in a chat. 2021-12-21 14:19:48 +03:00
levlam
4e29d0e232 Rename message_ttl_setting to message_ttl. 2021-12-21 14:06:15 +03:00
levlam
81cebe39eb Improve naming of selected message sender in a chat. 2021-12-21 13:49:26 +03:00
levlam
7334b262fb Remove unneeded logging on instance closing. 2021-12-20 21:11:02 +03:00
levlam
93464ccd27 Use request promise in getChatAdministrators. 2021-12-18 22:44:25 +03:00
levlam
b060536ae3 Return Result<...> from get_input_user. 2021-12-16 22:46:03 +03:00
levlam
d75f0a4e94 Move "unix_time" option handling to OptionManager. 2021-12-16 15:18:51 +03:00
levlam
ee629c342b Move setOption handling to OptionManager. 2021-12-16 13:13:14 +03:00
levlam
10505fae72 Move the rest options to OptionManager::get_current_state. 2021-12-16 12:16:09 +03:00
levlam
a333f3fb61 Move getOption handling to OptionManager. 2021-12-16 12:07:32 +03:00
levlam
4254614e97 Move option-related methods to OptionManager. 2021-12-16 01:45:43 +03:00
levlam
191b4ee5d5 Add empty OptionManager. 2021-12-16 01:09:59 +03:00
levlam
83bd3e33d0 Don't use early returns in Td::on_config_option_updated. 2021-12-15 23:25:12 +03:00
levlam
3043421464 Make "session_count" option internal. 2021-12-15 23:20:29 +03:00
levlam
ffdbc8eec0 Use switch by letter in Td::on_config_option_updated. 2021-12-15 23:18:08 +03:00
levlam
1a98ac8004 Don't use min/max as variable names. 2021-12-15 20:55:03 +03:00
levlam
831ca4b975 Rename allow_saving_content to has_private_content. 2021-12-06 21:43:55 +03:00
levlam
fb9bb3cd69 Save and load lists of created public channels. 2021-12-03 20:10:30 +03:00
levlam
03baffcd1f Combine GetCreatedPublicChannels queries. 2021-12-03 15:40:39 +03:00
levlam
f5c65b83ee Add suggestedActionSetPassword. 2021-11-26 16:22:39 +03:00
levlam
10159fbdf1 Add toggleChatAllowSavingContent. 2021-11-25 11:44:51 +03:00
levlam
47d0195c85 Add toggleSessionCanAcceptCalls method. 2021-11-24 17:59:17 +03:00
levlam
fd71b62045 Improve method name. 2021-11-24 14:03:35 +03:00
levlam
0b2207f180 Add td_api::processChatJoinRequests. 2021-11-24 12:02:23 +03:00
levlam
7c0a4117a4 Replace approve/decline with a single method processChatJoinRequest. 2021-11-24 11:33:18 +03:00
levlam
acc43bb0b5 Allow typings by chats and rename updateUserChatAction to updateChatAction. 2021-11-23 14:29:49 +03:00
levlam
993a9e24c4 Remove user_id from reportSupergroupSpam. 2021-11-19 17:12:38 +03:00
levlam
5232774d89 Replace deleteChatMessagesFromUser with deleteChatMessagesBySender. 2021-11-19 15:48:05 +03:00
levlam
6c9b5ebf55 Add td_api::setInactiveSessionsTtl. 2021-11-16 16:04:19 +03:00
levlam
526e7dc631 Add toggleSessionCanAcceptSecretChats. 2021-11-16 15:22:00 +03:00
levlam
10c03c450f Improve MessageSender field names. 2021-11-15 17:25:24 +03:00
levlam
423e82ae2b Add td_api::setChatDefaultMessageSender. 2021-11-15 17:08:37 +03:00
levlam
108fca1e6e Add getChatAvailableMessageSenders. 2021-11-12 17:11:01 +03:00
levlam
53b0cf792a Add thread count to Td creation logging. 2021-12-06 20:11:25 +03:00
levlam
25baedaa34 Move dismiss_suggested_action to SuggestedAction.cpp. 2021-11-26 14:48:43 +03:00
levlam
36d4de747f Move website authorization functions to Account.cpp. 2021-11-16 13:13:06 +03:00
levlam
c64cc8ad26 Move account-related methods to Account.cpp. 2021-11-16 13:02:07 +03:00
levlam
922fd9b17b Pass chat member status as DialogParticipantStatus. 2021-11-15 17:57:00 +03:00
levlam
1a291847d7 Improve get_message_sender_dialog_id. 2021-11-15 13:31:07 +03:00
levlam
5987ca69ff Move get_message_sender_dialog_id to MessageSender.cpp. 2021-11-15 12:07:52 +03:00
levlam
85c30e5dd2 Add check that RequestHandler sends at most one request. 2021-11-12 14:47:51 +03:00
levlam
4762983803 Inline Td::send. 2021-11-12 14:39:04 +03:00
levlam
b731414d42 Init some fields just in case. 2021-11-11 17:39:09 +03:00
levlam
6238f0fc89 Minor improvements. 2021-11-10 21:09:28 +03:00
levlam
a3e9a0be1f Move get_dialog_event_log to separate file. 2021-11-09 16:54:49 +03:00
levlam
b0eca77c9a Improve logging. 2021-11-08 17:11:35 +03:00
levlam
2f1821a6c4 Improve RequestActor td_ private field name. 2021-11-08 15:26:22 +03:00
levlam
616b0e6d6f Improve ResultHandler/NetActor td_ private field name. 2021-11-08 15:20:38 +03:00
levlam
776635e8c5 Simplify result handling. 2021-11-08 14:35:40 +03:00
levlam
5578ecc6b8 Remove NetQuery id from ResultHandler and NetActor. 2021-11-08 14:19:57 +03:00
levlam
47f3363ca8 Improve field names. 2021-11-04 09:52:27 +03:00
levlam
3d827b408f Allow to set "utc_time_offset" option. 2021-11-01 22:42:33 +03:00
levlam
88d7b284b4 Add utc_time_offset option. 2021-11-01 22:32:49 +03:00
levlam
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
13c76b349d Add td_api::getChatMessageCalendar. 2021-10-30 03:34:49 +03:00
levlam
97243b53e4 Allow to create and edit chat invite links with title. 2021-10-27 13:04:34 +03:00
levlam
6893c49be7 Add td_api::getAnimatedEmoji. 2021-10-26 17:59:15 +03:00
levlam
d019d89d39 Add td_api::deleteChatMessagesByDate. 2021-10-25 20:39:22 +03:00
levlam
cf77428fab Add td_api::getChatSparseMessagePositions. 2021-10-15 17:40:30 +03:00
levlam
c69293e1cc Rename voice chats to video chats. 2021-10-14 15:44:21 +03:00
levlam
cbca467991 Adjust dimensions of animated emojis. 2021-10-14 00:18:44 +03:00
levlam
0a9f6b1c91 Add approve/declineCjatJoinRequest. 2021-10-13 23:10:47 +03:00
levlam
1a7f4b4d3e Add td_api::getChatJoinRequests. 2021-10-13 22:33:31 +03:00
levlam
d6502458f5 Allow to get option "is_location_visible". 2021-10-12 22:05:14 +03:00
levlam
64d572bcbe Allow creation and edit of invite links, requiring approval. 2021-10-09 14:20:48 +03:00
levlam
038abf5466 Add sound to messageAnimatedEmoji. 2021-10-05 23:20:49 +03:00
levlam
eb20f82730 Add disable_animated_emoji option. 2021-10-05 17:17:29 +03:00
levlam
d9607b4a46 Use send_closure for Td::close()/destroy() to ensure the correct call order. 2021-10-25 06:47:20 +03:00
levlam
1c59f37ca9 Move some methods inside DialogParticipantsFilter class. 2021-10-23 22:23:59 +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
628a490e2a Use request promise in getBlockedMessageSenders. 2021-10-09 22:05:23 +03:00
levlam
4c803a1a75 Remove uneeded third try in getWebPageInstantView. 2021-10-07 13:00:41 +03:00
levlam
2f4524a949 Return WebPageId through promise. 2021-10-07 12:49:46 +03:00
levlam
557c5d1d4c Use request promise in searchChatRecentLocationMessages. 2021-10-06 14:22:42 +03:00
levlam
11af0a058d Add source to get_message_object. 2021-10-03 14:54:40 +03:00
levlam
49ab7cd53a Use messages.getSearchCounters. 2021-10-03 13:47:50 +03:00
levlam
0455b313b3 Improve testNetwork implementation. 2021-10-02 16:54:01 +03:00
levlam
d1532ef1f8 Improve result handlers storage. 2021-10-02 14:39:20 +03:00
levlam
4f9b35ea72 Use get_contact in importContacts and changeImportedContacts. 2021-09-30 14:18:01 +03:00
levlam
44efa70789 Pass Contact to add_contact. 2021-09-30 13:53:16 +03:00
levlam
665ae9434e Use error code 400 in Td.cpp. 2021-09-29 19:19:24 +03:00
levlam
888bd7988c Add warning on failed to open database. 2021-09-29 17:15:36 +03:00
levlam
90c0f18507 Send authorizationStateClosing when closing before initialization. 2021-09-29 15:41:53 +03:00
levlam
2ce0be4fe7 Remove getChatStatisticsUrl method. 2021-09-28 19:08:36 +03:00
levlam
36cbba4d2c Use request promise in td_api::getCallbackQueryAnswer implementation. 2021-09-27 23:22:10 +03:00
levlam
d882e222a7 Make FileStats fields private. 2021-09-26 12:44:18 +03:00
levlam
9115ba4aa5 Move topChat methods logic to TopDialogManager. 2021-09-25 11:37:32 +03:00
levlam
5091aa68e3 Allow direct access to TopDialogManager. 2021-09-24 23:17:38 +03:00
levlam
d6f3d9f08a Use error code 400 instead of small error codes. 2021-09-24 10:59:51 +03:00
levlam
e212d1293d Send stats.getMessagePublicForwards to the correct DC. 2021-09-24 09:07:38 +03:00
levlam
910f60c145 Use Promise instead of RequestActor in getMessagePublicForwards. 2021-09-23 22:56:38 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
b15244f59d Ensure delay of 0.2 seconds between updateAnimatedEmojiMessageClicked animations. 2021-09-17 19:59:31 +03:00
levlam
5fd11e4b7a Add td_api::clickAnimatedEmojiMessage. 2021-09-16 00:41:40 +03:00
levlam
f197d61c66 Support message viewers-related config options. 2021-09-03 19:06:24 +03:00
levlam
a4f66c69cb Add td_api::getMessageViewers. 2021-09-03 16:14:03 +03:00
levlam
41c391f140 Update layer to 133. 2021-09-03 12:27:59 +03:00
levlam
7d26a30bd0 Move StateManager::State to ConnectionState.h. 2021-09-16 18:23:10 +03:00
levlam
34094328bd Initialize Td::connection_state_ in header. 2021-09-16 17:54:04 +03:00
levlam
ded0b57905 Add td_api::getRecentlyOpenedChats. 2021-09-14 14:18:37 +03:00
levlam
075d004b9f Replace getChatThemes with updateChatThemes. 2021-09-13 15:55:01 +03:00
levlam
78baa7977b Don't inherit Td from NetQueryCallback. 2021-09-10 18:58:36 +03:00
levlam
2062daf9cd Don't wrap updates in NetQuery. 2021-09-10 17:32:39 +03:00
levlam
5c87fb853e Use int32 as sponsored message ID. 2021-09-10 11:44:50 +03:00
levlam
ae6b79d57b Add SponsoredMessageManager. 2021-09-07 15:49:34 +03:00
levlam
546898e199 Replace SetGameScoreRequest with promise. 2021-09-07 12:05:44 +03:00
levlam
5c59a10418 Move game-related methods to GameManager. 2021-09-07 10:45:01 +03:00
levlam
d395c2496e Add empty GameManager. 2021-09-07 10:02:44 +03:00
levlam
96ffd57881 Use Promise isntead of RequestOnceActor to get games high scores. 2021-09-05 10:54:20 +03:00
levlam
7dffe5aabe Use Promise instead of RequestActor in getBackgrounds. 2021-09-03 09:07:18 +03:00
levlam
d2f9c264ca Use promise instead of RequestActor in td_api::getChatThemes. 2021-09-03 08:59:34 +03:00
levlam
b1db807868 Add forwardMessages.only_preview. 2021-08-31 23:37:21 +03:00
levlam
23a4c2c8a8 Return Message objects from send_message/forward_messages. 2021-08-31 22:34:46 +03:00
levlam
c20fd1dd91 Add td_api::setChatTheme. 2021-08-27 19:23:22 +03:00
levlam
83e55b6b56 Add td_api::getChatThemes. 2021-08-27 15:51:50 +03:00
levlam
e3f55a71cd Add td_api::viewSponsoredMessage. 2021-08-25 22:34:18 +03:00
levlam
658d172256 Improve method name. 2021-08-25 20:29:14 +03:00
levlam
723b203c7d Add td_api::getSponsoredMessages. 2021-08-24 23:44:47 +03:00
levlam
b56119951b Support video streaming in group calls. 2021-08-23 16:59:00 +03:00
levlam
2045c131a9 Support video recording in group calls. 2021-08-23 15:29:03 +03:00
levlam
d49fdf3261 Remove offset from getChats and respect app-specified limit. 2021-08-11 15:59:09 +03:00
levlam
c35321b98e Add loadChats method. 2021-08-10 17:52:31 +03:00
levlam
086ec3d2e5 Add td_api::getPhoneNumberInfoSync. 2021-08-30 22:26:02 +03:00
levlam
aaff89a6c3 Make get_document_object methods const. 2021-08-28 14:16:29 +03:00
levlam
bba085318e Return BackgroundType from on_get_background. 2021-08-24 17:13:51 +03:00
levlam
4988e94c02 Don't save pts too often for bots. 2021-08-19 20:36:26 +03:00
levlam
05c9934074 Add MessageThreadInfo.h. 2021-08-12 22:00:27 +03:00
levlam
da3b8f93a0 Hide too big media timestamps. 2021-08-04 09:28:53 +03:00
levlam
45bf232417 Fimd media timestamp entities in find_entities. 2021-08-04 04:26:41 +03:00
levlam
389e92f1f4 Add skip_media_timestamps parameter to get_formatted_text. 2021-07-26 22:48:33 +03:00
levlam
5c0fb88742 Move GetDeepLinkInfoQuery to LinkManager. 2021-08-08 11:26:51 +03:00
levlam
0dc42e4410 Add source to get_message_sender_object. 2021-08-03 01:58:02 +03:00
levlam
d1b985430c Add source to ContactsManager::load_user_full. 2021-08-02 06:14:59 +03:00
levlam
3156492c2f Add source to ContactsManager::load_channel_full. 2021-08-02 05:50:52 +03:00
levlam
c2028aed4f Add limit on maximum videoNote size. 2021-07-29 23:39:07 +03:00
levlam
4ed0b15a41 Add suggested_video_note_* options. 2021-07-28 06:15:57 +03:00
levlam
20a98ad7c9 Support media_timestamp in getMessageLink. 2021-07-26 04:01:10 +03:00
levlam
07630feb8c Add td_api::getSuggestedFileName. 2021-07-24 07:19:22 +03:00
levlam
e0c9efc26b Skip bot command entities if needed. 2021-07-22 05:39:16 +03:00