Andrea Cavalli
6d1329ee7a
Merge remote-tracking branch 'td/master'
2021-12-17 15:43:10 +01:00
levlam
b060536ae3
Return Result<...> from get_input_user.
2021-12-16 22:46:03 +03:00
Andrea Cavalli
48e3660d2c
Merge remote-tracking branch 'td/master'
2021-11-14 22:46:37 +01:00
levlam
60907279fd
Add missing checks for close_flag in Timeout callbacks.
2021-11-13 22:37:41 +03:00
levlam
b0eca77c9a
Improve logging.
2021-11-08 17:11:35 +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
9c9772868b
Merge remote-tracking branch 'td/master'
2021-11-05 16:11:03 +01:00
levlam
00a349656d
Unify td/telegram/include order.
2021-10-27 17:32:09 +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
Andrea Cavalli
982b994332
Merge remote-tracking branch 'td/master'
2021-10-16 18:25:57 +02:00
levlam
e87bf3a174
Fix some MultiPromise locks.
2021-10-07 18:14:49 +03:00
Andrea Cavalli
616a40b3b2
Merge remote-tracking branch 'td/master'
2021-09-29 00:33:23 +02: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
bc84bfecab
Remove legacy loading of recent inline bots only by username.
2021-09-26 20:23:40 +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
d6f3d9f08a
Use error code 400 instead of small error codes.
2021-09-24 10:59:51 +03:00
levlam
db18baa503
Unify include order.
2021-09-19 00:47:05 +03:00
Andrea Cavalli
c06a3d9dcf
Merge remote-tracking branch 'td/master'
2021-09-10 15:49:57 +02:00
levlam
0ec10947d5
Fix some misprints.
2021-09-06 13:58:40 +03:00
Andrea Cavalli
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02:00
levlam
41c391f140
Update layer to 133.
2021-09-03 12:27:59 +03:00
levlam
aaff89a6c3
Make get_document_object methods const.
2021-08-28 14:16:29 +03:00
Andrea Cavalli
6b93b00f6a
Merge remote-tracking branch 'td/master'
2021-07-27 23:35:50 +02:00
levlam
e0c9efc26b
Skip bot command entities if needed.
2021-07-22 05:39:16 +03:00
Andrea Cavalli
3dde04b17f
Merge remote-tracking branch 'td/master'
2021-07-17 11:15:40 +02: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
Andrea Cavalli
c41ec7df43
Merge remote-tracking branch 'td/master'
2021-06-30 13:31:50 +02:00
levlam
9440925711
Move some classes inside corresponding managers.
2021-06-18 03:06:20 +03:00
levlam
9cecc116f3
Prefer US spelling of "canceled".
2021-05-31 21:51:48 +03:00
Andrea Cavalli
2c77e82300
Merge remote-tracking branch 'td/master' into dev
2021-05-27 00:50:41 +02:00
levlam
a6a4eb6616
Don't include SliceBuilder.h in logging.h.
2021-05-17 15:21:11 +03:00
Andrea Cavalli
40048f12ca
Merge
2021-05-04 22:17:39 +02:00
levlam
7e9818f5c1
Remove invoices and games from inline query results in unallowed chats.
2021-04-13 03:32:57 +03:00
Andrea Cavalli
1ce823b0e6
Merge commit '1bbcc01091c8ca92f79821790b8857edb5a1b6b4'
2021-04-03 12:53:29 +02:00
levlam
6cf3755707
Improve get_input_bot_inline_message_media_* functions.
2021-03-31 02:54:29 +03:00
levlam
aa65e2b586
Allow to send invoice messages in all chat types.
2021-03-31 02:45:10 +03:00
levlam
2379735d9b
Support sending Invoice as result of any inline query.
2021-03-31 01:55:12 +03:00
levlam
b5655ddab6
Pass UserId to Contact::Contact.
2021-03-29 08:20:54 +03:00
Andrea Cavalli
78291a96d4
Merge commit '70b71d569b81c66b25f8f77d9536b1d41fbf091d'
2021-03-21 01:04:45 +01:00
levlam
0339921102
Improve some spelling.
2021-03-15 03:32:14 +03:00
Andrea Cavalli
ce9a9ebbf9
Clean memory only if needed
2021-03-12 19:41:27 +01:00
Andrea Cavalli
a84a9f472d
Bugfixes
2021-01-12 17:12:29 +01:00
Andrea Cavalli
a79f835de0
Add memory_cleanup on tear_down, and add more memory_cleanup.
2021-01-12 01:37:17 +01:00
levlam
82f0386e73
Move some functions from misc.h to algorithm.h.
2021-01-01 16:01:03 +03:00
levlam
52c1da0a70
Update copyright year.
2021-01-01 15:57:46 +03:00