Open p-vorobyev opened 8 months ago
Thank you, @p-vorobyev!
Unfortunately, this can't be merged now, because CompletableFuture
is available on Android only since Android 7.0 and Telegram apps still support Android 4.*, but it can be merged after support for the old Android versions is dropped, which should happen someday.
Added option to java client to send query with CompletableFuture response. It allows work in a functional style with asynchronous requests, as well as chaining and combining.
Because of CompletableFuture available since java 1.8, minimum supported version has been updated too.