Skip to content

Commit

Permalink
Bot API v8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IRus committed Nov 23, 2024
1 parent 5dcd984 commit 52a85a6
Show file tree
Hide file tree
Showing 59 changed files with 63,244 additions and 641 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* [Tgkotbot](https://github.com/Heapy/kotbot/tree/main/tgkotbot#readme) – Bot implementation for needs
of [Kotlin Community](https://t.me/kotlin_forum) in the telegram

## Bot API 7.9
## Bot API 8.0

### Install library

```kotlin
implementation("io.heapy.kotbot:core:1.0.0")
implementation("io.heapy.kotbot:core:1.1.0")
```

### Example
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import java.util.*

plugins {
signing
`java-library`
Expand All @@ -16,7 +14,7 @@ java {
val modules: Map<String, Map<String, String>> = mapOf(
"core" to mapOf(
"publishName" to "Telegram chat bot framework",
"publishDescription" to "Unopinionated and flexible framework for building Telegram chat bots",
"publishDescription" to "Unopinionated and flexible library for building Telegram chat bots",
),
)

Expand Down
2 changes: 1 addition & 1 deletion core-gen/src/main/kotlin/Generate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import kotlinx.serialization.json.Json
fun main() {
// https://ark0f.github.io/tg-bot-api/custom.json
val apiJson = {}::class.java
.getResource("api790.json")
.getResource("api800.json")
?.readText()
?: error("custom.json not found")

Expand Down
1 change: 1 addition & 0 deletions core-gen/src/main/kotlin/Parse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fun main() {
"api710",
"api740",
"api790",
"api800",
).forEach { v ->
val input = rootPath.resolve(v).readText()
val output = processVersion(input)
Expand Down
15,047 changes: 15,047 additions & 0 deletions core-gen/src/main/resources/api800

Large diffs are not rendered by default.

17,326 changes: 17,326 additions & 0 deletions core-gen/src/main/resources/api800.json

Large diffs are not rendered by default.

6,451 changes: 6,451 additions & 0 deletions core-gen/src/main/resources/api800.md

Large diffs are not rendered by default.

Loading

0 comments on commit 52a85a6

Please sign in to comment.