Commit Graph

1362 Commits

Author SHA1 Message Date
levlam
47d0195c85 Add toggleSessionCanAcceptCalls method. 2021-11-24 17:59:17 +03:00
levlam
f41be864d0 Add session.can_accept_calls. 2021-11-24 17:33:16 +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
cb7bd82c01 Add chatEventAllowSavingContentToggled. 2021-11-23 16:07:26 +03:00
levlam
5068f585bb Add authenticationCodeTypeMissedCall. 2021-11-23 15:21:22 +03:00
levlam
6143bb1b94 Replace color_replacements with fitzpatrick_type as needed by the latest rlottie version. 2021-11-23 15:01:12 +03:00
levlam
acc43bb0b5 Allow typings by chats and rename updateUserChatAction to updateChatAction. 2021-11-23 14:29:49 +03:00
levlam
2eb5f1195c Add chatActionBarJoinRequest. 2021-11-23 13:06:38 +03:00
Andrea Cavalli
8e13003896 Merge remote-tracking branch 'td/master' 2021-11-22 23:28:02 +01:00
levlam
5e34f07641 Output original name in telegram_api::to_string. 2021-11-21 21:29:43 +03:00
levlam
8f2a09f2cb Add userFullInfo.has_private_forwards. 2021-11-20 22:48:44 +03:00
levlam
a58b4dc302 Fix misprint in documentation. 2021-11-19 17:56:51 +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
b940d2e208 Add inactive_sessions_ttl_days. 2021-11-16 15:39:55 +03:00
levlam
526e7dc631 Add toggleSessionCanAcceptSecretChats. 2021-11-16 15:22:00 +03:00
levlam
b672a7de22 Add session.can_accept_secret_chats. 2021-11-16 12:34:17 +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
Andrea Cavalli
48e3660d2c Merge remote-tracking branch 'td/master' 2021-11-14 22:46:37 +01:00
levlam
108fca1e6e Add getChatAvailableMessageSenders. 2021-11-12 17:11:01 +03:00
levlam
fe8e521a41 Add chat.default_sender_id. 2021-11-12 16:15:19 +03:00
Trumeet
33c689aacc Add missing 'struct' keywords for tdc headers
Some structs do not have typedef aliases, but their references forget to put 'struct' keywords when referencing them, so they cause compiling issues.

