1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-03 07:09:23 +00:00

migration of artifacts names

This commit is contained in:
2020-08-20 11:55:39 +06:00
parent 3c17a67b01
commit ce95a60fbc
487 changed files with 462 additions and 453 deletions

View File

@@ -5,13 +5,13 @@
## What is it?
It is wrapper library for [TelegramBotAPI](../TelegramBotAPI/README.md). Here you can find extensions for
It is wrapper library for [TelegramBotAPI-core](../TelegramBotAPI-core/README.md). Here you can find extensions for
`RequestsExecutor`, which are more look like Telegram Bot API requests and in the same time have more obvious signatures
to help understand some restrictions in Telegram system.
## Compatibility
This library always compatible with original `TelegramBotAPI` library version
This library always compatible with original `TelegramBotAPI-core` library version
## How to implement library?
@@ -71,8 +71,8 @@ val bot = telegramBot("IT IS YOUR TOKEN") {
In all examples supposed that you have created bot.
| TelegramBotAPI | TelegramBotAPI-extensions-api |
|----------------|-------------------------------|
| TelegramBotAPI-core | TelegramBotAPI-extensions-api |
|---------------------|-------------------------------|
| bot.execute(GetMe) | bot.getMe() |
| bot.execute(SendTextMessage(someChatId, text)) | bot.sendTextMessage(chat, text) |

View File

@@ -41,9 +41,9 @@ kotlin {
dependencies {
implementation kotlin('stdlib')
if ((project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") || System.getenv('RELEASE_MODE') == "true") {
api "${project.group}:TelegramBotAPI:$library_version"
api "${project.group}:TelegramBotAPI-core:$library_version"
} else {
api project(":TelegramBotAPI")
api project(":TelegramBotAPI-core")
}
}
}