We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3254bc4 commit 3489bc8Copy full SHA for 3489bc8
README.md
@@ -49,12 +49,12 @@ JAR-file:
49
## Creating your bot
50
51
```java
52
-TelegramBot bot = TelegramBotAdapter.build("BOT_TOKEN");
+TelegramBot bot = new TelegramBot("BOT_TOKEN");
53
```
54
Network operations based on OkHttp library.
55
You can build bot with custom OkHttpClient, for specific timeouts or interceptors.
56
57
-TelegramBot bot = TelegramBotAdapter.buildCustom("BOT_TOKEN", okHttpClient);
+TelegramBot bot = new TelegramBot.Builder("BOT_TOKEN").okHttpClient(client).build();
58
59
60
## Making requests
0 commit comments