levlam
fe8e521a41
Add chat.default_sender_id.
2021-11-12 16:15:19 +03:00
levlam
c29b096e79
Move logic out of ImportContactsQuery.
2021-11-12 07:37:53 +03:00
levlam
8db8f170f1
Add do_import_contacts.
2021-11-11 21:57:09 +03:00
levlam
6ace4fdf36
Update layer to 135.
2021-11-09 19:07:55 +03:00
levlam
3070415ccd
Use common QueryCombiner for get chat/channel full requests.
2021-12-06 21:22:56 +03:00
levlam
9f5a1567f0
Ignore CHANNEL_PRIVATE errors for GetChannelDifferenceQuery after restart.
2021-11-08 17:24:27 +03:00
levlam
b0eca77c9a
Improve logging.
2021-11-08 17:11:35 +03:00
levlam
6de2763fac
Remove duplicate logging before net queries.
2021-11-08 16:41:16 +03:00
levlam
616b0e6d6f
Improve ResultHandler/NetActor td_ private field name.
2021-11-08 15:20:38 +03:00
levlam
5578ecc6b8
Remove NetQuery id from ResultHandler and NetActor.
2021-11-08 14:19:57 +03:00
Andrea Cavalli
79b4ff0934
Merge remote-tracking branch 'td/master'
2021-11-07 13:46:42 +01:00
levlam
1bd9e0f622
Fix editChatInviteLink.
2021-11-07 04:18:41 +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
47f3363ca8
Improve field names.
2021-11-04 09:52:27 +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
6ab91f2712
Update chat join request after GetChatJoinRequestsQuery.
2021-11-01 23:03:41 +03: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
Andrea Cavalli
9f3e26dea6
Merge remote-tracking branch 'td/master'
2021-10-29 14:56:39 +02:00
levlam
05b59cc63b
Improve DialogParticipant field names.
2021-10-29 14:39:07 +03:00
Andrea Cavalli
9b0d54de26
Merge remote-tracking branch 'td/master'
2021-10-29 00:31:20 +02:00
levlam
39b5db357e
Add updateNewChatJoinRequest.
2021-10-28 22:49:56 +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
393598314a
Simplify search_private_chat_participants.
2021-10-23 23:37:23 +03:00
levlam
ed45735de4
Add DialogParticipant::private_member.
2021-10-23 23:22:54 +03:00
levlam
7d4442347d
Add DialogParticipantsFilter::is_dialog_participant_suitable.
2021-10-23 22:32:11 +03:00
levlam
1c59f37ca9
Move some methods inside DialogParticipantsFilter class.
2021-10-23 22:23:59 +03:00
levlam
47d4c08de2
Improve field names style.
2021-10-23 21:56:37 +03:00
levlam
c24501f2d9
Reduce "this" usages.
2021-10-23 21:17:00 +03:00
Andrea Cavalli
98244d1346
Merge remote-tracking branch 'td/master'
2021-10-20 02:21:14 +02: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
3abac23287
Fix file_reference repair for ChatFull/ChannelFull photos.
2021-10-16 23:37:02 +03:00
levlam
0fa991599e
Add filter name to log.
2021-10-16 22:14:48 +03:00
Andrea Cavalli
982b994332
Merge remote-tracking branch 'td/master'
2021-10-16 18:25:57 +02:00
levlam
34d77c7feb
Fix drop of pending_join_request_count.
2021-10-14 00:34:28 +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
250e593e3e
Add comment.
2021-10-12 20:05:36 +03:00
levlam
0f6247f856
Nullify pending_join_request_count if have no enough rights.
2021-10-12 19:39:03 +03:00
levlam
e49ae700b6
Add chat.pending_join_request_count.
2021-10-12 18:11:17 +03:00
levlam
7832b354a8
Imptove logging.
2021-10-12 11:30:41 +03:00
levlam
a4aa509308
Add requested_ flag check.
2021-10-09 16:53:29 +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
d0ac845c72
Fix misprint.
2021-10-08 14:12:37 +03:00
levlam
23775700ac
Update layer to 134.
2021-10-08 13:45:10 +03:00
levlam
328c5b57d2
Add Global::request_aborted_error.
2021-10-07 16:36:21 +03:00
levlam
3b794126d8
Avoid G usage in lambda promises.
2021-10-07 15:28:52 +03:00
levlam
c85f993de8
Improve captured actor_id names.
2021-10-07 13:38:49 +03:00
Andrea Cavalli
4e70729edb
Merge remote-tracking branch 'td/master'
2021-10-07 00:51:58 +02:00
levlam
4b41d620c5
Use send_closure instead of raw call.
2021-10-06 23:33:18 +03:00
levlam
9e1147bc89
Fix SleepActor usages.
2021-10-06 20:22:50 +03:00
levlam
88886f3676
Check close_flag just before accessing Td pointer.
2021-10-06 14:39:01 +03:00
Andrea Cavalli
e3bd6380b8
Merge remote-tracking branch 'td/master'
2021-10-01 19:17:02 +02:00
levlam
13c48e590d
Fix profile photo reuploading.
2021-10-01 19:19:14 +03:00
Andrea Cavalli
5c2b4fe983
Merge remote-tracking branch 'td/master'
2021-10-01 15:06:14 +02: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
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
levlam
95d60959b1
Remove redundant checks for is_bot.
2021-09-24 11:07:12 +03:00
levlam
d6f3d9f08a
Use error code 400 instead of small error codes.
2021-09-24 10:59:51 +03:00
levlam
2ec2e4d78f
Use "set"/"toogle" instead of "change".
2021-09-24 10:42:39 +03:00
levlam
f2908bb7e5
Allow to add non-members as administrators in basic groups using setChatMemberStatus.
2021-09-24 10:20:50 +03:00
levlam
a3c8da47a0
Return void from load_*_full.
2021-09-23 18:52:39 +03:00
levlam
d032ca2ab2
Support adding basic group members through setChatMemberStatus.
2021-09-23 18:39:13 +03:00
levlam
db18baa503
Unify include order.
2021-09-19 00:47:05 +03:00
levlam
a3fefcd18b
Add (disabled) logging on inconsistent update*Participant.
2021-09-15 18:36:45 +03:00
Andrea Cavalli
71c2330749
Merge remote-tracking branch 'td/master'
2021-09-14 23:58:34 +02:00
Andrea Cavalli
c06a3d9dcf
Merge remote-tracking branch 'td/master'
2021-09-10 15:49:57 +02:00
Andrea Cavalli
37b1d48470
Fix compilation warnings and errors
2021-09-10 15:47:26 +02:00
levlam
9bf5b5343b
Prevent partial updateBasicGroupFullInfo.
2021-09-09 15:41:50 +03:00
levlam
8117853ea4
Add logging on partial update*FullInfo.
2021-09-07 18:20:34 +03:00
levlam
f59ba4b5e5
Avoid duplicate UserFull updates.
2021-09-07 18:02:03 +03:00
levlam
168399f21d
Add source to update_*_full.
2021-09-07 17:41:56 +03:00
Andrea Cavalli
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02: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
Andrea Cavalli
de789b0d2f
Avoid sending access hash multiple times if the database is enabled
2021-08-24 18:31:08 +02:00
Andrea Cavalli
269e149852
Allocate type later
2021-08-23 21:07:38 +02:00
Andrea Cavalli
49bca76869
Send access hashes without checking if the database is enabled
2021-08-23 20:57:36 +02:00
Andrea Cavalli
0ee1d7edc1
Receive access hashes
2021-08-23 20:17:55 +02:00
levlam
5cfabdd589
Add chat.theme_name.
2021-08-23 18:47:32 +03:00
Andrea Cavalli
232ce6e4d3
Merge remote-tracking branch 'td/master'
2021-08-23 02:22:28 +02:00
levlam
45790b144c
Fix ChannelFull dependencies.
2021-08-11 16:52:34 +03:00
levlam
8e7eba4f8c
Reload ChannelFull in get_channel_statistics_dc_id.
2021-08-23 11:59:37 +03:00
levlam
828e1e22a0
Skip unneeded getFullChannel requests.
2021-08-23 11:10:46 +03:00
Andrea Cavalli
d341c79aa8
Merge remote-tracking branch 'td/master'
2021-08-03 19:56:27 +02:00
levlam
0dc42e4410
Add source to get_message_sender_object.
2021-08-03 01:58:02 +03:00
Andrea Cavalli
4286622a5a
Merge remote-tracking branch 'td/master'
2021-08-02 10:47:33 +02:00
levlam
3b125ce511
Don't try to get full channel if it is inaccessible.
2021-08-02 06:20:59 +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
a4e1839089
Generate only needed telegram_api full constructors.
2021-08-01 07:23:50 +03:00