Update README

This commit is contained in:
Andrea Cavalli 2021-01-24 13:25:25 +01:00
parent 697e5db336
commit 2571ffb7cb
1 changed files with 4 additions and 1 deletions

View File

@ -147,7 +147,10 @@ public class Example {
Init.start();
// Create a client
TelegramClient client = ClientManager.create(Example::onUpdate, Example::onUpdateError, Example::onError);
TelegramClient client = ClientManager.create();
// Initialize the client
client.initialize(Example::onUpdate, Example::onUpdateError, Example::onError);
// Here you can use the client.