This commit adds the missing 'struct' keywords so TDLib C headers could compile successfully.
2021-11-10 19:21:04 +03:00
levlam
ae987f2211 Add inlineKeyboardButtonTypeUser. 2021-11-10 17:14:00 +03:00
levlam
6ace4fdf36 Update layer to 135. 2021-11-09 19:07:55 +03:00
levlam
365965d1fb Improve documentation. 2021-11-08 13:28:44 +03:00
Andrea Cavalli
9c9772868b Merge remote-tracking branch 'td/master' 2021-11-05 16:11:03 +01:00
levlam
8bc413742d Simplify field name. 2021-11-04 13:13:52 +03:00
levlam
e57e938e56 Improve documentation. 2021-11-04 13:01:20 +03:00
levlam
47f3363ca8 Improve field names. 2021-11-04 09:52:27 +03:00
levlam
9d467d1ea5 Add chatEventMemberJoinedByRequest. 2021-11-02 18:05:50 +03:00
levlam
d732789cac Disallow member_limit for links requiring administrator approval. 2021-11-02 17:21:36 +03:00
levlam
5a596fcc48 Reuse chatJoinRequest class. 2021-11-02 17:09:54 +03:00
levlam
32a2e51235 Improve documentation. 2021-11-02 15:25:55 +03:00
levlam
88d7b284b4 Add utc_time_offset option. 2021-11-01 22:32:49 +03:00
Andrea Cavalli
778ca70dd5 Merge remote-tracking branch 'td/master' 2021-11-01 20:12:43 +01:00
levlam
0c1e268706 Don't generate MASK for parsed True fields. 2021-11-01 21:53:23 +03:00
levlam
4533f79338 Don't generate MASK for parsed object/vector fields. 2021-11-01 20:48:06 +03:00
levlam
0522ba178a Remove TlStoreTrue. 2021-11-01 20:02:24 +03:00
levlam
6e8a88be35 Add TlStorerTotString.store_vector_begin. 2021-11-01 19:45:55 +03:00
levlam
f743c782bf Move TlStorerToString to TlStorerToString.h. 2021-11-01 19:21:24 +03:00
levlam
5e43075d3b Add TlStorerToString::store_object_field method. 2021-11-01 18:59:35 +03:00
levlam
a4592bd522 Add messageChatJoinByRequest. 2021-11-01 17:22:42 +03:00
levlam
fd0de189f8 Add pushMessageContentChatJoinByRequest. 2021-11-01 17:17:08 +03:00
levlam
a3b71ca82c Support getChatSparseMessagePositions in secret chats when message database enabled. 2021-11-01 16:30:03 +03:00
levlam
5a82af3f7f Add MessagesDbDialogCalendarQuery. 2021-11-01 13:50:45 +03:00
levlam
7cd7e5afd3 Improve slow_mode_delay documentation. 2021-10-31 23:05:31 +03:00
levlam
d8e3fd2ee6 Improve limit documentation. 2021-10-30 21:50:25 +03:00
levlam
13c76b349d Add td_api::getChatMessageCalendar. 2021-10-30 03:34:49 +03:00
levlam
39b5db357e Add updateNewChatJoinRequest. 2021-10-28 22:49:56 +03:00
levlam
81bfbecb18 Add internalLinkTypeUnsupportedProxy. 2021-10-28 21:46:34 +03:00
levlam
1f75f7b494 Improve documentation. 2021-10-27 13:46:01 +03:00
levlam
c63fa2e743 Add chatInviteLink.title. 2021-10-27 13:21:50 +03:00
levlam
97243b53e4 Allow to create and edit chat invite links with title. 2021-10-27 13:04:34 +03:00
levlam
8d458f3038 Add chatJoinRequestsInfo with user identifiers. 2021-10-26 20:51:06 +03:00
levlam
6893c49be7 Add td_api::getAnimatedEmoji. 2021-10-26 17:59:15 +03:00
levlam
9addfaf6fe Add class td_api::animatedEmoji. 2021-10-26 16:15:01 +03:00
levlam
d019d89d39 Add td_api::deleteChatMessagesByDate. 2021-10-25 20:39:22 +03:00
Andrea Cavalli
0a6c64ee41 Merge remote-tracking branch 'td/master' 2021-10-22 10:10:59 +02:00
levlam
1394a2bedf Fix documentation misprints found by t.me/Mammad900. 2021-10-22 00:13:51 +03:00
Andrea Cavalli
f11254bdcb Merge remote-tracking branch 'td/master' 2021-10-21 17:09:27 +02:00
levlam
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
Andrea Cavalli
e59e8d6518 Merge remote-tracking branch 'td/master' 2021-10-20 13:42:41 +02:00
levlam
1ebf835ac5 Fix process_check_code_result. 2021-10-20 10:46:01 +03:00
Andrea Cavalli
98244d1346 Merge remote-tracking branch 'td/master' 2021-10-20 02:21:14 +02:00
levlam
f35afe23c8 Minor warning fixes. 2021-10-18 12:57:13 +03:00
Andrea Cavalli
982b994332 Merge remote-tracking branch 'td/master' 2021-10-16 18:25:57 +02: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
c3684e1b4a Improve inputIdentityDocument/identityDocument documenation. 2021-10-13 13:07:25 +03:00
levlam
aee782562c Add approver_user_id to chatEventMemberJoinedByInviteLink. 2021-10-12 19:04:18 +03:00
levlam
e49ae700b6 Add chat.pending_join_request_count. 2021-10-12 18:11:17 +03:00
levlam
6b511f277b Add messageChatJoinByLink.is_approved. 2021-10-09 15:04:17 +03:00
levlam
64d572bcbe Allow creation and edit of invite links, requiring approval. 2021-10-09 14:20:48 +03:00
levlam
5d9a224386 Add chatInviteLinkMember.approver_user_id. 2021-10-09 13:51:37 +03:00
levlam
63d86176f2 Add chatInviteLinkInfo.description/requires_approval. 2021-10-09 13:19:38 +03:00
levlam
884232d935 Add chatInviteLink.requires_approval/pending_join_request_count. 2021-10-09 12:52:25 +03:00
levlam
564521453f Improve sponsoredMessage. 2021-10-08 15:00:13 +03:00
levlam
23775700ac Update layer to 134. 2021-10-08 13:45:10 +03:00
levlam
9d74962296 Enable CMP0065 policy in all projects. 2021-10-07 17:35:41 +03:00
levlam
0259ee8262 Improve documentation. 2021-10-06 01:55:35 +03:00
levlam
038abf5466 Add sound to messageAnimatedEmoji. 2021-10-05 23:20:49 +03:00
levlam
9fb1f1438e Add color replacements to messageAnimatedEmoji. 2021-10-05 18:42:05 +03:00
levlam
ffe03ecb10 Add messageAnimatedEmoji. 2021-10-05 16:12:04 +03:00
Andrea Cavalli
5697b05622 Merge remote-tracking branch 'td/master' 2021-09-30 00:20:57 +02:00
levlam
39968780ba Replace 'should' with more affirmative verbs in the documentation. 2021-09-29 19:15:08 +03:00
Andrea Cavalli
616a40b3b2 Merge remote-tracking branch 'td/master' 2021-09-29 00:33:23 +02:00
Andrea Cavalli
665b7c577d Remove deprecated method 2021-09-29 00:29:59 +02:00
levlam
2ce0be4fe7 Remove getChatStatisticsUrl method. 2021-09-28 19:08:36 +03:00
levlam
cdb06da112 Add "; pass null" annotations for expected to be null request parameters. 2021-09-28 17:31:00 +03:00
Andrea Cavalli
9ca532c6a6 Merge remote-tracking branch 'td/master' 2021-09-26 23:08:36 +02:00
levlam
f317b1561a Document that forward_limit is ignored for added bots. 2021-09-26 08:00:06 +03:00
Andrea Cavalli
45e855f89d Remove most memory related features
I can't maintain anymore this amount of features while keeping the library constantly updated and without bugs. Every merge was taking me multiple hours of revisioning the code. I give up.
From this commit onwards TDLight will only have small useful customizations that are easy to maintain.
Now the people relying on the OptimizeMemory method can restart the session every N hours to free up the memory.
The real way to keep a low memory usage must involve a huge refactoring to allow the unloading of the caches into the sqlite database, similar to what's already happening with messages data. Only Levlam has the ability to implement this without needing to merge the upstream everytime.
2021-09-25 22:11:42 +02:00
Andrea Cavalli
897d4af16c Merge remote-tracking branch 'td/master' 2021-09-25 19:24:57 +02:00