Commit Graph

4941 Commits

Author SHA1 Message Date
levlam
6bbb7cde8d Remove unneeded explicit td:: usages.
GitOrigin-RevId: a6d2bf8a1e13f35dd07b9ce43f4320e93cf36040
2020-10-08 15:20:22 +03:00
levlam
1cfa7545c9 Add one thread ClientManager close test.
GitOrigin-RevId: a7f29e7e0c62042ae43d46c349944ff0d5fadc34
2020-10-08 14:40:25 +03:00
levlam
be374f38ac Improve error message for requests to closed client.
GitOrigin-RevId: 4870c3614ea52ecd0fd1124dfc517471b6d30b55
2020-10-08 13:59:03 +03:00
levlam
b4f358de36 Move tdclient test out of namespace td.
GitOrigin-RevId: 17183698257c0d93553d8f7e61eff1f7f79818fc
2020-10-08 13:27:00 +03:00
levlam
582206d641 Use Random::fast_bool.
GitOrigin-RevId: 42da8a237c6dfbb6e72bc5b21482891b6c9d58b5
2020-10-08 12:56:08 +03:00
levlam
291a9ff43b Add Random::fast_bool.
GitOrigin-RevId: 1f7ec3d4a04dcadbdffde18994e7a29f3d22aedc
2020-10-08 12:47:03 +03:00
levlam
6d1d227609 Use new JSON interface in Emscripten.
GitOrigin-RevId: 5294d98c5f615256ea41887c04f863d1adaf4de1
2020-10-08 02:52:34 +03:00
levlam
8460bb7cd5 Fix tdweb build.
GitOrigin-RevId: 8f348a00d05336163c7ea4214ab35a4aea2d2b65
2020-10-08 02:12:51 +03:00
levlam
5ac5acd1cb Fix ClientManager closing.
GitOrigin-RevId: eb588d9991ea6c8c2b4a339d1396d58179c84f43
2020-10-08 01:28:24 +03:00
levlam
f61bd5b89a Add Client close test.
GitOrigin-RevId: 0dadd556320bb289c3574937c82c4574cf512724
2020-10-08 01:28:01 +03:00
levlam
c83a46a821 Fix Emscripten build.
GitOrigin-RevId: e5a6570b125ca0f1c0cc13809fece5834ee1f00a
2020-10-08 01:21:28 +03:00
levlam
d0a495d437 Send errors synchronously during Td close to prevent answer losing after Td stop.
GitOrigin-RevId: c9a8253d064ba997a7a7b2e7cbe581be9f86d0c7
2020-10-08 00:51:49 +03:00
levlam
74987bf8f0 Do not build MultiTd without threads.
GitOrigin-RevId: 7707b2922937604b31eff50e67d7ba921c279f48
2020-10-06 20:47:22 +03:00
levlam
d875581772 Simplify Client closing.
GitOrigin-RevId: 9a35d7ef66cea495d376a98df81a568478b0bb35
2020-10-06 20:46:54 +03:00
levlam
29f3c91596 Fix request errors during closing.
GitOrigin-RevId: 6587b35bcb7aef082686a93e75ae8b891113da0b
2020-10-06 02:12:50 +03:00
levlam
f7393d2717 Fix handling of requests to unexisting Client.
GitOrigin-RevId: 5de9709abe73ae73dc52c9ca04c480a60efbf437
2020-10-05 23:05:16 +03:00
levlam
8a607933a7 Rename "files" log tag to "file_loader".
GitOrigin-RevId: 24fca707a99eeb32adabcca46131123d584f2c1d
2020-10-05 22:08:24 +03:00
levlam
b204ad4ee1 Store default exception handlers as static map in Java example.
GitOrigin-RevId: 5745859a70250d104a21edad473b655967060609
2020-10-05 21:31:27 +03:00
levlam
e57669363c Minor binding name fix.
GitOrigin-RevId: db092245555fb9da70980ecf9c087beae04bb5ae
2020-10-05 21:18:38 +03:00
levlam
da55a34afc Remove ability to change update handler after client creation.
GitOrigin-RevId: 917737a440afaeb99f8a8ca809cda2d267bb4b02
2020-10-05 20:18:59 +03:00
levlam
5f605d2dd2 Fix spelling of "update handler".
GitOrigin-RevId: 2137852d967606e909e82396b4103817b1b39386
2020-10-05 20:13:15 +03:00
levlam
c72d18bcd3 Java example: store update handlers separately.
GitOrigin-RevId: dc035dc72756db604731ae7549b172ba54b5d78e
2020-10-05 18:58:38 +03:00
levlam
d2d0cb5cc0 Move log tags definitions out of logging.cpp.
GitOrigin-RevId: 0e74b94ec194f8ee678bb77a04d35df46702b330
2020-10-05 18:07:23 +03:00
levlam
c9c19f3399 Add TdApi.UpdateChatIsBlocked handling in Java example.
GitOrigin-RevId: 95ddae8fe77e29bac6cd3846f78c42a4290b7b8f
2020-10-05 16:41:52 +03:00
levlam
7d6f14db10 Add new JSON interface.
GitOrigin-RevId: aaf756de59e72f949c1150d99e1277047f25fac9
2020-10-05 16:08:07 +03:00
levlam
119fc9563a Return raw pointer as ClientJson response.
GitOrigin-RevId: 6b309681539b3ee9b2c2e87c57ed4cc8f94d798f
2020-10-05 15:48:37 +03:00
levlam
3fc140b4a2 Add ClientManager documentation.
GitOrigin-RevId: 5254af6d55288851e633a6567d700f6b15b18d1a
2020-10-05 14:32:23 +03:00
levlam
b53a28c43e Add fb2 MIME type extension support.
GitOrigin-RevId: c77d8be1d4b5d84610c8acdbc4b6ce34ca8b6c2f
2020-10-05 01:10:42 +03:00
levlam
77fff9c578 Use GroupAnonymousBot as a fallback sender for bots instead of 777000.
GitOrigin-RevId: 30e2ff3c9db2efc05b3bcbfd610ad8d6492ad66e
2020-10-05 00:51:45 +03:00
levlam
ccc9169051 Load all service accounts in getUser.
GitOrigin-RevId: 6e36be3e2e9e8decae1cc599b714ff218b892841
2020-10-05 00:19:49 +03:00
levlam
6d9953aea5 Add add_anonymous_bot_user.
GitOrigin-RevId: 9eadd5f3621f7c5a2dc065d51d105c07ffc25616
2020-10-04 23:33:21 +03:00
levlam
c36741034c Improve chatMemberStatus.is_anonymous documentation.
GitOrigin-RevId: 7d158b884e18dac088a8ed31e4c8b137430b229e
2020-10-04 13:04:15 +03:00
levlam
f50e017c1f Add seq overflow handling.
GitOrigin-RevId: 082d5989e061b8408f88dd92a3bf1665d3db6d79
2020-10-04 13:01:53 +03:00
levlam
00ff276a1f tg_cli: keep client settings after reset.
GitOrigin-RevId: c3bd45d9369250f9eb867e9500d6854d0dda19a9
2020-10-04 01:30:59 +03:00
levlam
62d7423bc3 Fix TdApi.LogStreamFile usage in examples.
GitOrigin-RevId: 25af774fee360bd1071ef911d78e50a25b78372a
2020-10-03 22:05:55 +03:00
LionZXY
e104766de3
Fix java example build (#1225) 2020-10-03 22:01:29 +03:00
levlam
7c7804ff9e Document that getMessageStatistics and getMessagePublicForwards shouldn't be used yet.
GitOrigin-RevId: 64181ec55a95c06f3b93da7262ad76ee546abde5
2020-10-03 21:52:19 +03:00
levlam
c916566e76 Fix MessagesManager::get_chat_object.
GitOrigin-RevId: a5dddba5f844b8064fe7083c8532f9d2286b9dba
2020-10-03 21:47:12 +03:00
levlam
99163ff431 Fix canGetMessageThread.
GitOrigin-RevId: 688fd7615bc841284611393f77e8598e7d9cba13
2020-10-02 15:01:11 +03:00
levlam
ce1138ea13 Fix handling of wrong is_outgoing flag.
GitOrigin-RevId: 2b5a98ddc37139aaae39615fb5719cd0ed84ed7a
2020-10-02 14:31:41 +03:00
levlam
952cfd0cba Fix self Creator status in channels.
GitOrigin-RevId: 883cb8a08cb01e8534001e1f2936f60398ede681
2020-10-02 14:12:24 +03:00
levlam
187ebc603c Make function name unique.
GitOrigin-RevId: 2d8e805b36376e2c5f2a5630794ed9797254496c
2020-10-02 13:22:06 +03:00
levlam
86e7186bae Rename "chat_unload_delay" option and fix its implementation.
GitOrigin-RevId: a81de53455816c959986cd3924674600d0086adc
2020-10-02 12:42:16 +03:00
Andrea Cavalli
e0b335bc3e
Option "chat_unload_delay" for bots (#1219)
* Option "chat_unload_delay"

This option allows to override the default chat unload delay. The allowed range is from 60 to 86400 seconds (1 day)
2020-10-02 12:19:43 +03:00
levlam
771ace5c8d Minor fixes.
GitOrigin-RevId: 7cc15963615dd50f1be3aa37c336214b28f93bb4
2020-10-02 02:17:58 +03:00
levlam
e1954304ea Remove 'using namespace td' from a test.
GitOrigin-RevId: 77374ec20c363e09e497744c3bed67a71b8e2b20
2020-10-02 01:34:32 +03:00
levlam
13cb7c6a13 Fix test.
GitOrigin-RevId: 7416bb7aa65805038267767213634ec0950b3885
2020-10-02 01:24:35 +03:00
levlam
7d5b47990b Do not handle errors of messages.getReplies in channels.
GitOrigin-RevId: f80a65a578fa4ced3596acc635fa6759feb8e844
2020-10-01 22:57:24 +03:00
levlam
610443fc22 Send updateMessageInteractionInfo after ReplyInfo change, only if reply info is visible.
GitOrigin-RevId: ccafd95ce42cfe318a4a9fb096e0580093decf4c
2020-10-01 22:43:13 +03:00
levlam
ca1594c8ec Update reply info if linked_channel_id is changed.
GitOrigin-RevId: 629721095881d2c9a401519d26f75bbbba4446f9
2020-10-01 22:28:54 +03:00