From ad917dda1ba5b5533c8173875d5a54111e893af4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Aug 2021 10:35:55 +0600 Subject: [PATCH 1/9] start 0.35.6 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 908a9149fe..a0640407c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # TelegramBotAPI changelog +## 0.35.6 + ## 0.35.5 **MIME TYPES FOR REQUESTS HAVE BEEN DEPRECATED DUE TO REDUNDANCY OF MIME TYPES IN FILES SENDING** diff --git a/gradle.properties b/gradle.properties index 671a2cfeae..3a61497742 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,6 +17,6 @@ micro_utils_version=0.5.19 javax_activation_version=1.1.1 library_group=dev.inmo -library_version=0.35.5 +library_version=0.35.6 github_release_plugin_version=2.2.12 From 13ca63d27d8daa509da4042edbcfb1dadc0437dd Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Aug 2021 10:47:23 +0600 Subject: [PATCH 2/9] update dependencies --- CHANGELOG.md | 5 +++++ gradle.properties | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0640407c9..d3e3f53aba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## 0.35.6 +* `Common`: + * `Version`: + * `Klock`: `2.3.1` -> `2.3.3` + * `MicroUtils`: `0.5.19` -> `0.5.21` + ## 0.35.5 **MIME TYPES FOR REQUESTS HAVE BEEN DEPRECATED DUE TO REDUNDANCY OF MIME TYPES IN FILES SENDING** diff --git a/gradle.properties b/gradle.properties index 3a61497742..0443c5177f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,11 +8,11 @@ kotlin.incremental.js=true kotlin_version=1.5.21 kotlin_coroutines_version=1.5.1 kotlin_serialisation_runtime_version=1.2.2 -klock_version=2.3.1 +klock_version=2.3.3 uuid_version=0.3.0 ktor_version=1.6.2 -micro_utils_version=0.5.19 +micro_utils_version=0.5.21 javax_activation_version=1.1.1 From 9b21b5290caf3bde2acd70fdfcd2a062deeab6b1 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Aug 2021 10:53:12 +0600 Subject: [PATCH 3/9] update dokka --- docs/gradle.properties | 2 +- .../dev/inmo/tgbotapi/extensions/api/LiveLocationProvider.kt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/gradle.properties b/docs/gradle.properties index 681b8537a1..ffe27b79a8 100644 --- a/docs/gradle.properties +++ b/docs/gradle.properties @@ -1,3 +1,3 @@ -dokka_version=1.4.32 +dokka_version=1.5.0 org.gradle.jvmargs=-Xmx1024m diff --git a/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/LiveLocationProvider.kt b/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/LiveLocationProvider.kt index 683fa940b2..659f38da0a 100644 --- a/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/LiveLocationProvider.kt +++ b/tgbotapi.extensions.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/LiveLocationProvider.kt @@ -21,6 +21,10 @@ import kotlinx.coroutines.launch import kotlin.math.ceil val defaultLivePeriodDelayMillis = (livePeriodLimit.last - 60L) * 1000L + +/** + * @see startLiveLocation + */ class LiveLocationProvider internal constructor( private val requestsExecutor: TelegramBot, scope: CoroutineScope, From d92cac5e07868562781c2e38160aa8ad1b97405d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Aug 2021 10:58:32 +0600 Subject: [PATCH 4/9] small updates in readmes --- README.md | 9 +++++++++ tgbotapi.core/README.md | 14 ++++++++++++++ tgbotapi.extensions.api/README.md | 13 ++++++++++++- tgbotapi.extensions.behaviour_builder/README.md | 11 +++++++++++ tgbotapi.extensions.utils/README.md | 4 +--- 5 files changed, 47 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c8ed2c416f..1a4669ec73 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ # TelegramBotAPI +- [TelegramBotAPI](#telegrambotapi) + * [Examples](#examples) + + [Most common example](#most-common-example) + + [Handling only last messages](#handling-only-last-messages) + + [Build a little bit more complex behaviour](#build-a-little-bit-more-complex-behaviour) + + [More examples](#more-examples) + +Table of contents generated with markdown-toc + Hello! This is a set of libraries for working with Telegram Bot API. | Common info | [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin) [![Build Status](https://github.com/InsanusMokrassar/TelegramBotAPI/workflows/Build/badge.svg)](https://github.com/InsanusMokrassar/TelegramBotAPI/actions) [Small survey](https://forms.gle/2Hex2ynbHWHhi1KY7)| diff --git a/tgbotapi.core/README.md b/tgbotapi.core/README.md index f4eeda039d..4f888a0d23 100644 --- a/tgbotapi.core/README.md +++ b/tgbotapi.core/README.md @@ -2,6 +2,20 @@ [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.core) +- [TelegramBotAPI Core](#telegrambotapi-core) + * [What is it?](#what-is-it-) + * [Compatibility](#compatibility) + * [How to implement library?](#how-to-implement-library-) + + [Maven](#maven) + + [Gradle](#gradle) + * [How to work with library?](#how-to-work-with-library-) + + [Types](#types) + + [Requests](#requests) + + [RequestsExecutor](#requestsexecutor) + + [Passport](#passport) + +Table of contents generated with markdown-toc + ## What is it? Library for Object-Oriented and type-safe work with Telegram Bot API. Most part of some specific solves or unuseful diff --git a/tgbotapi.extensions.api/README.md b/tgbotapi.extensions.api/README.md index 63b706e7b7..dd013db501 100644 --- a/tgbotapi.extensions.api/README.md +++ b/tgbotapi.extensions.api/README.md @@ -1,8 +1,19 @@ # TelegramBotAPI extensions -[![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/images/download.svg) ](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.api/_latestVersion) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api) +- [TelegramBotAPI extensions](#telegrambotapi-extensions) + * [What is it?](#what-is-it-) + * [Compatibility](#compatibility) + * [How to implement library?](#how-to-implement-library-) + + [Maven](#maven) + + [Gradle](#gradle) + * [Example of usage and comparison with `TelegramBotAPI`](#example-of-usage-and-comparison-with--telegrambotapi-) + * [Updates](#updates) + + [Alternative way](#alternative-way) + +Table of contents generated with markdown-toc + ## What is it? It is wrapper library for [TelegramBotAPI Core](../tgbotapi.core/README.md). Here you can find extensions for diff --git a/tgbotapi.extensions.behaviour_builder/README.md b/tgbotapi.extensions.behaviour_builder/README.md index c618a07ce8..537863d68e 100644 --- a/tgbotapi.extensions.behaviour_builder/README.md +++ b/tgbotapi.extensions.behaviour_builder/README.md @@ -1,5 +1,16 @@ # TelegramBotAPI Behaviour Builder Extensions +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.behaviour_builder/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.behaviour_builder) + +- [TelegramBotAPI Behaviour Builder Extensions](#telegrambotapi-behaviour-builder-extensions) + * [What is it?](#what-is-it-) + * [Triggers](#triggers) + * [Waiters](#waiters) + +Table of contents generated with markdown-toc + +## What is it? + This extension was created to make it more simple to build bot steps handling. Usually, you must use something like: ```kotlin diff --git a/tgbotapi.extensions.utils/README.md b/tgbotapi.extensions.utils/README.md index aa10cd0b86..fd923df039 100644 --- a/tgbotapi.extensions.utils/README.md +++ b/tgbotapi.extensions.utils/README.md @@ -1,5 +1,6 @@ # TelegramBotAPI Util Extensions +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.utils/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.utils) - [TelegramBotAPI Util Extensions](#telegrambotapi-util-extensions) * [What is it?](#what-is-it) @@ -19,9 +20,6 @@ Table of contents generated with markdown-toc -[![Download](https://api.bintray.com/packages/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.utils/images/download.svg) ](https://bintray.com/insanusmokrassar/TelegramBotAPI/tgbotapi.extensions.utils/_latestVersion) -[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.utils/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.utils) - ## What is it? It is wrapper library for [TelegramBotAPI Core](../tgbotapi.core/README.md). Currently, this library contains some usefull filters for commands, updates types and different others. From d5c6ce32bbcec13a793cd6f0fb848b019823b7e7 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Aug 2021 11:02:14 +0600 Subject: [PATCH 5/9] fixes in readme :) --- tgbotapi.extensions.api/README.md | 6 +++--- tgbotapi.extensions.behaviour_builder/README.md | 2 +- tgbotapi.extensions.utils/README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tgbotapi.extensions.api/README.md b/tgbotapi.extensions.api/README.md index dd013db501..bbe8b0bc77 100644 --- a/tgbotapi.extensions.api/README.md +++ b/tgbotapi.extensions.api/README.md @@ -3,12 +3,12 @@ [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.api) - [TelegramBotAPI extensions](#telegrambotapi-extensions) - * [What is it?](#what-is-it-) + * [What is it?](#what-is-it) * [Compatibility](#compatibility) - * [How to implement library?](#how-to-implement-library-) + * [How to implement library?](#how-to-implement-library) + [Maven](#maven) + [Gradle](#gradle) - * [Example of usage and comparison with `TelegramBotAPI`](#example-of-usage-and-comparison-with--telegrambotapi-) + * [Example of usage and comparison with `TelegramBotAPI`](#example-of-usage-and-comparison-with-telegrambotapi) * [Updates](#updates) + [Alternative way](#alternative-way) diff --git a/tgbotapi.extensions.behaviour_builder/README.md b/tgbotapi.extensions.behaviour_builder/README.md index 537863d68e..d4160d7c6b 100644 --- a/tgbotapi.extensions.behaviour_builder/README.md +++ b/tgbotapi.extensions.behaviour_builder/README.md @@ -3,7 +3,7 @@ [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.behaviour_builder/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi.extensions.behaviour_builder) - [TelegramBotAPI Behaviour Builder Extensions](#telegrambotapi-behaviour-builder-extensions) - * [What is it?](#what-is-it-) + * [What is it?](#what-is-it) * [Triggers](#triggers) * [Waiters](#waiters) diff --git a/tgbotapi.extensions.utils/README.md b/tgbotapi.extensions.utils/README.md index fd923df039..3fef81edfe 100644 --- a/tgbotapi.extensions.utils/README.md +++ b/tgbotapi.extensions.utils/README.md @@ -10,7 +10,7 @@ * [How to use?](#how-to-use) + [Updates](#updates) - [Long polling](#long-polling) - - [WebHooks (currently JVM-only)](#webhooks--currently-jvm-only) + - [WebHooks (currently JVM-only)](#webhooks-currently-jvm-only) + [Filters](#filters) - [Sent messages](#sent-messages) * [Common messages](#common-messages) From c028434f30e6a7eb51205bba8def57518067e4b9 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Aug 2021 11:09:35 +0600 Subject: [PATCH 6/9] update gradle wrapper --- gradle/wrapper/gradle-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 5416585156..8ad73a75c0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip From a109771d2094c3ad14386dfff157f25399237d5a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Aug 2021 12:10:05 +0600 Subject: [PATCH 7/9] update structure schema --- TelegramBotAPI.drawio | 1 + TelegramBotAPI.minder | 311 ------ .../TelegramBotAPI-libraries-hierarchy.svg | 966 +----------------- 3 files changed, 2 insertions(+), 1276 deletions(-) create mode 100644 TelegramBotAPI.drawio delete mode 100644 TelegramBotAPI.minder diff --git a/TelegramBotAPI.drawio b/TelegramBotAPI.drawio new file mode 100644 index 0000000000..0bc0fa2013 --- /dev/null +++ b/TelegramBotAPI.drawio @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/TelegramBotAPI.minder b/TelegramBotAPI.minder deleted file mode 100644 index 8128899caf..0000000000 --- a/TelegramBotAPI.minder +++ /dev/null @@ -1,311 +0,0 @@ - - - - -