Update example

This commit is contained in:
Andrea Cavalli 2021-10-20 23:54:59 +02:00
parent 646330ae19
commit 30c74a6ab4
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
<dependency> <dependency>
<groupId>it.tdlight</groupId> <groupId>it.tdlight</groupId>
<artifactId>tdlight-java</artifactId> <artifactId>tdlight-java</artifactId>
<version>2.7.8.22</version> <version>2.7.8.23</version>
</dependency> </dependency>
<!-- TDLight natives --> <!-- TDLight natives -->

View File

@ -85,7 +85,7 @@ public final class Example {
} }
// Get the chat title // Get the chat title
client.send(new TdApi.GetChat(update.message.chatId), (Result<Chat> chatIdResult) -> { client.send(new TdApi.GetChat(update.message.chatId), chatIdResult -> {
// Get the chat response // Get the chat response
Chat chat = chatIdResult.get(); Chat chat = chatIdResult.get();
// Get the chat name // Get the chat name