Skip to content

Commit 3489bc8

Browse files
author
Stanislav Parshin
authored
Update README – Bot creation
1 parent 3254bc4 commit 3489bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ JAR-file:
4949
## Creating your bot
5050

5151
```java
52-
TelegramBot bot = TelegramBotAdapter.build("BOT_TOKEN");
52+
TelegramBot bot = new TelegramBot("BOT_TOKEN");
5353
```
5454
Network operations based on OkHttp library.
5555
You can build bot with custom OkHttpClient, for specific timeouts or interceptors.
5656
```java
57-
TelegramBot bot = TelegramBotAdapter.buildCustom("BOT_TOKEN", okHttpClient);
57+
TelegramBot bot = new TelegramBot.Builder("BOT_TOKEN").okHttpClient(client).build();
5858
```
5959

6060
## Making requests

0 commit comments

Comments
 (0)