Commit Graph

793 Commits

Author SHA1 Message Date
levlam
ed766a4d2f Add flag messageSendOptions.protect_content. 2021-12-28 18:19:19 +03:00
levlam
a81ab8abba Remove viewSponsoredMessage in favor of viewMessages. 2021-12-27 18:17:02 +03:00
levlam
23d537052e Use unique 53-bit identifiers for sponsored messages. 2021-12-27 16:49:11 +03:00
levlam
5f965a1ea4 Don't try to use "fr-FR" locale, because check for its existence is
broken with musl: https://www.openwall.com/lists/musl/2017/11/08/1.
2021-12-24 15:12:14 +03:00
levlam
a8b22881e0 Improve the name of suggestedActionViewChecksHint. 2021-12-23 20:00:41 +03:00
levlam
dd8b1169b1 Rename the method to endGroupCall. 2021-12-23 13:00:05 +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
28d65e42e6 tg_cli: add user_ids to "log" command. 2021-12-17 19:15:16 +03:00
levlam
cfc254e9b1 tg_cli: fix test_init. 2021-12-16 21:25:54 +03:00
levlam
1bb9b7dfa9 Update clang-format to 13.0.1. 2021-12-10 00:27:13 +03:00
levlam
0c9163975f tg_cli: improve command name. 2021-12-09 21:48:57 +03:00
levlam
229fd5b715 Remove non-working searchMessagesFilterCall and searchMessagesFilterMissedCall. 2021-12-09 15:15:28 +03:00
levlam
831ca4b975 Rename allow_saving_content to has_private_content. 2021-12-06 21:43:55 +03:00
levlam
ab153e306a Allow to search for messages from inaccessible chats. 2021-11-30 15:07:14 +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
30e4350689 Support authentication tokens. 2021-11-24 17:01:02 +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
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
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
084855c0c3 tg_cli: increase OP_BLOCK_COUNT. 2021-12-05 01:00:28 +03:00
levlam
d475b0fc89 tg_cli: add shortcuts for 'sob online'. 2021-12-03 11:20:56 +03:00
levlam
468fcc2564 tg_cli: use '.' as currently opened chat. 2021-11-28 11:49:46 +03:00
levlam
2b9b9f0c31 Add ThreadIdGuard to tests and tg_cli. 2021-11-18 16:25:37 +03:00
levlam
b731414d42 Init some fields just in case. 2021-11-11 17:39:09 +03:00
levlam
47f3363ca8 Improve field names. 2021-11-04 09:52:27 +03:00
levlam
13c76b349d Add td_api::getChatMessageCalendar. 2021-10-30 03:34:49 +03:00
levlam
81bfbecb18 Add internalLinkTypeUnsupportedProxy. 2021-10-28 21:46:34 +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
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
64d572bcbe Allow creation and edit of invite links, requiring approval. 2021-10-09 14:20:48 +03:00
levlam
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
levlam
1e49f6dc13 Use auto as variable type if it is initialized with a cast. 2021-10-20 01:27:02 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
f35afe23c8 Minor warning fixes. 2021-10-18 12:57:13 +03:00
levlam
2ce0be4fe7 Remove getChatStatisticsUrl method. 2021-09-28 19:08:36 +03:00
levlam
5091aa68e3 Allow direct access to TopDialogManager. 2021-09-24 23:17:38 +03:00
levlam
057cee8674 Improve name of the chatActionWatchingAnimations chat action. 2021-09-19 21:40:07 +03:00
levlam
db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam
5fd11e4b7a Add td_api::clickAnimatedEmojiMessage. 2021-09-16 00:41:40 +03:00
levlam
499e903c95 Add chatActionEnjoyingAnimations. 2021-09-15 17:11:44 +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
ded0b57905 Add td_api::getRecentlyOpenedChats. 2021-09-14 14:18:37 +03:00
levlam
f98eeda616 Add flag backgroundTypePattern.is_inverted instead of negative intensity. 2021-09-14 12:53:59 +03:00
levlam
075d004b9f Replace getChatThemes with updateChatThemes. 2021-09-13 15:55:01 +03:00
levlam
5c87fb853e Use int32 as sponsored message ID. 2021-09-10 11:44:50 +03:00
levlam
989b0c26f0 tg_cli: remove unused variable. 2021-09-07 11:40:08 +03:00
levlam
b713d945f7 tg_cli: use synchronous TDLib's method instead of Td. 2021-09-04 12:22:26 +03:00
levlam
86de43a048 Remove useless #include comments. 2021-09-03 23:21:44 +03:00
levlam
b1db807868 Add forwardMessages.only_preview. 2021-08-31 23:37:21 +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
d61b1d9348 Add chatActionChoosingSticker. 2021-08-19 22:43:38 +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
c2028aed4f Add limit on maximum videoNote size. 2021-07-29 23:39:07 +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
1f9c6c7352 Minor improvements. 2021-07-16 18:58:11 +03:00
levlam
d23064812f Simplify rsa_key usage. 2021-07-06 18:31:43 +03:00
Arseny Smirnov
313f0b45df support MSG_WAIT_TIMEOUT 2021-07-06 17:03:31 +03:00
levlam
ff153bef36 Update layer 131. Add screen_sharing_audio_source_id. 2021-07-06 02:33:42 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
6b57121e25 Improve method name. 2021-06-30 19:49:52 +03:00
levlam
158dd22f21 Add td_api::declinePasswordReset. 2021-06-29 05:24:55 +03:00
levlam
12383ea1d2 Add td_api::resetPassword. 2021-06-29 05:16:48 +03:00
levlam
18caf96c54 Add checkPasswordRecoveryCode. 2021-06-28 23:47:54 +03:00
levlam
709afe3f0c Add checkAuthenticationPasswordRecoveryCode. 2021-06-28 22:33:08 +03:00
levlam
3c400f12b4 Support new_password in recoverPassword. 2021-06-28 19:47:23 +03:00
levlam
bb252ab8ed tg_cli: don't reply to outgoing /start messages. 2021-06-23 13:10:20 +03:00
levlam
7e543cf80b Allow to use uploadStickerFile for animated stickers. 2021-06-21 22:25:26 +03:00
levlam
ca7c1e5ada Dump network queries from oldest to newest. 2021-06-20 03:05:58 +03:00
levlam
16f52b59ab Add createNewStickerSet.source. 2021-06-18 18:45:57 +03:00
levlam
843df9e1f7 Remove unneeded td_api::getGroupCallMediaChannelDescriptions. 2021-06-17 21:37:39 +03:00
levlam
84cf82583e Add td_api::checkStickerSetName. 2021-06-17 21:29:07 +03:00
levlam
706647bdbc Add the method getSuggestedStickerSetName. 2021-06-17 20:38:03 +03:00
levlam
4048e5ae95 Enable createNewStickerSet for regular users. 2021-06-17 20:14:48 +03:00
levlam
3941144700 tg_cli: fix FileLog opening. 2021-06-11 17:04:00 +03:00
levlam
c1db660d4a Add suggestedActionCheckPassword. 2021-06-11 02:48:10 +03:00
levlam
aba5b1ab7c Use autoincremented IDs for local backgrounds. 2021-06-10 03:57:58 +03:00
levlam
5188a5b5e7 Allow to set non-local filled backgrounds. 2021-06-09 19:08:47 +03:00
levlam
c91653ba58 tg_cli: start group call screen sharing with different source identifiers. 2021-06-07 19:35:12 +03:00
levlam
89459ca497 Replace getInviteText with getApplicationDownloadLink. 2021-06-04 19:31:18 +03:00
levlam
af33e8343a Improve method name. 2021-06-04 01:17:15 +03:00
levlam
8db4febd4c Minor improvements. 2021-06-02 15:43:56 +03:00
levlam
b074bce314 Add is_my_video_paused. 2021-06-01 20:11:18 +03:00
levlam
76f134c0e7 Add td_api::getInternalLinkType. 2021-06-01 05:41:32 +03:00
levlam
2cb2ecc921 tg_cli: join group call with enabled video. 2021-05-28 18:43:50 +03:00
levlam
bb957644cf Add td_api::backgroundFillFreeformGradient. 2021-05-21 01:49:59 +03:00
levlam
138bf15dec Add getGroupCallMediaChannelDescriptions method. 2021-05-03 21:44:21 +03:00
levlam
8485867fe0 Add toggleGroupCallIsMyVideoEnabled. 2021-05-02 02:40:22 +03:00
levlam
8e0f14bc93 Allow to join group call with enabled/disabled video. 2021-05-01 21:13:51 +03:00
levlam
31c36aaa7a Add td_api::endGroupCallScreenSharing. 2021-04-30 20:21:07 +03:00
levlam
2225e56906 Add startGroupCallScreenSharing. 2021-04-30 19:53:39 +03:00
levlam
6e7c53eb74 Remove legacy groupCall payload types. 2021-04-30 17:49:00 +03:00
levlam
daef481ac0 Add group video calls support. 2021-01-12 17:05:25 +03:00
levlam
7edffa1bc7 Move TsLog out of logging.h. 2021-05-18 17:41:33 +03:00
levlam
674a112bfa Add NullLog.h. 2021-05-18 17:13:26 +03:00
levlam
f72195baab Remove TC_* defines. 2021-05-18 16:55:35 +03:00
levlam
d34680b83f Remove set_log_fatal_error_callback. Add td_set_log_message_callback, deprecate td_set_log_fatal_error_callback. 2021-05-18 04:41:09 +03:00
levlam
41d75d8c99 tg_cli: fix response printing. 2021-05-17 23:41:20 +03:00
levlam
fdeaafa70d tg_cli: always write log to file. 2021-05-17 17:33:26 +03:00
levlam
13a21b4fe2 Make LogInterface::append non-virtual. 2021-05-17 16:18:19 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
29230948c3 Remove redundant LogInterface::rotate overrides. 2021-05-17 02:04:50 +03:00
levlam
a54fa0909b Improve updates on group call leaving. 2021-04-09 18:50:07 +03:00
levlam
5d5f950d2b Support themes in getPaymentForm. 2021-04-07 22:49:09 +03:00
levlam
37cee0d823 Add td_api::setVoiceChatDefaultParticipant. 2021-04-07 16:25:29 +03:00
levlam
4aa5df26bc Use participant_id instead of participant/participant_alias for group call participant identifiers. 2021-04-07 03:30:26 +03:00
levlam
10bc074a1e Support subscription to group call start notification. 2021-04-07 03:04:56 +03:00
levlam
a7c34c5c49 Add td_api::startScheduledGroupCall. 2021-04-07 02:11:14 +03:00
levlam
2241058f85 Allow to create scheduled voice chats. 2021-04-06 02:54:55 +03:00
levlam
02fe7e47e6 Allow to specify title of created voice chats. 2021-04-06 02:13:57 +03:00
levlam
f1b949456b Support tip sending. 2021-03-30 18:45:22 +03:00
levlam
17e8860855 Add paymentForm.id. 2021-03-30 17:18:08 +03:00
levlam
14fc0898ad Support banning and unbanning channels and supergroups. 2021-03-26 04:11:30 +03:00
levlam
206cd55479 Support chat-members in getChatMember. 2021-03-24 23:40:13 +03:00
levlam
54b9760935 Improve getExternalLink methods. 2021-03-16 00:52:37 +03:00
levlam
0339921102 Improve some spelling. 2021-03-15 03:32:14 +03:00
levlam
e2ac80f2ba Add td_api::toggleGroupCallParticipantIsHandRaised. 2021-03-15 01:56:59 +03:00
levlam
a833d5e292 Improve method name. 2021-03-12 19:31:52 +03:00
levlam
0ec4c2084e Add td_api::getGroupCallInviteLink. 2021-03-12 19:29:06 +03:00
levlam
73bed3ed80 Add resetGroupCallInviteHash method. 2021-03-12 18:58:43 +03:00
levlam
9bfd98c08d Add joinGroupCall.invite_hash. 2021-03-12 18:36:55 +03:00
levlam
0fb6c52cd4 Support toggling group call recording. 2021-03-11 22:19:19 +03:00
levlam
67889cdcbc Add td_api::getGroupCallStreamSegment. 2021-03-10 22:50:14 +03:00