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
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
5697b05622
Merge remote-tracking branch 'td/master'
2021-09-30 00:20:57 +02: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
Andrea Cavalli
616a40b3b2
Merge remote-tracking branch 'td/master'
2021-09-29 00:33:23 +02: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
Andrea Cavalli
9ca532c6a6
Merge remote-tracking branch 'td/master'
2021-09-26 23:08:36 +02:00
levlam
d882e222a7
Make FileStats fields private.
2021-09-26 12:44:18 +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
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
Andrea Cavalli
6e1836a024
Merge remote-tracking branch 'td/master'
2021-09-15 16:03:11 +02:00
Andrea Cavalli
71c2330749
Merge remote-tracking branch 'td/master'
2021-09-14 23:58:34 +02: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
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
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
Andrea Cavalli
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02: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
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