Skip to content

Commit 1004e2c

Browse files
committed
Kotbot 1.4.0
1 parent e8cabf9 commit 1004e2c

28 files changed

Lines changed: 79103 additions & 47 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* [Tgkotbot](https://github.com/Heapy/kotbot/tree/main/tgkotbot#readme) – Bot implementation for needs
66
of [Kotlin Community](https://t.me/kotlin_lang) in the telegram
77

8-
## Bot API 8.2
8+
## Bot API 8.3
99

1010
### Install library
1111

1212
```kotlin
13-
implementation("io.heapy.kotbot:core:1.3.0")
13+
implementation("io.heapy.kotbot:core:1.4.0")
1414
```
1515

1616
### Example
@@ -38,6 +38,6 @@ suspend fun main() {
3838

3939
// Flow, which emits updates
4040
kotbot.receiveUpdates()
41-
.onEach(::println)
41+
.collect(::println)
4242
}
4343
```

core-gen/src/main/kotlin/Generate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import kotlinx.serialization.json.Json
1818
fun main() {
1919
// https://ark0f.github.io/tg-bot-api/custom.json
2020
val apiJson = {}::class.java
21-
.getResource("api820.json")
21+
.getResource("api830.json")
2222
?.readText()
2323
?: error("custom.json not found")
2424

core-gen/src/main/kotlin/Parse.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ fun main() {
2727
"api800",
2828
"api810",
2929
"api820",
30+
"api830",
3031
).forEach { v ->
3132
val input = rootPath.resolve(v).readText()
3233
val output = processVersion(input)

core-gen/src/main/resources/api830

Lines changed: 15317 additions & 0 deletions
Large diffs are not rendered by default.

core-gen/src/main/resources/api830.json

Lines changed: 17603 additions & 0 deletions
Large diffs are not rendered by default.

core-gen/src/main/resources/api830.md

Lines changed: 6549 additions & 0 deletions
Large diffs are not rendered by default.

core-gen/src/main/resources/api830_v2.json

Lines changed: 22569 additions & 0 deletions
Large diffs are not rendered by default.

core-gen/src/main/resources/api900

Lines changed: 16892 additions & 0 deletions
Large diffs are not rendered by default.

core-gen/src/main/resources/latest.md

Lines changed: 53 additions & 29 deletions
Large diffs are not rendered by default.

core/src/generated/kotlin/io/heapy/kotbot/bot/method/CopyMessage.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ public data class CopyMessage(
3535
* Message identifier in the chat specified in *from_chat_id*
3636
*/
3737
public val message_id: Int,
38+
/**
39+
* New start timestamp for the copied video in the message
40+
*/
41+
public val video_start_timestamp: Int? = null,
3842
/**
3943
* New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept
4044
*/

0 commit comments

Comments
 (0)