Fix Client.execute Java documentation.
This commit is contained in:
parent
4cfe112d88
commit
3841420014
@ -117,8 +117,10 @@ public final class Client {
|
||||
* Synchronously executes a TDLib request. Only a few marked accordingly requests can be executed synchronously.
|
||||
*
|
||||
* @param query Object representing a query to the TDLib.
|
||||
* @param <T> Automatically deduced return type of the query.
|
||||
* @return request result.
|
||||
* @throws NullPointerException if query is null.
|
||||
* @throws ExecutionError if query execution fails.
|
||||
*/
|
||||
public static <T extends TdApi.Object> T execute(TdApi.Function<T> query) throws ExecutionError {
|
||||
TdApi.Object object = nativeClientExecute(query);
|
||||
|
Loading…
Reference in New Issue
Block a user