diff --git a/README.md b/README.md index abb79697..eac3ce7a 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,14 @@ Just import add the library to your project with one of these options: ``` + 2. Using Gradle: + ```gradle - compile "org.telegram:telegrambots:5.0.1" + implementation 'org.telegram:telegrambots:5.0.1' ``` - 2. Using Jitpack from [here](https://jitpack.io/#rubenlagus/TelegramBots/5.0.1) - 3. Download the jar(including all dependencies) from [here](https://mvnrepository.com/artifact/org.telegram/telegrambots/5.0.1) + 3. Using Jitpack from [here](https://jitpack.io/#rubenlagus/TelegramBots/5.0.1) + 4. Download the jar(including all dependencies) from [here](https://mvnrepository.com/artifact/org.telegram/telegrambots/5.0.1) In order to use Long Polling mode, just create your own bot extending `org.telegram.telegrambots.bots.TelegramLongPollingBot`. diff --git a/TelegramBots.wiki/Getting-Started.md b/TelegramBots.wiki/Getting-Started.md index 0c8907ca..2759079a 100644 --- a/TelegramBots.wiki/Getting-Started.md +++ b/TelegramBots.wiki/Getting-Started.md @@ -16,8 +16,8 @@ First you need ot get the library and add it to your project. There are few poss ``` * With **Gradle**: - ```groovy - compile group: 'org.telegram', name: 'telegrambots', version: '5.0.1' + ```gradle + implementation 'org.telegram:telegrambots:5.0.1' ``` 2. Don't like **Maven Central Repository**? It can also be taken from [Jitpack](https://jitpack.io/#rubenlagus/TelegramBots). diff --git a/TelegramBots.wiki/abilities/Simple-Example.md b/TelegramBots.wiki/abilities/Simple-Example.md index ca569282..381bc03c 100644 --- a/TelegramBots.wiki/abilities/Simple-Example.md +++ b/TelegramBots.wiki/abilities/Simple-Example.md @@ -13,8 +13,8 @@ As with any Java project, you will need to set your dependencies. ``` * **Gradle** -```groovy - implementation group: 'org.telegram', name: 'telegrambots-abilities', version: '5.0.1' +```gradle + implementation 'org.telegram:telegrambots-abilities:5.0.1' ``` * [JitPack](https://jitpack.io/#rubenlagus/TelegramBots) diff --git a/telegrambots-abilities/README.md b/telegrambots-abilities/README.md index 52d18fe0..e0a5ad4b 100644 --- a/telegrambots-abilities/README.md +++ b/telegrambots-abilities/README.md @@ -25,7 +25,7 @@ Usage **Gradle** ```gradle - compile "org.telegram:telegrambots-abilities:5.0.1" + implementation 'org.telegram:telegrambots-abilities:5.0.1' ``` **JitPack** - [JitPack](https://jitpack.io/#rubenlagus/TelegramBots/v5.0.1) diff --git a/telegrambots-chat-session-bot/README.md b/telegrambots-chat-session-bot/README.md index 99446945..90071394 100644 --- a/telegrambots-chat-session-bot/README.md +++ b/telegrambots-chat-session-bot/README.md @@ -19,6 +19,12 @@ Usage ``` +**Gradle** + +```gradle + implementation 'org.telegram:telegrambots-chat-session-bot:5.0.1' +``` + Motivation ---------- Implementation of bot dialogs require saving some data about current state of conversation. diff --git a/telegrambots-extensions/README.md b/telegrambots-extensions/README.md index 5deffb45..36f1a19a 100644 --- a/telegrambots-extensions/README.md +++ b/telegrambots-extensions/README.md @@ -23,5 +23,5 @@ Just import add the library to your project with one of these options: 2. Using Gradle: ```gradle - compile "org.telegram:telegrambotsextensions:5.0.1" + implementation 'org.telegram:telegrambotsextensions:5.0.1' ``` \ No newline at end of file diff --git a/telegrambots-spring-boot-starter/README.md b/telegrambots-spring-boot-starter/README.md index 5501393d..b5b02ef1 100644 --- a/telegrambots-spring-boot-starter/README.md +++ b/telegrambots-spring-boot-starter/README.md @@ -25,7 +25,7 @@ Usage **Gradle** ```gradle - compile "org.telegram:telegrambots-spring-boot-starter:5.0.1" + implementation 'org.telegram:telegrambots-spring-boot-starter:5.0.1' ``` Motivation