mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-08-18 07:06:25 +00:00
Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5755724569 | |||
| 8bee8982bb | |||
| 5b6fe8eb96 | |||
| f9c634ca46 | |||
| b913f66b1e | |||
| 6fbe2e5649 | |||
| 8b0e0bf820 | |||
| 4f19cb7626 | |||
| d48e951232 | |||
| a1d2ebb4dc | |||
| bc52be7b40 | |||
| a2f670834e | |||
| 3d47034f54 | |||
| 0c329326f7 | |||
| 838caae7f5 | |||
| 16be206b0f | |||
| 0b3a5bb0af | |||
| c7761fd294 | |||
| 0e9f9111eb | |||
| 763b07fc3c | |||
| 481a3b4ff1 |
4
.github/workflows/kdocs.yml
vendored
4
.github/workflows/kdocs.yml
vendored
@@ -12,10 +12,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./gradlew dokkaHtmlMultiModule
|
run: ./gradlew :docs:dokkaGenerate
|
||||||
- name: Publish KDocs
|
- name: Publish KDocs
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./build/dokka/htmlMultiModule
|
publish_dir: ./docs/build/dokka/html
|
||||||
publish_branch: kdocs
|
publish_branch: kdocs
|
||||||
|
|||||||
180
.sol-migration-run-20260817T110101Z/REPORT.md
Normal file
180
.sol-migration-run-20260817T110101Z/REPORT.md
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
# Sol migration report: TelegramBotAPI
|
||||||
|
|
||||||
|
## Outcome
|
||||||
|
|
||||||
|
- repository: `/home/aleksey/projects/own/TelegramBotAPI`
|
||||||
|
- cutoff: `2025-08-17`
|
||||||
|
- starting branch: `36.0.0`
|
||||||
|
- starting commit: `8bee8982bb904b80f1f563774a73e5a455f4d7c0`
|
||||||
|
- upstream relation: `36.0.0...origin/36.0.0`, ahead `0`, behind `0`
|
||||||
|
- starting status: dirty non-master; root status entry=` M codex-master-baseline`; nested checkout status=`## HEAD (no branch)` plus untracked `.codex-gradle/`
|
||||||
|
- master: local and remote equal at `c7761fd29494e6586a449163a2e48cd7a70a6cef`
|
||||||
|
- branch gate: failed; dirty non-master checkout cannot be switched or modified
|
||||||
|
- migration work: not started
|
||||||
|
- reason: dirty non-master branch is an explicit blocking condition; existing user state was preserved
|
||||||
|
|
||||||
|
## Active/legacy classification
|
||||||
|
|
||||||
|
- result: active
|
||||||
|
- substantive activity after cutoff: release branches `28.0.1` through `36.0.0` include commits from `2025-09-04` through `2026-08-17`; `master` activity=`2026-07-01`; `init_kdocs` activity=`2026-07-05`; `kdocs` activity=`2026-07-01`; current `36.0.0` activity=`2026-08-17`
|
||||||
|
- Maven-primary criterion: satisfied by static master configuration; `gradle/templates/mpp_publish.gradle` applies `maven-publish`, seven library modules apply the publication template, and root configuration uses Maven Central/NMCP aggregation
|
||||||
|
- legacy result: false
|
||||||
|
|
||||||
|
## Branch inventory and classification
|
||||||
|
|
||||||
|
- Git verification: local refs=`279`; remote `origin` refs excluding symbolic `origin/HEAD`=`375`; unique logical branch names=`401`
|
||||||
|
- helper inventory: `.sol-migration-run-20260817T110101Z/inventory/logical-branches.txt` contains all `401` logical names plus the non-branch pseudo-entry `HEAD`; missing logical names=`0`
|
||||||
|
- release-style logical names: `311`; classification=`substantive` for every release-style name in the helper inventory because version/release-style names are substantive regardless of diff
|
||||||
|
- dependency-update-only logical names: `76`; classification=`ignored`; complete branch-to-dependency mapping appears below
|
||||||
|
- remaining non-release logical names: `14`; classification=`substantive`; complete mapping appears below
|
||||||
|
- total classified: `311 + 76 + 14 = 401`; equality with verified unique logical count=`true`
|
||||||
|
- local/remote tip mismatches: `0.24.0`, `0.32.10`, `10.0.1`, `12.0.0`, `12.0.1`, `14.0.0`, `14.0.2`, `15.1.0`, `24.0.0`, `24.0.2`, `26.0.0`, `29.0.0`, `3.2.1`, `3.3.0`, `33.0.0`, `33.2.0`, `4.0.0`, `4.1.3`, `4.2.4`, `5.0.0`, `6.0.2`, `6.0.3`, `8.0.0`, `9.0.0`, `9.1.0`, `9.4.0`, `task/676-rework_of_media_groups`; every version-style mismatch remains substantive by name; both task-branch tips contain substantive media-group work
|
||||||
|
|
||||||
|
### Ignored dependency-update-only branches
|
||||||
|
|
||||||
|
Actual base for every entry below is the branch tip's first parent. Diff review found only the named logical dependency version update; coordinated alias/wrapper changes remain one logical dependency.
|
||||||
|
|
||||||
|
- `gradle-wrapper/6.9` → Gradle wrapper (`6.8.3` → `6.9`)
|
||||||
|
- `renovate/com.benasher44-uuid-0.x` → `com.benasher44:uuid`
|
||||||
|
- `renovate/com.jfrog.bintray.gradle-gradle-bintray-plugin-1.x` → Gradle Bintray plugin
|
||||||
|
- `renovate/com.soywiz.korlibs.klock-klock-1.x` → Korlibs Klock
|
||||||
|
- `renovate/com.soywiz.korlibs.klock-klock-2.x` → Korlibs Klock
|
||||||
|
- `renovate/dev.inmo-micro_utils.coroutines-0.x` → MicroUtils family
|
||||||
|
- `renovate/dev.inmo-micro_utils.crypto-0.x` → MicroUtils family
|
||||||
|
- `renovate/dev.inmo-micro_utils.serialization.base64-0.x` → MicroUtils family
|
||||||
|
- `renovate/dev.inmo-micro_utils.serialization.encapsulator-0.x` → MicroUtils family
|
||||||
|
- `renovate/dev.inmo-micro_utils.serialization.typed_serializer-0.x` → MicroUtils family
|
||||||
|
- `renovate/dokka` → Dokka
|
||||||
|
- `renovate/dokka_version` → Dokka
|
||||||
|
- `renovate/github.release.plugin` → GitHub Release Gradle plugin
|
||||||
|
- `renovate/github_release_plugin_version` → GitHub Release Gradle plugin
|
||||||
|
- `renovate/gradle-6.x` → Gradle wrapper
|
||||||
|
- `renovate/gradle-7.x` → Gradle wrapper
|
||||||
|
- `renovate/gradle-8.x` → Gradle wrapper
|
||||||
|
- `renovate/gradle-9.x` → Gradle wrapper
|
||||||
|
- `renovate/io.ktor-ktor-client-cio-1.x` → Ktor family
|
||||||
|
- `renovate/io.ktor-ktor-client-core-1.x` → Ktor family
|
||||||
|
- `renovate/io.ktor-ktor-server-1.x` → Ktor family
|
||||||
|
- `renovate/io.ktor-ktor-server-host-common-1.x` → Ktor family
|
||||||
|
- `renovate/klock_version` → Korlibs Klock
|
||||||
|
- `renovate/korlibs` → Korlibs family
|
||||||
|
- `renovate/kotlin` → Kotlin family
|
||||||
|
- `renovate/kotlin-coroutines` → kotlinx.coroutines
|
||||||
|
- `renovate/kotlin-monorepo` → Kotlin family
|
||||||
|
- `renovate/kotlin-poet` → KotlinPoet
|
||||||
|
- `renovate/kotlin-serialization` → kotlinx.serialization
|
||||||
|
- `renovate/kotlin.coroutines` → kotlinx.coroutines
|
||||||
|
- `renovate/kotlin.poet` → KotlinPoet
|
||||||
|
- `renovate/kotlin.serialization` → kotlinx.serialization
|
||||||
|
- `renovate/kotlin_coroutines_version` → kotlinx.coroutines
|
||||||
|
- `renovate/kotlin_serialisation_runtime_version` → kotlinx.serialization
|
||||||
|
- `renovate/kotlin_version` → Kotlin family
|
||||||
|
- `renovate/kotlinx-coroutines-monorepo` → kotlinx.coroutines
|
||||||
|
- `renovate/kslog` → KSLog
|
||||||
|
- `renovate/ksp` → Kotlin Symbol Processing
|
||||||
|
- `renovate/ksp-monorepo` → Kotlin Symbol Processing
|
||||||
|
- `renovate/ktor` → Ktor family
|
||||||
|
- `renovate/ktor-monorepo` → Ktor family
|
||||||
|
- `renovate/ktor_version` → Ktor family
|
||||||
|
- `renovate/major-dokka` → Dokka
|
||||||
|
- `renovate/major-kotlin` → Kotlin family
|
||||||
|
- `renovate/major-kotlin-monorepo` → Kotlin family
|
||||||
|
- `renovate/major-kotlin.poet` → KotlinPoet
|
||||||
|
- `renovate/major-ksp` → Kotlin Symbol Processing
|
||||||
|
- `renovate/major-ktor-monorepo` → Ktor family
|
||||||
|
- `renovate/major-ktor_version` → Ktor family
|
||||||
|
- `renovate/micro_utils_version` → MicroUtils family
|
||||||
|
- `renovate/microutils` → MicroUtils family
|
||||||
|
- `renovate/nmcp` → NMCP aggregation plugin
|
||||||
|
- `renovate/org.jetbrains.dokka-1.x` → Dokka
|
||||||
|
- `renovate/org.jetbrains.dokka-dokka-gradle-plugin-0.x` → Dokka
|
||||||
|
- `renovate/org.jetbrains.dokka-dokka-gradle-plugin-1.x` → Dokka
|
||||||
|
- `renovate/org.jetbrains.dokka-gfm-plugin-1.x` → Dokka
|
||||||
|
- `renovate/org.jetbrains.dokka-org.jetbrains.dokka.gradle.plugin-0.x` → Dokka
|
||||||
|
- `renovate/org.jetbrains.dokka-org.jetbrains.dokka.gradle.plugin-1.x` → Dokka
|
||||||
|
- `renovate/org.jetbrains.kotlin-kotlin-gradle-plugin-1.x` → Kotlin family
|
||||||
|
- `renovate/org.jetbrains.kotlin-kotlin-serialization-1.x` → Kotlin family
|
||||||
|
- `renovate/org.jetbrains.kotlin.multiplatform-1.x` → Kotlin family
|
||||||
|
- `renovate/org.jetbrains.kotlin.multiplatform-org.jetbrains.kotlin.multiplatform.gradle.plugin-1.x` → Kotlin family
|
||||||
|
- `renovate/org.jetbrains.kotlin.plugin.serialization-1.x` → Kotlin family
|
||||||
|
- `renovate/org.jetbrains.kotlin.plugin.serialization-org.jetbrains.kotlin.plugin.serialization.gradle.plugin-1.x` → Kotlin family
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-coroutines-core-1.x` → kotlinx.coroutines
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-serialization-json-1.x` → kotlinx.serialization JSON
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-serialization-properties-1.x` → kotlinx.serialization
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-serialization-properties-common-0.x` → kotlinx.serialization
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-serialization-properties-js-0.x` → kotlinx.serialization
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-serialization-runtime-0.x` → kotlinx.serialization
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-serialization-runtime-common-0.x` → kotlinx.serialization
|
||||||
|
- `renovate/org.jetbrains.kotlinx-kotlinx-serialization-runtime-js-0.x` → kotlinx.serialization
|
||||||
|
- `renovate/uuid` → `com.benasher44:uuid`
|
||||||
|
- `renovate/uuid_version` → `com.benasher44:uuid`
|
||||||
|
- `renovate/validator` → Kotlin binary compatibility validator
|
||||||
|
- `renovate/versions` → Ben Manes Versions plugin
|
||||||
|
|
||||||
|
### Substantive non-release branches
|
||||||
|
|
||||||
|
- `feature/fsm` → feature history plus README change
|
||||||
|
- `feature/passport` → passport types and Base64 implementation
|
||||||
|
- `garbage` → `CHANGELOG.md` change; changelog rule forces substantive classification
|
||||||
|
- `implement_telegram_passport` → request/response implementation plus `CHANGELOG.md`
|
||||||
|
- `init_kdocs` → extensive KDoc source changes; activity after cutoff
|
||||||
|
- `kdocs` → generated documentation deployment; activity after cutoff
|
||||||
|
- `klassindex` → documentation/build/test implementation changes
|
||||||
|
- `lib_to_common` → publication implementation changes
|
||||||
|
- `master` → primary integration branch; activity after cutoff
|
||||||
|
- `new_branch` → `CHANGELOG.md` plus dependency changes; changelog rule forces substantive classification
|
||||||
|
- `play_with_dependabot` → comments out `apply from: "publish.gradle"`; behavior change is not a dependency-version update
|
||||||
|
- `task/28-migration_to_mpp` → multiplatform migration implementation
|
||||||
|
- `task/676-rework_of_media_groups` → media-group API/core implementation on both unequal local and remote tips
|
||||||
|
- `tg_channel_imh` → repository image asset history
|
||||||
|
|
||||||
|
## Gradle project/module discovery
|
||||||
|
|
||||||
|
- Gradle execution: skipped because the dirty non-master branch gate failed and unrelated Gradle processes were present; no daemon/process was reused, stopped, or modified
|
||||||
|
- master static project paths from `settings.gradle`: `:`, `:tgbotapi.core`, `:tgbotapi.ksp`, `:tgbotapi.api`, `:tgbotapi.utils`, `:tgbotapi.behaviour_builder`, `:tgbotapi.behaviour_builder.fsm`, `:tgbotapi`, `:tgbotapi.webapps`, `:docs`
|
||||||
|
- pre-migration dynamic module list: unavailable because Gradle execution was prohibited by the branch gate
|
||||||
|
- pre-migration reliable static module list: `[:, :tgbotapi.core, :tgbotapi.ksp, :tgbotapi.api, :tgbotapi.utils, :tgbotapi.behaviour_builder, :tgbotapi.behaviour_builder.fsm, :tgbotapi, :tgbotapi.webapps, :docs]`
|
||||||
|
- post-migration module list: unavailable because no migration occurred
|
||||||
|
- pre/post module equality: not evaluated; no equality claim
|
||||||
|
|
||||||
|
## `publishToMavenLocal` and Maven manifests
|
||||||
|
|
||||||
|
- `publishToMavenLocal` existence: static yes for `:tgbotapi.core`, `:tgbotapi.api`, `:tgbotapi.utils`, `:tgbotapi.behaviour_builder`, `:tgbotapi.behaviour_builder.fsm`, `:tgbotapi`, `:tgbotapi.webapps`; each module applies `gradle/templates/mpp_publish.gradle`, which applies `maven-publish`
|
||||||
|
- static no for `:tgbotapi.ksp` and `:docs`; root `:` does not directly apply `maven-publish`
|
||||||
|
- dynamic task existence verification: not run because the branch gate failed
|
||||||
|
- baseline Maven repository: not created
|
||||||
|
- baseline publication: not run
|
||||||
|
- baseline manifest: unavailable; no GAV/packaging/artifact/module mapping claim
|
||||||
|
- post Maven repository: not created
|
||||||
|
- post publication: not run
|
||||||
|
- post manifest: unavailable; no GAV/packaging/artifact/module mapping claim
|
||||||
|
- baseline/post manifest equality: not evaluated; no equality claim
|
||||||
|
|
||||||
|
## Files and changes
|
||||||
|
|
||||||
|
- tracked files changed by migration worker: none
|
||||||
|
- migration files changed: none
|
||||||
|
- pre-existing root worktree change preserved: `codex-master-baseline` gitlink reports nested untracked `.codex-gradle/`
|
||||||
|
- report artifact created: `.sol-migration-run-20260817T110101Z/REPORT.md`
|
||||||
|
- pre-existing inventory artifact retained: `.sol-migration-run-20260817T110101Z/inventory/logical-branches.txt`
|
||||||
|
- scope incident: branch-audit command accidentally created `/tmp/tgbot-logical.2283369.txt` outside the assigned repository
|
||||||
|
- scope remediation: exact accidental file `/tmp/tgbot-logical.2283369.txt` deleted with `apply_patch`; subsequent read-only absence check passed
|
||||||
|
- repository Gradle/Maven artifact paths created by migration worker: none
|
||||||
|
|
||||||
|
## Commands and validation results
|
||||||
|
|
||||||
|
- Git ref inventory/classification commands: exit `0`
|
||||||
|
- Git status/branch-gate commands: exit `0`; result=`dirty non-master blocked`
|
||||||
|
- static master settings/build/publication inspection: exit `0`
|
||||||
|
- Gradle module discovery: not run
|
||||||
|
- `kspCommonMainKotlinMetadata`: not run
|
||||||
|
- `apiDump`: not run
|
||||||
|
- build/test commands: not run
|
||||||
|
- `publishToMavenLocal`: not run
|
||||||
|
- baseline/post artifact equality: not evaluated
|
||||||
|
- module equality: not evaluated
|
||||||
|
|
||||||
|
## Final status
|
||||||
|
|
||||||
|
- final status: blocked
|
||||||
|
- reason: checkout started on dirty non-master branch `36.0.0`; explicit branch gate prohibited checkout, Gradle execution, baseline publication, tracked modification, and migration
|
||||||
@@ -0,0 +1,402 @@
|
|||||||
|
0.12.1
|
||||||
|
0.12.2
|
||||||
|
0.12.3
|
||||||
|
0.12.4
|
||||||
|
0.12.5
|
||||||
|
0.12.6
|
||||||
|
0.12.7
|
||||||
|
0.13.0
|
||||||
|
0.13.1
|
||||||
|
0.14.0
|
||||||
|
0.14.1
|
||||||
|
0.15.0
|
||||||
|
0.16.0
|
||||||
|
0.16.1
|
||||||
|
0.17.0
|
||||||
|
0.18.0
|
||||||
|
0.18.1
|
||||||
|
0.19.0
|
||||||
|
0.2.2
|
||||||
|
0.20.0
|
||||||
|
0.20.1
|
||||||
|
0.20.4
|
||||||
|
0.21.0
|
||||||
|
0.22.0
|
||||||
|
0.22.1
|
||||||
|
0.22.2
|
||||||
|
0.23.0
|
||||||
|
0.23.1
|
||||||
|
0.23.3
|
||||||
|
0.23.4
|
||||||
|
0.24.0
|
||||||
|
0.24.1
|
||||||
|
0.25.0
|
||||||
|
0.25.1
|
||||||
|
0.25.2
|
||||||
|
0.26.0
|
||||||
|
0.26.1
|
||||||
|
0.26.2
|
||||||
|
0.26.3
|
||||||
|
0.26.4
|
||||||
|
0.27.0
|
||||||
|
0.27.1
|
||||||
|
0.27.10
|
||||||
|
0.27.11
|
||||||
|
0.27.2
|
||||||
|
0.27.3
|
||||||
|
0.27.4
|
||||||
|
0.27.5
|
||||||
|
0.27.6
|
||||||
|
0.27.7
|
||||||
|
0.27.8
|
||||||
|
0.27.9
|
||||||
|
0.28.0
|
||||||
|
0.28.0-rc
|
||||||
|
0.28.1
|
||||||
|
0.28.2
|
||||||
|
0.28.3
|
||||||
|
0.28.4
|
||||||
|
0.28.5
|
||||||
|
0.29.0
|
||||||
|
0.29.1
|
||||||
|
0.29.2
|
||||||
|
0.29.3
|
||||||
|
0.29.4
|
||||||
|
0.29.5
|
||||||
|
0.3.12
|
||||||
|
0.30.0
|
||||||
|
0.30.1
|
||||||
|
0.30.10
|
||||||
|
0.30.11
|
||||||
|
0.30.12
|
||||||
|
0.30.13
|
||||||
|
0.30.2
|
||||||
|
0.30.3
|
||||||
|
0.30.4
|
||||||
|
0.30.5
|
||||||
|
0.30.6
|
||||||
|
0.30.7
|
||||||
|
0.30.8
|
||||||
|
0.30.9
|
||||||
|
0.31.0
|
||||||
|
0.31.1
|
||||||
|
0.32.0
|
||||||
|
0.32.1
|
||||||
|
0.32.10
|
||||||
|
0.32.2
|
||||||
|
0.32.3
|
||||||
|
0.32.4
|
||||||
|
0.32.5
|
||||||
|
0.32.6
|
||||||
|
0.32.7
|
||||||
|
0.32.8
|
||||||
|
0.32.9
|
||||||
|
0.33.0
|
||||||
|
0.33.1
|
||||||
|
0.33.2
|
||||||
|
0.33.3
|
||||||
|
0.33.4
|
||||||
|
0.34.0
|
||||||
|
0.34.1
|
||||||
|
0.35.0
|
||||||
|
0.35.1
|
||||||
|
0.35.2
|
||||||
|
0.35.3
|
||||||
|
0.35.4
|
||||||
|
0.35.5
|
||||||
|
0.35.6
|
||||||
|
0.35.7
|
||||||
|
0.35.8
|
||||||
|
0.35.9
|
||||||
|
0.36.0
|
||||||
|
0.36.1
|
||||||
|
0.36.2
|
||||||
|
0.37.0
|
||||||
|
0.37.1
|
||||||
|
0.37.2
|
||||||
|
0.37.3
|
||||||
|
0.37.4
|
||||||
|
0.38.0
|
||||||
|
0.38.1
|
||||||
|
0.38.10
|
||||||
|
0.38.11
|
||||||
|
0.38.12
|
||||||
|
0.38.13
|
||||||
|
0.38.14
|
||||||
|
0.38.15
|
||||||
|
0.38.16
|
||||||
|
0.38.17
|
||||||
|
0.38.18
|
||||||
|
0.38.19
|
||||||
|
0.38.2
|
||||||
|
0.38.20
|
||||||
|
0.38.21
|
||||||
|
0.38.22
|
||||||
|
0.38.23
|
||||||
|
0.38.3
|
||||||
|
0.38.33
|
||||||
|
0.38.4
|
||||||
|
0.38.5
|
||||||
|
0.38.6
|
||||||
|
0.38.7
|
||||||
|
0.38.8
|
||||||
|
0.38.9
|
||||||
|
0.39.0
|
||||||
|
0.5.1
|
||||||
|
1.0.0
|
||||||
|
1.0.1
|
||||||
|
1.1.0
|
||||||
|
1.1.1
|
||||||
|
1.1.2
|
||||||
|
1.1.3
|
||||||
|
1.1.4
|
||||||
|
1.2.0
|
||||||
|
10.0.0
|
||||||
|
10.0.1
|
||||||
|
10.1.0
|
||||||
|
10.1.1
|
||||||
|
10.1.2
|
||||||
|
11.0.0
|
||||||
|
12.0.0
|
||||||
|
12.0.1
|
||||||
|
12.1.0
|
||||||
|
13.0.0
|
||||||
|
13.1.0
|
||||||
|
14.0.0
|
||||||
|
14.0.1
|
||||||
|
14.0.2
|
||||||
|
14.1.0
|
||||||
|
15.0.0
|
||||||
|
15.1.0
|
||||||
|
15.1.1
|
||||||
|
15.2.0
|
||||||
|
15.3.0
|
||||||
|
16.0.0
|
||||||
|
17.0.0
|
||||||
|
17.1.0
|
||||||
|
18.0.0
|
||||||
|
18.1.0
|
||||||
|
18.2.0
|
||||||
|
18.2.1
|
||||||
|
18.2.2
|
||||||
|
18.2.3
|
||||||
|
19.0.0
|
||||||
|
19.1.0
|
||||||
|
2.0.0
|
||||||
|
2.0.1
|
||||||
|
2.0.2
|
||||||
|
2.0.3
|
||||||
|
2.1.0
|
||||||
|
2.1.1
|
||||||
|
2.1.2
|
||||||
|
2.1.3
|
||||||
|
2.2.0
|
||||||
|
2.2.1
|
||||||
|
2.2.2
|
||||||
|
20.0.0
|
||||||
|
20.0.1
|
||||||
|
20.1.0
|
||||||
|
21.0.0
|
||||||
|
21.0.1
|
||||||
|
22.0.0
|
||||||
|
23.0.0
|
||||||
|
23.1.0
|
||||||
|
23.1.1
|
||||||
|
23.1.2
|
||||||
|
23.2.0
|
||||||
|
23.2.1
|
||||||
|
24.0.0
|
||||||
|
24.0.1
|
||||||
|
24.0.2
|
||||||
|
25.0.0
|
||||||
|
25.0.1
|
||||||
|
25.0.2
|
||||||
|
26.0.0
|
||||||
|
26.1.0
|
||||||
|
26.2.0
|
||||||
|
27.0.0
|
||||||
|
27.1.0
|
||||||
|
27.1.1
|
||||||
|
27.1.2
|
||||||
|
28.0.0
|
||||||
|
28.0.1
|
||||||
|
28.0.2
|
||||||
|
28.0.3
|
||||||
|
29.0.0
|
||||||
|
29.0.1
|
||||||
|
29.1.0
|
||||||
|
3.0.0
|
||||||
|
3.0.1
|
||||||
|
3.0.2
|
||||||
|
3.0.3
|
||||||
|
3.1.0
|
||||||
|
3.1.1
|
||||||
|
3.1.2
|
||||||
|
3.2.0
|
||||||
|
3.2.1
|
||||||
|
3.2.2
|
||||||
|
3.2.3
|
||||||
|
3.2.4
|
||||||
|
3.2.5
|
||||||
|
3.2.6
|
||||||
|
3.2.7
|
||||||
|
3.3.0
|
||||||
|
3.3.1
|
||||||
|
30.0.0
|
||||||
|
30.0.1
|
||||||
|
30.0.2
|
||||||
|
31.0.0
|
||||||
|
31.0.1
|
||||||
|
31.1.0
|
||||||
|
31.2.0
|
||||||
|
32.0.0
|
||||||
|
33.0.0
|
||||||
|
33.1.0
|
||||||
|
33.2.0
|
||||||
|
34.0.0
|
||||||
|
35.0.0
|
||||||
|
35.0.1
|
||||||
|
35.1.0
|
||||||
|
35.1.1
|
||||||
|
36.0.0
|
||||||
|
4.0.0
|
||||||
|
4.1.0
|
||||||
|
4.1.1
|
||||||
|
4.1.2
|
||||||
|
4.1.3
|
||||||
|
4.2.0
|
||||||
|
4.2.1
|
||||||
|
4.2.2
|
||||||
|
4.2.3
|
||||||
|
4.2.4
|
||||||
|
5.0.0
|
||||||
|
5.0.1
|
||||||
|
5.0.2
|
||||||
|
5.1.0
|
||||||
|
5.1.1
|
||||||
|
5.2.0
|
||||||
|
5.2.1
|
||||||
|
6.0.0
|
||||||
|
6.0.1
|
||||||
|
6.0.2
|
||||||
|
6.0.3
|
||||||
|
6.1.0
|
||||||
|
6.2.0
|
||||||
|
7.0.0
|
||||||
|
7.0.1
|
||||||
|
7.0.2
|
||||||
|
7.1.0
|
||||||
|
7.1.1
|
||||||
|
7.1.2
|
||||||
|
7.1.3
|
||||||
|
8.0.0
|
||||||
|
8.0.1
|
||||||
|
8.0.2
|
||||||
|
8.1.0
|
||||||
|
8.1.1
|
||||||
|
9.0.0
|
||||||
|
9.1.0
|
||||||
|
9.1.1
|
||||||
|
9.1.2
|
||||||
|
9.2.0
|
||||||
|
9.2.1
|
||||||
|
9.2.2
|
||||||
|
9.2.3
|
||||||
|
9.2.4
|
||||||
|
9.3.0
|
||||||
|
9.3.0-RC
|
||||||
|
9.4.0
|
||||||
|
9.4.1
|
||||||
|
9.4.2
|
||||||
|
9.4.3
|
||||||
|
HEAD
|
||||||
|
feature/fsm
|
||||||
|
feature/passport
|
||||||
|
garbage
|
||||||
|
gradle-wrapper/6.9
|
||||||
|
implement_telegram_passport
|
||||||
|
init_kdocs
|
||||||
|
kdocs
|
||||||
|
klassindex
|
||||||
|
lib_to_common
|
||||||
|
master
|
||||||
|
new_branch
|
||||||
|
play_with_dependabot
|
||||||
|
renovate/com.benasher44-uuid-0.x
|
||||||
|
renovate/com.jfrog.bintray.gradle-gradle-bintray-plugin-1.x
|
||||||
|
renovate/com.soywiz.korlibs.klock-klock-1.x
|
||||||
|
renovate/com.soywiz.korlibs.klock-klock-2.x
|
||||||
|
renovate/dev.inmo-micro_utils.coroutines-0.x
|
||||||
|
renovate/dev.inmo-micro_utils.crypto-0.x
|
||||||
|
renovate/dev.inmo-micro_utils.serialization.base64-0.x
|
||||||
|
renovate/dev.inmo-micro_utils.serialization.encapsulator-0.x
|
||||||
|
renovate/dev.inmo-micro_utils.serialization.typed_serializer-0.x
|
||||||
|
renovate/dokka
|
||||||
|
renovate/dokka_version
|
||||||
|
renovate/github.release.plugin
|
||||||
|
renovate/github_release_plugin_version
|
||||||
|
renovate/gradle-6.x
|
||||||
|
renovate/gradle-7.x
|
||||||
|
renovate/gradle-8.x
|
||||||
|
renovate/gradle-9.x
|
||||||
|
renovate/io.ktor-ktor-client-cio-1.x
|
||||||
|
renovate/io.ktor-ktor-client-core-1.x
|
||||||
|
renovate/io.ktor-ktor-server-1.x
|
||||||
|
renovate/io.ktor-ktor-server-host-common-1.x
|
||||||
|
renovate/klock_version
|
||||||
|
renovate/korlibs
|
||||||
|
renovate/kotlin
|
||||||
|
renovate/kotlin-coroutines
|
||||||
|
renovate/kotlin-monorepo
|
||||||
|
renovate/kotlin-poet
|
||||||
|
renovate/kotlin-serialization
|
||||||
|
renovate/kotlin.coroutines
|
||||||
|
renovate/kotlin.poet
|
||||||
|
renovate/kotlin.serialization
|
||||||
|
renovate/kotlin_coroutines_version
|
||||||
|
renovate/kotlin_serialisation_runtime_version
|
||||||
|
renovate/kotlin_version
|
||||||
|
renovate/kotlinx-coroutines-monorepo
|
||||||
|
renovate/kslog
|
||||||
|
renovate/ksp
|
||||||
|
renovate/ksp-monorepo
|
||||||
|
renovate/ktor
|
||||||
|
renovate/ktor-monorepo
|
||||||
|
renovate/ktor_version
|
||||||
|
renovate/major-dokka
|
||||||
|
renovate/major-kotlin
|
||||||
|
renovate/major-kotlin-monorepo
|
||||||
|
renovate/major-kotlin.poet
|
||||||
|
renovate/major-ksp
|
||||||
|
renovate/major-ktor-monorepo
|
||||||
|
renovate/major-ktor_version
|
||||||
|
renovate/micro_utils_version
|
||||||
|
renovate/microutils
|
||||||
|
renovate/nmcp
|
||||||
|
renovate/org.jetbrains.dokka-1.x
|
||||||
|
renovate/org.jetbrains.dokka-dokka-gradle-plugin-0.x
|
||||||
|
renovate/org.jetbrains.dokka-dokka-gradle-plugin-1.x
|
||||||
|
renovate/org.jetbrains.dokka-gfm-plugin-1.x
|
||||||
|
renovate/org.jetbrains.dokka-org.jetbrains.dokka.gradle.plugin-0.x
|
||||||
|
renovate/org.jetbrains.dokka-org.jetbrains.dokka.gradle.plugin-1.x
|
||||||
|
renovate/org.jetbrains.kotlin-kotlin-gradle-plugin-1.x
|
||||||
|
renovate/org.jetbrains.kotlin-kotlin-serialization-1.x
|
||||||
|
renovate/org.jetbrains.kotlin.multiplatform-1.x
|
||||||
|
renovate/org.jetbrains.kotlin.multiplatform-org.jetbrains.kotlin.multiplatform.gradle.plugin-1.x
|
||||||
|
renovate/org.jetbrains.kotlin.plugin.serialization-1.x
|
||||||
|
renovate/org.jetbrains.kotlin.plugin.serialization-org.jetbrains.kotlin.plugin.serialization.gradle.plugin-1.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-coroutines-core-1.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-serialization-json-1.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-serialization-properties-1.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-serialization-properties-common-0.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-serialization-properties-js-0.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-serialization-runtime-0.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-serialization-runtime-common-0.x
|
||||||
|
renovate/org.jetbrains.kotlinx-kotlinx-serialization-runtime-js-0.x
|
||||||
|
renovate/uuid
|
||||||
|
renovate/uuid_version
|
||||||
|
renovate/validator
|
||||||
|
renovate/versions
|
||||||
|
task/28-migration_to_mpp
|
||||||
|
task/676-rework_of_media_groups
|
||||||
|
tg_channel_imh
|
||||||
74
CHANGELOG.md
74
CHANGELOG.md
@@ -1,5 +1,79 @@
|
|||||||
# TelegramBotAPI changelog
|
# TelegramBotAPI changelog
|
||||||
|
|
||||||
|
## 36.0.0
|
||||||
|
|
||||||
|
**THIS UPDATE CONTAINS SUPPORT OF [TELEGRAM BOTS API 10.2](https://core.telegram.org/bots/api-changelog#july-14-2026)**
|
||||||
|
|
||||||
|
**Breaking changes**:
|
||||||
|
|
||||||
|
* `RichBlockTableCell.align` now uses the string-serialized `RichBlockTableCellAlign` sealed hierarchy (`Left`, `Center`, or `Right`) instead of `String`
|
||||||
|
* `RichBlockTableCell.valign` now uses the string-serialized `RichBlockTableCellVAlign` sealed hierarchy (`Top`, `Middle`, or `Bottom`) instead of `String`
|
||||||
|
* `RichBlockTableCell` is now a sealed interface with `Header` and `Regular` implementations; the input table DSL uses `headerCell` and `cell` respectively
|
||||||
|
* `InputRichBlockListItem` is now a sealed interface with `Ordered` and `Unordered` implementations; ordered items require a non-null `value` and typed `LabelType`, while `LabelType.Decimals` is the default; `InputRichBlocksBuilder` now exposes separate `orderedList` and `unorderedList` DSL functions with matching item builders
|
||||||
|
* `ReplyParameters` is now a sealed interface with nested `ReplyParameters.Chat` and `ReplyParameters.Ephemeral` implementations; overloaded `ReplyParameters(...)` companion factories construct both regular-message and ephemeral-message variants
|
||||||
|
* The 4 group-family message implementations (`CommonGroupContentMessageImpl`, `CommonForumContentMessageImpl`, `CommonChannelDirectMessagesContentMessageImpl`, `CommonSuggestedChannelDirectMessagesContentMessageImpl`) gained trailing `receiverUser`/`ephemeralMessageId` primary-constructor parameters (defaulted to `null`) — positional construction of these classes must be updated
|
||||||
|
* `reply(to = ...)` overloads for the 13 ephemeral-capable senders (see below) now detect an ephemeral `to` target (`to is PossiblyEphemeralMessage && to.ephemeralMessageId != null`) and automatically address the reply through `ephemeral_message_id`, sending the outgoing message itself as ephemeral to the same receiver — this is a behavior change for any existing code that replies to a message carrying a non-null `ephemeralMessageId`
|
||||||
|
|
||||||
|
**Migration advice**: Keep `ReplyParameters(...)` for both chat-message and ephemeral-message targets; explicit `ReplyParameters.Ephemeral(...)` subtype construction also remains available; pass `receiverUser`/`ephemeralMessageId` explicitly (or rely on their `null` default) when constructing the 4 group-family message implementations positionally
|
||||||
|
|
||||||
|
* `Core`:
|
||||||
|
* (`Rich Messages`) Added the raw-string-serialized `RichBlockTableCellVAlign` hierarchy and migrated table-cell vertical alignment from `String` to `RichBlockTableCellVAlign`
|
||||||
|
* (`Rich Messages`) Added the raw-string-serialized `RichBlockTableCellAlign` hierarchy and migrated table-cell alignment from `String` to `RichBlockTableCellAlign`
|
||||||
|
* (`Rich Messages`) Split `RichBlockTableCell` into header/regular variants with a shared flat surrogate serializer; added `headerCell` to the input table DSL
|
||||||
|
* (`Rich Messages`) Added `h1` through `h6` shortcuts for plain and rich-text headings in `InputRichBlocksBuilder`
|
||||||
|
* (`Rich Messages`) Reworked the input table DSL to build cells through nested `table { row { cell(...) { } } }` builders
|
||||||
|
* (`Rich Messages`) Replaced the flat `InputRichBlockListItem` data class with ordered/unordered variants, added the string-serialized `LabelType` hierarchy (`A`, `a`, `I`, `i`, `1`), and split the list DSL into `InputRichBlockOrderedListBuilder`/`InputRichBlockUnorderedListBuilder`
|
||||||
|
* (`Rich Messages`) Added `InputRichBlock` hierarchy with all 21 `InputRichBlock*` types (mirroring the received `RichBlock*` hierarchy and reusing `RichText`/`RichBlockCaption`/`RichBlockTableCell`), the label-less `InputRichBlockListItem` and the `InputRichBlockSerializer`; every `InputRichBlock` exposes `subBlocks` navigation
|
||||||
|
* (`Rich Messages`) Added `TelegramMediaVoiceNote` (`InputMediaVoiceNote`) and the `RichMessageMemberTelegramMedia` marker interface implemented by it, `TelegramMediaAnimation`, `TelegramMediaAudio`, `TelegramMediaPhoto` and `TelegramMediaVideo`; added `VoiceFile.toTelegramMediaVoiceNote` converters
|
||||||
|
* (`Rich Messages`) Added `InputRichMessageMedia` type (media referenced from `InputRichMessage.html`/`.markdown` via `tg://photo?id=`, `tg://video?id=` and `tg://audio?id=` links)
|
||||||
|
* (`Rich Messages`) `InputRichMessage` gained `blocks` and `media` fields ("exactly one of `html`, `markdown` or `blocks` must be used") and the `InputRichMessageBlocks` factory; `InputRichMessageHTML`/`InputRichMessageMarkdown` gained a trailing `media` parameter
|
||||||
|
* (`Rich Messages`) Added Rich Messages input DSL builders `buildInputRichBlocks`/`InputRichBlocksBuilder`, typed ordered/unordered list builders and the `InputRichMessageBlocks { }` builder overload (marked with the `@RichTextDsl` DSL marker)
|
||||||
|
* (`Rich Messages`) `SendRichMessage` now supports `attach://` upload of new files referenced from `InputRichMessage.blocks`/`.media`; `SendRichMessageDraft` now rejects rich messages that require direct file upload (unsupported by the method)
|
||||||
|
* (`Ephemeral Messages`) Added `EphemeralMessageId` value class, `PossiblyEphemeralMessage` (`receiverUser`/`ephemeralMessageId`) and `EphemeralMessageAction` (`receiverUserId`/`ephemeralMessageId`) abstractions
|
||||||
|
* (`Ephemeral Messages`) `RawMessage` parses `receiver_user`/`ephemeral_message_id`; the 4 group-family `Common*ContentMessage` types (`CommonGroupContentMessage`, `CommonForumContentMessage`, `CommonChannelDirectMessagesContentMessage`, `CommonSuggestedChannelDirectMessagesContentMessage`, via the shared `PotentiallyFromUserGroupContentMessage`) now also implement `PossiblyEphemeralMessage`
|
||||||
|
* (`Ephemeral Messages`) `BotCommand` gained the `isEphemeral` field
|
||||||
|
* (`Ephemeral Messages`) `ReplyParameters` became a sealed interface with nested `Chat` and `Ephemeral` implementations and a shared surrogate-backed serializer preserving the flat Bot API JSON shape; added the `Message.ephemeralReplyParametersOrNull()`/`Message.ephemeralReplyReceiverUserIdOrNull` helpers used by the `reply(to = ...)` smart-branch
|
||||||
|
* (`Ephemeral Messages`) `ReplyParameters.Ephemeral` and `Message.ephemeralReplyParametersOrNull()` support and forward `allowSendingWithoutReply`, `checklistTaskId`, and `pollOptionId` together with `ephemeralMessageId`
|
||||||
|
* (`Ephemeral Messages`) Added `receiverUserId`/`callbackQueryId` params (via the new `OptionallyEphemeralSendRequest`) to the 13 ephemeral-capable send requests: `SendTextMessage`, `SendContact`, `SendLocation` (`Static`/`Live`), `SendVenue`, `SendPhotoData`, `SendLivePhotoData`, `SendAudioData`, `SendDocumentData`, `SendVideoData`, `SendAnimationData`, `SendVoiceData`, `SendVideoNoteData`, `SendStickerByFileId`
|
||||||
|
* (`Ephemeral Messages`) Added `EditEphemeralMessageText`/`EditEphemeralMessageMedia`/`EditEphemeralMessageCaption`/`EditEphemeralMessageReplyMarkup` and `DeleteEphemeralMessage` requests (all return `Unit`, mirroring the inline-message edit family); `EditEphemeralMessageMedia` rejects `MultipartFile` media (new file upload is not supported for ephemeral edits)
|
||||||
|
* (`Ephemeral Messages`) Added `EphemeralChatId` (`IdChatIdentifier`, carrying `chatId`/`receiverUser`/`ephemeralMessageId`) and the `ChatIdentifier.receiverUser`/`ChatIdentifier.ephemeralMessageId` extensions (mirroring `ChatIdentifier.threadId`); `FullChatIdentifierSerializer` gained the `chatId/eph/receiverUserChatId/ephemeralMessageId` string format. The nullable `receiverUserId` param of the 13 ephemeral-capable send requests still defaults from the passed `chatId` when it is an `EphemeralChatId`; `DeleteEphemeralMessage` and `EditEphemeralMessageText`/`EditEphemeralMessageCaption`/`EditEphemeralMessageMedia`/`EditEphemeralMessageReplyMarkup` instead keep `receiverUserId`/`ephemeralMessageId` REQUIRED on their primary constructor/factory form, gaining `EphemeralChatId`-taking secondary constructors/factory overloads that source both params from the identifier (throwing `IllegalArgumentException` if it carries no `ephemeralMessageId`)
|
||||||
|
* (`Communities`) Added `CommunityId` value class and `Community` type (`id`/`name`)
|
||||||
|
* (`Communities`) Added `CommunityChatAdded` (`community`) and `CommunityChatRemoved` (fieldless) chat events (`CommonEvent`); `RawMessage` parses `community_chat_added`/`community_chat_removed`
|
||||||
|
* (`Communities`) Added `community` field to `ExtendedChat` (`ChatFullInfo.community`), parsed for `ExtendedChannelChatImpl`, `ExtendedGroupChatImpl`, `ExtendedSupergroupChatImpl`, `ExtendedForumChatImpl`, `ExtendedChannelDirectMessagesChatImpl` and `ExtendedBot`
|
||||||
|
* (`Bot Subscriptions`) Added `BotSubscriptionUpdated` (`user`, `invoicePayload`, `state`) and `BotSubscriptionUpdatedUpdate`; `state` is modeled as the typed sealed `BotSubscriptionUpdated.State` (`Canceled`/`Active`/`Failed`, with an `Unknown` fallback), mirroring `TransactionType`
|
||||||
|
* (`Bot Subscriptions`) `RawUpdate` parses the new `subscription` field; added `UPDATE_SUBSCRIPTION` to `ALL_UPDATES_LIST_WITHOUT_REACTIONS`; `FlowsUpdatesFilter` gained `botSubscriptionUpdatedUpdatesFlow`
|
||||||
|
* `API`:
|
||||||
|
* (`Ephemeral Messages`) Threaded `receiverUserId`/`callbackQueryId` through the `sendXxx`/`send`/`reply`/`replyWithXxx` extensions for the 13 ephemeral-capable senders (`send/Sends.kt`, `send/Replies.kt`, `send/RepliesWithChatsAndMessages.kt` and their per-type extension files); `reply(to = ...)` now automatically sends an ephemeral reply when `to` is itself ephemeral (see Breaking changes)
|
||||||
|
* (`Ephemeral Messages`) Ephemeral-capable `reply(to = ...)` overloads gained `replyToEphemeralMessageId`, defaulting from `PossiblyEphemeralMessage.ephemeralMessageId`; direct and dispatcher overloads forward the explicit target into `ephemeralReplyParametersOrNull`
|
||||||
|
* (`Ephemeral Messages`) Added 48 ephemeral-only `reply`/`replyWithXxx` overloads in `RepliesWithEphemeral.kt` without a `ChatMessage`; each overload requires `replyInChatId`, `receiverUserId`, and `replyToEphemeralMessageId`, with complete content-form and dispatcher parity across the 13 ephemeral-capable senders
|
||||||
|
* (`Ephemeral Messages`) Added `editEphemeralMessageText`/`editEphemeralMessageMedia`/`editEphemeralMessageCaption`/`editEphemeralMessageReplyMarkup` and `deleteEphemeralMessage` `TelegramBot` extensions (the latter also accepts a `PossiblyEphemeralMessage` directly)
|
||||||
|
* (`Ephemeral Messages`) Added explicit `replyToEphemeral`/`replyToEphemeralWithXxx` `TelegramBot` extensions for the 13 ephemeral-capable senders, replying to an ephemeral message by `chatId`/`ephemeralMessageId` without requiring the original `Message` object
|
||||||
|
* (`Ephemeral Messages`) `receiverUserId`/`ephemeralMessageId` params of the edit/delete/`replyToEphemeral*` extensions remain REQUIRED on the `chatId: ChatIdentifier`/`chat: Chat` forms; each `chatId: ChatIdentifier` form additionally gained a convenience overload taking `chatId: EphemeralChatId` (dropping `receiverUserId`/`ephemeralMessageId`) that sources both from the identifier, throwing `IllegalArgumentException` if it carries no `ephemeralMessageId` (the `chat: Chat` forms got no such overload, since `Chat.id` is statically only an `IdChatIdentifier`); `Replies.kt`'s `receiverUserId` default now also checks `replyInChatId.receiverUser` before falling back to `to.ephemeralReplyReceiverUserIdOrNull`
|
||||||
|
* (`Ephemeral Messages`) Not covered by this iteration (follow-up): `createResend`/`ResendMessage` do not carry ephemeral fields (a resend is always a regular message); `handleLiveLocation` and the generic `reply(mediaFile = ...)`/`reply(content = ...)` dispatchers in `RepliesWithChatsAndMessages.kt`'s `copyMessage`/live-location branches are unaffected; `behaviour_builder` triggers/waiters gained no ephemeral-specific helpers
|
||||||
|
* `BehaviourBuilder`:
|
||||||
|
* (`Communities`) Added `onCommunityChatAdded`/`onCommunityChatRemoved` triggers
|
||||||
|
* (`Communities`) Added `waitCommunityChatAdded`/`waitCommunityChatRemoved` and `waitCommunityChatAddedEventsMessages`/`waitCommunityChatRemovedEventsMessages` expectations
|
||||||
|
* (`Bot Subscriptions`) Added `onBotSubscriptionUpdated` trigger, `waitBotSubscriptionUpdated` expectation and `ByUserBotSubscriptionUpdatedMarkerFactory`
|
||||||
|
* `Utils`:
|
||||||
|
* (`Bot Subscriptions`) Added class casts for `BotSubscriptionUpdatedUpdate` (`whenBotSubscriptionUpdatedUpdate`/`asBotSubscriptionUpdatedUpdate`/`requireBotSubscriptionUpdatedUpdate`); regenerated class casts extensions (`botSubscriptionUpdatedUpdateOrNull`/`OrThrow`, `botSubscriptionUpdatedOrNull`/`OrThrow`)
|
||||||
|
* `WebApps`:
|
||||||
|
* Telegram hardened Mini App method-origin security, auto-enabling for all Mini Apps on July 20, 2026; no library change required
|
||||||
|
|
||||||
|
## 35.1.0
|
||||||
|
|
||||||
|
* `Dependencies`:
|
||||||
|
* `Kotlin`: `2.3.20` -> `2.3.21`
|
||||||
|
* `Coroutines`: `1.10.2` -> `1.11.0`
|
||||||
|
* `Ktor`: `3.4.2` -> `3.5.1`
|
||||||
|
* `KSP`: `2.3.6` -> `2.3.9`
|
||||||
|
* `MicroUtils`: `0.29.2` -> `0.30.0`
|
||||||
|
* `Dokka`: `2.0.0` -> `2.2.0`
|
||||||
|
* `Versions`: `0.53.0` -> `0.54.0`
|
||||||
|
* `NMCP`: `1.4.4` -> `1.6.0`
|
||||||
|
* `Build`:
|
||||||
|
* Updated Gradle wrapper `8.13` -> `9.6.1` and migrated build scripts to be Gradle 9 compatible (`Project.exec` -> `providers.exec`, `tasks.whenTaskAdded` -> `tasks.configureEach`)
|
||||||
|
* Migrated Dokka documentation to the Dokka Gradle Plugin v2: the `docs` module is now included in the build as the KDocs aggregator (`./gradlew :docs:dokkaGenerate`) and the `Publish KDocs` workflow was updated accordingly
|
||||||
|
|
||||||
## 35.0.0
|
## 35.0.0
|
||||||
|
|
||||||
**THIS UPDATE CONTAINS SUPPORT OF [TELEGRAM BOTS API 10.1](https://core.telegram.org/bots/api-changelog#june-11-2026)**
|
**THIS UPDATE CONTAINS SUPPORT OF [TELEGRAM BOTS API 10.1](https://core.telegram.org/bots/api-changelog#june-11-2026)**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# TelegramBotAPI [](https://central.sonatype.com/artifact/dev.inmo/tgbotapi) [](https://core.telegram.org/bots/api-changelog#june-11-2026)
|
# TelegramBotAPI [](https://central.sonatype.com/artifact/dev.inmo/tgbotapi) [](https://core.telegram.org/bots/api-changelog#july-14-2026)
|
||||||
|
|
||||||
| Docs | [](https://tgbotapi.inmo.dev/index.html) [](https://docs.inmo.dev/tgbotapi/index.html) |
|
| Docs | [](https://tgbotapi.inmo.dev/index.html) [](https://docs.inmo.dev/tgbotapi/index.html) |
|
||||||
|:----------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
|:----------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||||
|
|||||||
@@ -60,3 +60,13 @@ All work MUST be performed in the normal (main) working worktree of the reposito
|
|||||||
---
|
---
|
||||||
|
|
||||||
When a prompt contains a list of several subtasks, run each subtask as its own subagent (one subagent per subtask) instead of doing all of them inline in the main thread.
|
When a prompt contains a list of several subtasks, run each subtask as its own subagent (one subagent per subtask) instead of doing all of them inline in the main thread.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
For any substantial change, drive it through a three-phase agent pipeline, each phase run as its own subagent(s), and each section/subtask committed separately:
|
||||||
|
|
||||||
|
1. **Plan / Architect** the changes — model range best → medium, best is the most suitable.
|
||||||
|
2. **Coding / implementation** — model range medium → high, medium is the most suitable.
|
||||||
|
3. **Check / validation** — model range high → best, high is the most suitable.
|
||||||
|
|
||||||
|
Model tiers: **best = Fable**, **high = Opus**, **medium = Sonnet**. (Tier names, not the concrete models, are the contract — remap the models if the roster changes.)
|
||||||
|
|||||||
15
build.gradle
15
build.gradle
@@ -21,6 +21,11 @@ plugins {
|
|||||||
alias(libs.plugins.nmcp.aggregation)
|
alias(libs.plugins.nmcp.aggregation)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// docs is a dokka-only aggregator module, exclude it from binary compatibility validation
|
||||||
|
apiValidation {
|
||||||
|
ignoredProjects += ["docs"]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
|
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
|
||||||
nmcpAggregation {
|
nmcpAggregation {
|
||||||
@@ -44,7 +49,7 @@ allprojects {
|
|||||||
mavenLocal()
|
mavenLocal()
|
||||||
}
|
}
|
||||||
if (it != rootProject.findProject("docs")) {
|
if (it != rootProject.findProject("docs")) {
|
||||||
tasks.whenTaskAdded { task ->
|
tasks.configureEach { task ->
|
||||||
if(task.name == "jsLegacyBrowserTest" || task.name == "jsLegacyNodeTest") {
|
if(task.name == "jsLegacyBrowserTest" || task.name == "jsLegacyNodeTest") {
|
||||||
task.enabled = false
|
task.enabled = false
|
||||||
}
|
}
|
||||||
@@ -54,13 +59,9 @@ allprojects {
|
|||||||
apply from: "./extensions.gradle"
|
apply from: "./extensions.gradle"
|
||||||
|
|
||||||
private String getCurrentVersionChangelog() {
|
private String getCurrentVersionChangelog() {
|
||||||
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
return providers.exec {
|
||||||
exec {
|
|
||||||
standardOutput = changelogDataOS
|
|
||||||
commandLine './changelog_info_retriever', "$library_version", 'CHANGELOG.md'
|
commandLine './changelog_info_retriever', "$library_version", 'CHANGELOG.md'
|
||||||
}
|
}.standardOutput.asText.get().trim()
|
||||||
|
|
||||||
return changelogDataOS.toString().trim()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
codex-master-baseline
Submodule
1
codex-master-baseline
Submodule
Submodule codex-master-baseline added at c7761fd294
@@ -39,14 +39,10 @@ private List<SourceDirectorySet> findSourcesWithName(String... approximateNames)
|
|||||||
}.collect { it.kotlin }
|
}.collect { it.kotlin }
|
||||||
}
|
}
|
||||||
|
|
||||||
Object callback = {
|
dokka {
|
||||||
switch (true) {
|
// aggregating every module's sources into one publication needs more heap than the worker default
|
||||||
case project.hasProperty("DOKKA_PATH"):
|
dokkaGeneratorIsolation = ProcessIsolation {
|
||||||
outputDirectory = project.property("DOKKA_PATH").toString()
|
it.maxHeapSize.set("4g")
|
||||||
break
|
|
||||||
case System.getenv("DOKKA_PATH") != null:
|
|
||||||
outputDirectory = System.getenv("DOKKA_PATH")
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dokkaSourceSets {
|
dokkaSourceSets {
|
||||||
@@ -55,7 +51,7 @@ Object callback = {
|
|||||||
|
|
||||||
sourceLink {
|
sourceLink {
|
||||||
localDirectory.set(file("../"))
|
localDirectory.set(file("../"))
|
||||||
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/ktgbotapi"))
|
remoteUrl.set(new URI("https://github.com/InsanusMokrassar/ktgbotapi"))
|
||||||
remoteLineSuffix.set("#L")
|
remoteLineSuffix.set("#L")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -73,6 +69,3 @@ Object callback = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.dokkaGfm(callback)
|
|
||||||
tasks.dokkaHtml(callback)
|
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ kotlin.incremental=true
|
|||||||
kotlin.incremental.js=true
|
kotlin.incremental.js=true
|
||||||
|
|
||||||
library_group=dev.inmo
|
library_group=dev.inmo
|
||||||
library_version=35.0.0
|
library_version=36.0.0
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
kotlin = "2.3.20"
|
kotlin = "2.3.21"
|
||||||
kotlin-serialization = "1.11.0"
|
kotlin-serialization = "1.11.0"
|
||||||
kotlin-coroutines = "1.10.2"
|
kotlin-coroutines = "1.11.0"
|
||||||
|
|
||||||
javax-activation = "1.1.1"
|
javax-activation = "1.1.1"
|
||||||
|
|
||||||
korlibs = "5.4.0"
|
korlibs = "5.4.0"
|
||||||
uuid = "0.8.4"
|
uuid = "0.8.4"
|
||||||
ktor = "3.4.2"
|
ktor = "3.5.1"
|
||||||
|
|
||||||
ksp = "2.3.6"
|
ksp = "2.3.9"
|
||||||
kotlin-poet = "2.3.0"
|
kotlin-poet = "2.3.0"
|
||||||
|
|
||||||
microutils = "0.29.2"
|
microutils = "0.30.0"
|
||||||
kslog = "1.6.1"
|
kslog = "1.6.1"
|
||||||
|
|
||||||
versions = "0.53.0"
|
versions = "0.54.0"
|
||||||
|
|
||||||
github-release-plugin = "2.5.2"
|
github-release-plugin = "2.5.2"
|
||||||
dokka = "2.0.0"
|
dokka = "2.2.0"
|
||||||
|
|
||||||
validator = "0.18.1"
|
validator = "0.18.1"
|
||||||
nmcp = "1.4.4"
|
nmcp = "1.6.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
||||||
|
|||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,7 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
|
||||||
|
networkTimeout=10000
|
||||||
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
|
||||||
|
|||||||
311
gradlew
vendored
311
gradlew
vendored
@@ -1,78 +1,129 @@
|
|||||||
#!/usr/bin/env sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright © 2015-2021 the original authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
##
|
#
|
||||||
## Gradle start up script for UN*X
|
# Gradle start up script for POSIX generated by Gradle.
|
||||||
##
|
#
|
||||||
|
# Important for running:
|
||||||
|
#
|
||||||
|
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||||
|
# noncompliant, but you have some other compliant shell such as ksh or
|
||||||
|
# bash, then to run this script, type that shell name before the whole
|
||||||
|
# command line, like:
|
||||||
|
#
|
||||||
|
# ksh Gradle
|
||||||
|
#
|
||||||
|
# Busybox and similar reduced shells will NOT work, because this script
|
||||||
|
# requires all of these POSIX shell features:
|
||||||
|
# * functions;
|
||||||
|
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||||
|
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||||
|
# * compound commands having a testable exit status, especially «case»;
|
||||||
|
# * various built-in commands including «command», «set», and «ulimit».
|
||||||
|
#
|
||||||
|
# Important for patching:
|
||||||
|
#
|
||||||
|
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||||
|
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||||
|
#
|
||||||
|
# The "traditional" practice of packing multiple parameters into a
|
||||||
|
# space-separated string is a well documented source of bugs and security
|
||||||
|
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||||
|
# options in "$@", and eventually passing that to Java.
|
||||||
|
#
|
||||||
|
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||||
|
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||||
|
# see the in-line comments for details.
|
||||||
|
#
|
||||||
|
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||||
|
# Darwin, MinGW, and NonStop.
|
||||||
|
#
|
||||||
|
# (3) This script is generated from the Groovy template
|
||||||
|
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
|
# within the Gradle project.
|
||||||
|
#
|
||||||
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
# Attempt to set APP_HOME
|
# Attempt to set APP_HOME
|
||||||
|
|
||||||
# Resolve links: $0 may be a link
|
# Resolve links: $0 may be a link
|
||||||
PRG="$0"
|
app_path=$0
|
||||||
# Need this for relative symlinks.
|
|
||||||
while [ -h "$PRG" ] ; do
|
# Need this for daisy-chained symlinks.
|
||||||
ls=`ls -ld "$PRG"`
|
while
|
||||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||||
if expr "$link" : '/.*' > /dev/null; then
|
[ -h "$app_path" ]
|
||||||
PRG="$link"
|
do
|
||||||
else
|
ls=$( ls -ld "$app_path" )
|
||||||
PRG=`dirname "$PRG"`"/$link"
|
link=${ls#*' -> '}
|
||||||
fi
|
case $link in #(
|
||||||
|
/*) app_path=$link ;; #(
|
||||||
|
*) app_path=$APP_HOME$link ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
SAVED="`pwd`"
|
|
||||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
|
||||||
APP_HOME="`pwd -P`"
|
|
||||||
cd "$SAVED" >/dev/null
|
|
||||||
|
|
||||||
APP_NAME="Gradle"
|
# This is normally unused
|
||||||
APP_BASE_NAME=`basename "$0"`
|
# shellcheck disable=SC2034
|
||||||
|
APP_BASE_NAME=${0##*/}
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||||
DEFAULT_JVM_OPTS=""
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD="maximum"
|
MAX_FD=maximum
|
||||||
|
|
||||||
warn () {
|
warn () {
|
||||||
echo "$*"
|
echo "$*"
|
||||||
}
|
} >&2
|
||||||
|
|
||||||
die () {
|
die () {
|
||||||
echo
|
echo
|
||||||
echo "$*"
|
echo "$*"
|
||||||
echo
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
}
|
} >&2
|
||||||
|
|
||||||
# OS specific support (must be 'true' or 'false').
|
# OS specific support (must be 'true' or 'false').
|
||||||
cygwin=false
|
cygwin=false
|
||||||
msys=false
|
msys=false
|
||||||
darwin=false
|
darwin=false
|
||||||
nonstop=false
|
nonstop=false
|
||||||
case "`uname`" in
|
case "$( uname )" in #(
|
||||||
CYGWIN* )
|
CYGWIN* ) cygwin=true ;; #(
|
||||||
cygwin=true
|
Darwin* ) darwin=true ;; #(
|
||||||
;;
|
MSYS* | MINGW* ) msys=true ;; #(
|
||||||
Darwin* )
|
NONSTOP* ) nonstop=true ;;
|
||||||
darwin=true
|
|
||||||
;;
|
|
||||||
MINGW* )
|
|
||||||
msys=true
|
|
||||||
;;
|
|
||||||
NONSTOP* )
|
|
||||||
nonstop=true
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
if [ -n "$JAVA_HOME" ] ; then
|
if [ -n "$JAVA_HOME" ] ; then
|
||||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||||
# IBM's JDK on AIX uses strange locations for the executables
|
# IBM's JDK on AIX uses strange locations for the executables
|
||||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||||
else
|
else
|
||||||
JAVACMD="$JAVA_HOME/bin/java"
|
JAVACMD=$JAVA_HOME/bin/java
|
||||||
fi
|
fi
|
||||||
if [ ! -x "$JAVACMD" ] ; then
|
if [ ! -x "$JAVACMD" ] ; then
|
||||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||||
@@ -81,92 +132,120 @@ Please set the JAVA_HOME variable in your environment to match the
|
|||||||
location of your Java installation."
|
location of your Java installation."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JAVACMD="java"
|
JAVACMD=java
|
||||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
if ! command -v java >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
Please set the JAVA_HOME variable in your environment to match the
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
location of your Java installation."
|
location of your Java installation."
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Increase the maximum file descriptors if we can.
|
# Increase the maximum file descriptors if we can.
|
||||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||||
MAX_FD_LIMIT=`ulimit -H -n`
|
case $MAX_FD in #(
|
||||||
if [ $? -eq 0 ] ; then
|
max*)
|
||||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||||
MAX_FD="$MAX_FD_LIMIT"
|
# shellcheck disable=SC2039,SC3045
|
||||||
fi
|
MAX_FD=$( ulimit -H -n ) ||
|
||||||
ulimit -n $MAX_FD
|
warn "Could not query maximum file descriptor limit"
|
||||||
if [ $? -ne 0 ] ; then
|
esac
|
||||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
case $MAX_FD in #(
|
||||||
fi
|
'' | soft) :;; #(
|
||||||
else
|
*)
|
||||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||||
fi
|
# shellcheck disable=SC2039,SC3045
|
||||||
fi
|
ulimit -n "$MAX_FD" ||
|
||||||
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
# For Darwin, add options to specify how the application appears in the dock
|
|
||||||
if $darwin; then
|
|
||||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# For Cygwin, switch paths to Windows format before running java
|
|
||||||
if $cygwin ; then
|
|
||||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
|
||||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
|
||||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
|
||||||
|
|
||||||
# We build the pattern for arguments to be converted via cygpath
|
|
||||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
|
||||||
SEP=""
|
|
||||||
for dir in $ROOTDIRSRAW ; do
|
|
||||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
|
||||||
SEP="|"
|
|
||||||
done
|
|
||||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
|
||||||
# Add a user-defined pattern to the cygpath arguments
|
|
||||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
|
||||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
|
||||||
fi
|
|
||||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
||||||
i=0
|
|
||||||
for arg in "$@" ; do
|
|
||||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
|
||||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
|
||||||
|
|
||||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
|
||||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
|
||||||
else
|
|
||||||
eval `echo args$i`="\"$arg\""
|
|
||||||
fi
|
|
||||||
i=$((i+1))
|
|
||||||
done
|
|
||||||
case $i in
|
|
||||||
(0) set -- ;;
|
|
||||||
(1) set -- "$args0" ;;
|
|
||||||
(2) set -- "$args0" "$args1" ;;
|
|
||||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
|
||||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
|
||||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
|
||||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
|
||||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
|
||||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
|
||||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Escape application args
|
# Collect all arguments for the java command, stacking in reverse order:
|
||||||
save ( ) {
|
# * args from the command line
|
||||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
# * the main class name
|
||||||
echo " "
|
# * -classpath
|
||||||
}
|
# * -D...appname settings
|
||||||
APP_ARGS=$(save "$@")
|
# * --module-path (only if needed)
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||||
|
|
||||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
if "$cygwin" || "$msys" ; then
|
||||||
|
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||||
|
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||||
|
|
||||||
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||||
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
|
||||||
cd "$(dirname "$0")"
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||||
|
for arg do
|
||||||
|
if
|
||||||
|
case $arg in #(
|
||||||
|
-*) false ;; # don't mess with options #(
|
||||||
|
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||||
|
[ -e "$t" ] ;; #(
|
||||||
|
*) false ;;
|
||||||
|
esac
|
||||||
|
then
|
||||||
|
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||||
|
fi
|
||||||
|
# Roll the args list around exactly as many times as the number of
|
||||||
|
# args, so each arg winds up back in the position where it started, but
|
||||||
|
# possibly modified.
|
||||||
|
#
|
||||||
|
# NB: a `for` loop captures its iteration list before it begins, so
|
||||||
|
# changing the positional parameters here affects neither the number of
|
||||||
|
# iterations, nor the values presented in `arg`.
|
||||||
|
shift # remove old arg
|
||||||
|
set -- "$@" "$arg" # push replacement arg
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
|
# Collect all arguments for the java command:
|
||||||
|
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||||
|
# and any embedded shellness will be escaped.
|
||||||
|
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||||
|
# treated as '${Hostname}' itself on the command line.
|
||||||
|
|
||||||
|
set -- \
|
||||||
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
|
-classpath "$CLASSPATH" \
|
||||||
|
org.gradle.wrapper.GradleWrapperMain \
|
||||||
|
"$@"
|
||||||
|
|
||||||
|
# Stop when "xargs" is not available.
|
||||||
|
if ! command -v xargs >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
die "xargs is not available"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Use "xargs" to parse quoted args.
|
||||||
|
#
|
||||||
|
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||||
|
#
|
||||||
|
# In Bash we could simply go:
|
||||||
|
#
|
||||||
|
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||||
|
# set -- "${ARGS[@]}" "$@"
|
||||||
|
#
|
||||||
|
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||||
|
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||||
|
# character that might be a shell metacharacter, then use eval to reverse
|
||||||
|
# that process (while maintaining the separation between arguments), and wrap
|
||||||
|
# the whole thing up as a single "set" statement.
|
||||||
|
#
|
||||||
|
# This will of course break if any of these variables contains a newline or
|
||||||
|
# an unmatched quote.
|
||||||
|
#
|
||||||
|
|
||||||
|
eval "set -- $(
|
||||||
|
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||||
|
xargs -n1 |
|
||||||
|
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||||
|
tr '\n' ' '
|
||||||
|
)" '"$@"'
|
||||||
|
|
||||||
exec "$JAVACMD" "$@"
|
exec "$JAVACMD" "$@"
|
||||||
|
|||||||
74
gradlew.bat
vendored
74
gradlew.bat
vendored
@@ -1,3 +1,21 @@
|
|||||||
|
@rem
|
||||||
|
@rem Copyright 2015 the original author or authors.
|
||||||
|
@rem
|
||||||
|
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@rem you may not use this file except in compliance with the License.
|
||||||
|
@rem You may obtain a copy of the License at
|
||||||
|
@rem
|
||||||
|
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
@rem
|
||||||
|
@rem Unless required by applicable law or agreed to in writing, software
|
||||||
|
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
@rem See the License for the specific language governing permissions and
|
||||||
|
@rem limitations under the License.
|
||||||
|
@rem
|
||||||
|
@rem SPDX-License-Identifier: Apache-2.0
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%"=="" @echo off
|
@if "%DEBUG%"=="" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@@ -10,24 +28,28 @@ if "%OS%"=="Windows_NT" setlocal
|
|||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%"=="" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
|
@rem This is normally unused
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
set DEFAULT_JVM_OPTS=
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||||
|
|
||||||
@rem Find java.exe
|
@rem Find java.exe
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
set JAVA_EXE=java.exe
|
set JAVA_EXE=java.exe
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto init
|
if %ERRORLEVEL% equ 0 goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
@@ -35,48 +57,36 @@ goto fail
|
|||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
if exist "%JAVA_EXE%" goto init
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
||||||
echo.
|
echo. 1>&2
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
||||||
echo location of your Java installation.
|
echo location of your Java installation. 1>&2
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:init
|
|
||||||
@rem Get command-line arguments, handling Windows variants
|
|
||||||
|
|
||||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
|
||||||
|
|
||||||
:win9xME_args
|
|
||||||
@rem Slurp the command line arguments.
|
|
||||||
set CMD_LINE_ARGS=
|
|
||||||
set _SKIP=2
|
|
||||||
|
|
||||||
:win9xME_args_slurp
|
|
||||||
if "x%~1" == "x" goto execute
|
|
||||||
|
|
||||||
set CMD_LINE_ARGS=%*
|
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||||
|
|
||||||
:fail
|
:fail
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
rem the _cmd.exe /c_ return code!
|
rem the _cmd.exe /c_ return code!
|
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
set EXIT_CODE=%ERRORLEVEL%
|
||||||
exit /b 1
|
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||||
|
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||||
|
exit /b %EXIT_CODE%
|
||||||
|
|
||||||
:mainEnd
|
:mainEnd
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
resolutionStrategy {
|
|
||||||
eachPlugin {
|
|
||||||
if (requested.id.id == "org.jetbrains.dokka") {
|
|
||||||
useModule("org.jetbrains.dokka:dokka-gradle-plugin:${requested.version}")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
}
|
}
|
||||||
@@ -19,3 +12,4 @@ include ":tgbotapi.behaviour_builder"
|
|||||||
include ":tgbotapi.behaviour_builder.fsm"
|
include ":tgbotapi.behaviour_builder.fsm"
|
||||||
include ":tgbotapi"
|
include ":tgbotapi"
|
||||||
include ":tgbotapi.webapps"
|
include ":tgbotapi.webapps"
|
||||||
|
include ":docs"
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,46 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.api
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.requests.DeleteEphemeralMessage
|
||||||
|
import dev.inmo.tgbotapi.types.ChatIdentifier
|
||||||
|
import dev.inmo.tgbotapi.types.EphemeralChatId
|
||||||
|
import dev.inmo.tgbotapi.types.EphemeralMessageId
|
||||||
|
import dev.inmo.tgbotapi.types.UserId
|
||||||
|
import dev.inmo.tgbotapi.types.chat.Chat
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.PossiblyEphemeralMessage
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.deleteEphemeralMessage(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId
|
||||||
|
): Unit = execute(
|
||||||
|
DeleteEphemeralMessage(chatId, receiverUserId, ephemeralMessageId)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.deleteEphemeralMessage(
|
||||||
|
chatId: EphemeralChatId
|
||||||
|
): Unit = execute(
|
||||||
|
DeleteEphemeralMessage(chatId)
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.deleteEphemeralMessage(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId
|
||||||
|
): Unit = deleteEphemeralMessage(chat.id, receiverUserId, ephemeralMessageId)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload requiring [message] to carry non-null [PossiblyEphemeralMessage.receiverUser] and
|
||||||
|
* [PossiblyEphemeralMessage.ephemeralMessageId] (as returned by any of the ephemeral send requests)
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.deleteEphemeralMessage(
|
||||||
|
message: PossiblyEphemeralMessage
|
||||||
|
): Unit = deleteEphemeralMessage(
|
||||||
|
message.chat.id,
|
||||||
|
message.receiverUser ?.id ?: error("Message ${message.messageId} in chat ${message.chat.id} is not ephemeral: receiverUser is null"),
|
||||||
|
message.ephemeralMessageId ?: error("Message ${message.messageId} in chat ${message.chat.id} is not ephemeral: ephemeralMessageId is null")
|
||||||
|
)
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.api.edit.caption
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.caption.EditEphemeralMessageCaption
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.chat.Chat
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageCaption(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
caption: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageCaption(chatId, receiverUserId, ephemeralMessageId, caption, parseMode, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageCaption(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
caption: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageCaption(
|
||||||
|
chatId,
|
||||||
|
chatId.receiverUser,
|
||||||
|
requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
caption,
|
||||||
|
parseMode,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageCaption(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
caption: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageCaption(chat.id, receiverUserId, ephemeralMessageId, caption, parseMode, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageCaption(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageCaption(chatId, receiverUserId, ephemeralMessageId, entities, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageCaption(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageCaption(
|
||||||
|
chatId,
|
||||||
|
chatId.receiverUser,
|
||||||
|
requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
entities,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageCaption(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageCaption(chat.id, receiverUserId, ephemeralMessageId, entities, replyMarkup)
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.api.edit.media
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.media.EditEphemeralMessageMedia
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramFreeMedia
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.chat.Chat
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageMedia(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
media: TelegramFreeMedia,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageMedia(chatId, receiverUserId, ephemeralMessageId, media, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageMedia(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
media: TelegramFreeMedia,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageMedia(chatId, media, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageMedia(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
media: TelegramFreeMedia,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageMedia(chat.id, receiverUserId, ephemeralMessageId, media, replyMarkup)
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.api.edit.reply_markup
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.reply_markup.EditEphemeralMessageReplyMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.chat.Chat
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageReplyMarkup(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageReplyMarkup(chatId, receiverUserId, ephemeralMessageId, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageReplyMarkup(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageReplyMarkup(chatId, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageReplyMarkup(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageReplyMarkup(chat.id, receiverUserId, ephemeralMessageId, replyMarkup)
|
||||||
@@ -0,0 +1,200 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.api.edit.text
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.text.EditEphemeralMessageText
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.chat.Chat
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
||||||
|
import dev.inmo.tgbotapi.utils.EntitiesBuilderBody
|
||||||
|
import dev.inmo.tgbotapi.utils.buildEntities
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageText(chatId, receiverUserId, ephemeralMessageId, text, parseMode, linkPreviewOptions, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageText(
|
||||||
|
chatId,
|
||||||
|
chatId.receiverUser,
|
||||||
|
requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
text,
|
||||||
|
parseMode,
|
||||||
|
linkPreviewOptions,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageText(chat.id, receiverUserId, ephemeralMessageId, text, parseMode, linkPreviewOptions, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = execute(
|
||||||
|
EditEphemeralMessageText(chatId, receiverUserId, ephemeralMessageId, entities, linkPreviewOptions, replyMarkup)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageText(
|
||||||
|
chatId,
|
||||||
|
chatId.receiverUser,
|
||||||
|
requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
entities,
|
||||||
|
linkPreviewOptions,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): Unit = editEphemeralMessageText(chat.id, receiverUserId, ephemeralMessageId, entities, linkPreviewOptions, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
separator: TextSource? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Unit = editEphemeralMessageText(chatId, receiverUserId, ephemeralMessageId, buildEntities(separator, builderBody), linkPreviewOptions, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
separator: TextSource? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Unit = editEphemeralMessageText(chatId, buildEntities(separator, builderBody), linkPreviewOptions, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
separator: String,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Unit = editEphemeralMessageText(chatId, receiverUserId, ephemeralMessageId, buildEntities(separator, builderBody), linkPreviewOptions, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
separator: String,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Unit = editEphemeralMessageText(chatId, buildEntities(separator, builderBody), linkPreviewOptions, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
separator: TextSource? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Unit = editEphemeralMessageText(chat.id, receiverUserId, ephemeralMessageId, buildEntities(separator, builderBody), linkPreviewOptions, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
|
* as a builder for that
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.editEphemeralMessageText(
|
||||||
|
chat: Chat,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
separator: String,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
|
builderBody: EntitiesBuilderBody
|
||||||
|
): Unit = editEphemeralMessageText(chat.id, receiverUserId, ephemeralMessageId, buildEntities(separator, builderBody), linkPreviewOptions, replyMarkup)
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -58,6 +58,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -75,6 +77,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -96,6 +100,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -111,6 +117,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -274,6 +282,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -290,6 +300,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -311,6 +323,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -326,6 +340,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -352,6 +368,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -369,6 +387,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -391,6 +411,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -407,6 +429,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -429,6 +453,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -472,6 +498,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -524,6 +552,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -546,6 +576,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -569,6 +601,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -591,6 +625,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -608,6 +644,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -623,6 +661,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -754,6 +794,8 @@ public suspend inline fun TelegramBot.replyWithAnimation(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -777,6 +819,8 @@ public suspend inline fun TelegramBot.replyWithAnimation(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -801,6 +845,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -823,6 +869,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -847,6 +895,8 @@ public suspend inline fun TelegramBot.replyWithAnimation(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -869,6 +919,8 @@ public suspend inline fun TelegramBot.replyWithAnimation(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -892,6 +944,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -913,6 +967,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -939,6 +995,8 @@ public suspend inline fun TelegramBot.replyWithAudio(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -960,6 +1018,8 @@ public suspend inline fun TelegramBot.replyWithAudio(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -980,6 +1040,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -998,6 +1060,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1020,6 +1084,8 @@ public suspend inline fun TelegramBot.replyWithAudio(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1040,6 +1106,8 @@ public suspend inline fun TelegramBot.replyWithAudio(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1059,6 +1127,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1076,6 +1146,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1099,6 +1171,8 @@ public suspend inline fun TelegramBot.replyWithDocument(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1118,6 +1192,8 @@ public suspend inline fun TelegramBot.replyWithDocument(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1138,6 +1214,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1156,6 +1234,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1176,6 +1256,8 @@ public suspend inline fun TelegramBot.replyWithDocument(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1194,6 +1276,8 @@ public suspend inline fun TelegramBot.replyWithDocument(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1213,6 +1297,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1230,6 +1316,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1379,6 +1467,8 @@ public suspend inline fun TelegramBot.replyWithPhoto(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1398,6 +1488,8 @@ public suspend inline fun TelegramBot.replyWithPhoto(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1419,6 +1511,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1438,6 +1532,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1459,6 +1555,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1478,6 +1576,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1499,6 +1599,8 @@ public suspend inline fun TelegramBot.replyWithPhoto(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1517,6 +1619,8 @@ public suspend inline fun TelegramBot.replyWithPhoto(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1537,6 +1641,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1555,6 +1661,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1575,6 +1683,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1593,6 +1703,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1613,6 +1725,8 @@ public suspend inline fun TelegramBot.replyWithSticker(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -1629,6 +1743,8 @@ public suspend inline fun TelegramBot.replyWithSticker(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -1647,6 +1763,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -1663,6 +1781,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -1692,6 +1812,8 @@ public suspend inline fun TelegramBot.replyWithVideo(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1715,6 +1837,8 @@ public suspend inline fun TelegramBot.replyWithVideo(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1736,6 +1860,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1755,6 +1881,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1779,6 +1907,8 @@ public suspend inline fun TelegramBot.replyWithVideo(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1801,6 +1931,8 @@ public suspend inline fun TelegramBot.replyWithVideo(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1821,6 +1953,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1839,6 +1973,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1864,6 +2000,8 @@ public suspend inline fun TelegramBot.replyWithLivePhoto(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1884,6 +2022,8 @@ public suspend inline fun TelegramBot.replyWithLivePhoto(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1905,6 +2045,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1924,6 +2066,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1945,6 +2089,8 @@ public suspend inline fun TelegramBot.replyWithLivePhoto(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1964,6 +2110,8 @@ public suspend inline fun TelegramBot.replyWithLivePhoto(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1984,6 +2132,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2002,6 +2152,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -2025,6 +2177,8 @@ public suspend inline fun TelegramBot.replyWithVideoNote(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2043,6 +2197,8 @@ public suspend inline fun TelegramBot.replyWithVideoNote(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -2060,6 +2216,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2075,6 +2233,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -2098,6 +2258,8 @@ public suspend inline fun TelegramBot.replyWithVoice(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2116,6 +2278,8 @@ public suspend inline fun TelegramBot.replyWithVoice(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -2135,6 +2299,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2152,6 +2318,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -2172,6 +2340,8 @@ public suspend inline fun TelegramBot.replyWithVoice(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2189,6 +2359,8 @@ public suspend inline fun TelegramBot.replyWithVoice(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -2207,6 +2379,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2223,6 +2397,8 @@ public suspend inline fun TelegramBot.reply(
|
|||||||
threadId = replyInThreadId,
|
threadId = replyInThreadId,
|
||||||
directMessageThreadId = replyInDirectMessageThreadId,
|
directMessageThreadId = replyInDirectMessageThreadId,
|
||||||
businessConnectionId = replyInBusinessConnectionId,
|
businessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3318,6 +3494,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3337,6 +3515,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3355,6 +3535,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3373,6 +3555,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3391,6 +3575,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3409,6 +3595,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3427,6 +3615,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3445,6 +3635,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3463,6 +3655,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3481,6 +3675,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3499,6 +3695,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3522,6 +3720,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3543,6 +3743,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3563,6 +3765,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3583,6 +3787,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3603,6 +3809,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3623,6 +3831,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3643,6 +3853,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3663,6 +3875,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3685,6 +3899,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
replyInThreadId: MessageThreadId? = replyInChatId.threadId,
|
||||||
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
replyInDirectMessageThreadId: DirectMessageThreadId? = replyInChatId.directMessageThreadId,
|
||||||
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
replyInBusinessConnectionId: BusinessConnectionId? = replyInChatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = replyInChatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3705,6 +3921,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3724,6 +3942,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3743,6 +3963,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3761,6 +3983,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3780,6 +4004,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3799,6 +4025,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3818,6 +4046,8 @@ public suspend fun TelegramBot.reply(
|
|||||||
replyInThreadId = replyInThreadId,
|
replyInThreadId = replyInThreadId,
|
||||||
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
replyInDirectMessageThreadId = replyInDirectMessageThreadId,
|
||||||
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
replyInBusinessConnectionId = replyInBusinessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,553 @@
|
|||||||
|
@file:Suppress("KDocUnresolvedReference")
|
||||||
|
|
||||||
|
package dev.inmo.tgbotapi.extensions.api.send
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
|
import dev.inmo.tgbotapi.extensions.api.send.media.*
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.InputFile
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
|
||||||
|
import dev.inmo.tgbotapi.types.message.content.*
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Explicit helpers replying directly to an incoming ephemeral message identified by [chatId]/[ephemeralMessageId]
|
||||||
|
* (as opposed to the `reply(to = someMessage, ...)` smart-branch overloads, which detect an ephemeral
|
||||||
|
* [dev.inmo.tgbotapi.types.message.abstracts.PossiblyEphemeralMessage] target automatically). The outgoing message
|
||||||
|
* is itself sent as ephemeral, addressed to the same [receiverUserId] as the message being replied to.
|
||||||
|
*
|
||||||
|
* Each helper has two forms: one taking explicit `receiverUserId`/`ephemeralMessageId`, and a convenience overload
|
||||||
|
* taking an [dev.inmo.tgbotapi.types.EphemeralChatId] which sources both from the identifier (throwing
|
||||||
|
* [IllegalArgumentException] if it does not carry an `ephemeralMessageId`).
|
||||||
|
*
|
||||||
|
* @see dev.inmo.tgbotapi.types.ephemeralReplyParametersOrNull
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
|
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeral(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<TextContent> = sendMessage(
|
||||||
|
chatId = chatId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*
|
||||||
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
|
* [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard] as a builders for that param
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeral(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<TextContent> = replyToEphemeral(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithPhoto(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
photo: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<PhotoContent> = sendPhoto(
|
||||||
|
chatId = chatId,
|
||||||
|
fileId = photo,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithPhoto(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
photo: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<PhotoContent> = replyToEphemeralWithPhoto(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
photo = photo,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithLivePhoto(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
livePhoto: InputFile,
|
||||||
|
photo: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
|
||||||
|
chatId = chatId,
|
||||||
|
livePhoto = livePhoto,
|
||||||
|
photo = photo,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithLivePhoto(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
livePhoto: InputFile,
|
||||||
|
photo: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<LivePhotoContent> = replyToEphemeralWithLivePhoto(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
livePhoto = livePhoto,
|
||||||
|
photo = photo,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithAudio(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
audio: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<AudioContent> = sendAudio(
|
||||||
|
chatId = chatId,
|
||||||
|
audio = audio,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithAudio(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
audio: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<AudioContent> = replyToEphemeralWithAudio(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
audio = audio,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithDocument(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
document: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<DocumentContent> = sendDocument(
|
||||||
|
chatId = chatId,
|
||||||
|
document = document,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithDocument(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
document: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<DocumentContent> = replyToEphemeralWithDocument(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
document = document,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVideo(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
video: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VideoContent> = sendVideo(
|
||||||
|
chatId = chatId,
|
||||||
|
video = video,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVideo(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
video: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VideoContent> = replyToEphemeralWithVideo(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
video = video,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithAnimation(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
animation: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<AnimationContent> = sendAnimation(
|
||||||
|
chatId = chatId,
|
||||||
|
animation = animation,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithAnimation(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
animation: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<AnimationContent> = replyToEphemeralWithAnimation(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
animation = animation,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVoice(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
voice: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VoiceContent> = sendVoice(
|
||||||
|
chatId = chatId,
|
||||||
|
voice = voice,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVoice(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
voice: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VoiceContent> = replyToEphemeralWithVoice(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
voice = voice,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVideoNote(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
videoNote: InputFile,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
|
||||||
|
chatId = chatId,
|
||||||
|
videoNote = videoNote,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVideoNote(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
videoNote: InputFile,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VideoNoteContent> = replyToEphemeralWithVideoNote(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
videoNote = videoNote,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithSticker(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
sticker: InputFile,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<StickerContent> = sendSticker(
|
||||||
|
chatId = chatId,
|
||||||
|
sticker = sticker,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithSticker(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
sticker: InputFile,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<StickerContent> = replyToEphemeralWithSticker(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
sticker = sticker,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends a static location (`live_period` is not supported for ephemeral messages, see [SendLocation.Live])
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithLocation(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
latitude: Double,
|
||||||
|
longitude: Double,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<StaticLocationContent> = sendStaticLocation(
|
||||||
|
chatId = chatId,
|
||||||
|
latitude = latitude,
|
||||||
|
longitude = longitude,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends a static location (`live_period` is not supported for ephemeral messages, see [SendLocation.Live]).
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithLocation(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
latitude: Double,
|
||||||
|
longitude: Double,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<StaticLocationContent> = replyToEphemeralWithLocation(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
latitude = latitude,
|
||||||
|
longitude = longitude,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVenue(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
latitude: Double,
|
||||||
|
longitude: Double,
|
||||||
|
title: String,
|
||||||
|
address: String,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VenueContent> = sendVenue(
|
||||||
|
chatId = chatId,
|
||||||
|
latitude = latitude,
|
||||||
|
longitude = longitude,
|
||||||
|
title = title,
|
||||||
|
address = address,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithVenue(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
latitude: Double,
|
||||||
|
longitude: Double,
|
||||||
|
title: String,
|
||||||
|
address: String,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<VenueContent> = replyToEphemeralWithVenue(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
latitude = latitude,
|
||||||
|
longitude = longitude,
|
||||||
|
title = title,
|
||||||
|
address = address,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithContact(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
phoneNumber: String,
|
||||||
|
firstName: String,
|
||||||
|
lastName: String? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<ContactContent> = sendContact(
|
||||||
|
chatId = chatId,
|
||||||
|
phoneNumber = phoneNumber,
|
||||||
|
firstName = firstName,
|
||||||
|
lastName = lastName,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
replyParameters = ReplyParameters.Ephemeral(ephemeralMessageId, allowSendingWithoutReply),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convenience overload sourcing `receiverUserId`/`ephemeralMessageId` from [chatId]. Throws
|
||||||
|
* [IllegalArgumentException] if [chatId] does not carry an ephemeralMessageId
|
||||||
|
*/
|
||||||
|
public suspend fun TelegramBot.replyToEphemeralWithContact(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
phoneNumber: String,
|
||||||
|
firstName: String,
|
||||||
|
lastName: String? = null,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): ChatContentMessage<ContactContent> = replyToEphemeralWithContact(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
phoneNumber = phoneNumber,
|
||||||
|
firstName = firstName,
|
||||||
|
lastName = lastName,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
@@ -24,6 +24,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -40,6 +42,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -60,6 +64,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -74,6 +80,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -96,6 +104,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -111,6 +121,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -130,6 +142,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -143,6 +157,8 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -46,6 +48,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -70,6 +74,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -88,6 +94,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -112,6 +120,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -130,6 +140,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -153,6 +165,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -171,6 +185,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -195,6 +211,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -213,6 +231,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -236,6 +256,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -254,6 +276,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -278,6 +302,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -296,6 +322,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -319,6 +347,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -337,6 +367,8 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -45,6 +47,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -67,6 +71,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -82,6 +88,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -103,6 +111,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -118,6 +128,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -140,6 +152,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -155,6 +169,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -175,6 +191,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -190,6 +208,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -211,6 +231,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -226,6 +248,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -247,6 +271,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -262,6 +288,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -282,6 +310,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -296,6 +326,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -316,6 +348,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -331,6 +365,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -352,6 +388,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -367,6 +405,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -387,6 +427,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -401,6 +443,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -421,6 +465,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -436,6 +482,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -457,6 +505,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -472,6 +522,8 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -493,6 +545,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -507,6 +561,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -527,6 +583,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -542,6 +600,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -563,6 +623,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -578,6 +640,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -40,6 +42,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -60,6 +64,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -74,6 +80,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -94,6 +102,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -108,6 +118,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -127,6 +139,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -141,6 +155,8 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -161,6 +177,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -175,6 +193,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -194,6 +214,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -208,6 +230,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -228,6 +252,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -242,6 +268,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -261,6 +289,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -275,6 +305,8 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -52,6 +54,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -79,6 +83,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -99,6 +105,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -124,6 +132,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -144,6 +154,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -169,6 +181,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -189,6 +203,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -208,6 +224,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -222,6 +240,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -242,6 +262,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -255,6 +277,8 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -91,6 +93,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -118,6 +122,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -138,6 +144,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -164,6 +172,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -183,6 +193,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -209,6 +221,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -228,6 +242,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -251,6 +267,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -267,6 +285,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -290,6 +310,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -306,6 +328,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -328,6 +352,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -343,6 +369,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -365,6 +393,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -380,6 +410,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -402,6 +434,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -417,6 +451,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -437,6 +473,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -450,6 +488,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -472,6 +512,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -487,6 +529,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -507,6 +551,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -520,6 +566,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -652,6 +700,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -668,6 +718,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -691,6 +743,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -707,6 +761,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -729,6 +785,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -744,6 +802,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -766,6 +826,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -780,6 +842,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
entities = entities,
|
entities = entities,
|
||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -991,6 +1055,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1005,6 +1071,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1025,6 +1093,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1038,6 +1108,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1059,6 +1131,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1073,6 +1147,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1093,6 +1169,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1106,6 +1184,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1128,6 +1208,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1143,6 +1225,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1165,6 +1249,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1180,6 +1266,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1201,6 +1289,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1215,6 +1305,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1235,6 +1327,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1250,6 +1344,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1271,6 +1367,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1286,6 +1384,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1308,6 +1408,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1322,6 +1424,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1474,6 +1578,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1489,6 +1595,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1510,6 +1618,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1525,6 +1635,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1549,6 +1661,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1566,6 +1680,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1750,6 +1866,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1767,6 +1885,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1791,6 +1911,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1808,6 +1930,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1832,6 +1956,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1849,6 +1975,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1872,6 +2000,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1888,6 +2018,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1911,6 +2043,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1927,6 +2061,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1950,6 +2086,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -1966,6 +2104,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -1989,6 +2129,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -2005,6 +2147,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3162,6 +3306,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -3176,6 +3322,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -3197,6 +3345,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -3211,6 +3361,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -3238,6 +3390,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3256,6 +3410,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3280,6 +3436,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3297,6 +3455,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3322,6 +3482,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3340,6 +3502,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3364,6 +3528,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3381,6 +3547,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3408,6 +3576,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3428,6 +3598,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3455,6 +3627,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3475,6 +3649,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3501,6 +3677,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3520,6 +3698,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3546,6 +3726,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3565,6 +3747,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3585,6 +3769,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3598,6 +3784,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3618,6 +3806,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3631,6 +3821,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3656,6 +3848,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3674,6 +3868,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3699,6 +3895,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3717,6 +3915,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3741,6 +3941,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3758,6 +3960,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3782,6 +3986,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3799,6 +4005,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3823,6 +4031,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3840,6 +4050,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3864,6 +4076,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3881,6 +4095,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3904,6 +4120,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3920,6 +4138,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3943,6 +4163,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3959,6 +4181,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -3979,6 +4203,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -3991,6 +4217,8 @@ public suspend fun TelegramBot.send(
|
|||||||
videoNote = videoNote,
|
videoNote = videoNote,
|
||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -4012,6 +4240,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -4025,6 +4255,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -4047,6 +4279,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -4062,6 +4296,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -4084,6 +4320,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -4099,6 +4337,8 @@ public suspend fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -4120,6 +4360,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -4134,6 +4376,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -4155,6 +4399,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -4169,6 +4415,8 @@ public suspend inline fun TelegramBot.send(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -56,6 +58,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -83,6 +87,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -104,6 +110,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -131,6 +139,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -152,6 +162,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -178,6 +190,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -198,6 +212,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -225,6 +241,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -246,6 +264,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -272,6 +292,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -292,6 +314,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -318,6 +342,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -338,6 +364,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -363,6 +391,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -382,6 +412,8 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -50,6 +52,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -76,6 +80,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -95,6 +101,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -117,6 +125,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -136,6 +146,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -158,6 +170,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -174,6 +188,8 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -199,6 +215,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -218,6 +236,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -243,6 +263,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -261,6 +283,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -282,6 +306,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -300,6 +326,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -321,6 +349,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -336,6 +366,8 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -45,6 +47,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -69,6 +73,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -86,6 +92,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -108,6 +116,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -125,6 +135,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -147,6 +159,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -163,6 +177,8 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -185,6 +201,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -202,6 +220,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -225,6 +245,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -241,6 +263,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -262,6 +286,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -278,6 +304,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -299,6 +327,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -314,6 +344,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -50,6 +52,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -74,6 +78,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -92,6 +98,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -116,6 +124,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -134,6 +144,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -157,6 +169,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -174,6 +188,8 @@ public suspend fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -197,6 +213,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -215,6 +233,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -238,6 +258,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -255,6 +277,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -278,6 +302,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -295,6 +321,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -317,6 +345,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -333,6 +363,8 @@ public suspend inline fun TelegramBot.sendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -48,6 +50,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -72,6 +76,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -89,6 +95,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -112,6 +120,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -129,6 +139,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -152,6 +164,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -169,6 +183,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -192,6 +208,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -209,6 +227,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -232,6 +252,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -249,6 +271,8 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -272,6 +296,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -289,6 +315,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -312,6 +340,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -328,6 +358,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -350,6 +382,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -366,6 +400,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -388,6 +424,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -404,6 +442,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -426,6 +466,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -442,6 +484,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -464,6 +508,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -480,6 +526,8 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -39,6 +41,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -60,6 +64,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -74,6 +80,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -94,6 +102,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -108,6 +118,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -128,6 +140,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -142,6 +156,8 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -62,6 +64,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -87,6 +91,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -111,6 +117,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -141,6 +149,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -165,6 +175,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -190,6 +202,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -208,6 +222,8 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -237,6 +253,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -261,6 +279,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -285,6 +305,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -308,6 +330,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -337,6 +361,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -360,6 +386,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -384,6 +412,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -401,6 +431,8 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -42,6 +44,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -62,6 +66,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -78,6 +84,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -100,6 +108,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -116,6 +126,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -135,6 +147,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -148,6 +162,8 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -44,6 +46,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -67,6 +71,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -83,6 +89,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -104,6 +112,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -120,6 +130,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -141,6 +153,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -156,6 +170,8 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -178,6 +194,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -193,6 +211,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
duration = duration,
|
duration = duration,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -216,6 +236,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -231,6 +253,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -251,6 +275,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -266,6 +292,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -285,6 +313,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId: MessageThreadId? = chat.id.threadId,
|
threadId: MessageThreadId? = chat.id.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chat.id.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -299,6 +329,8 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/DefaultBehavio
|
|||||||
public fun getAllowedUpdates ()Ljava/util/List;
|
public fun getAllowedUpdates ()Ljava/util/List;
|
||||||
public fun getAsUpdateReceiver ()Lkotlin/jvm/functions/Function2;
|
public fun getAsUpdateReceiver ()Lkotlin/jvm/functions/Function2;
|
||||||
public fun getBot ()Ldev/inmo/tgbotapi/bot/RequestsExecutor;
|
public fun getBot ()Ldev/inmo/tgbotapi/bot/RequestsExecutor;
|
||||||
|
public fun getBotSubscriptionUpdatedUpdatesFlow ()Lkotlinx/coroutines/flow/Flow;
|
||||||
public fun getBusinessConnectionUpdatesFlow ()Lkotlinx/coroutines/flow/Flow;
|
public fun getBusinessConnectionUpdatesFlow ()Lkotlinx/coroutines/flow/Flow;
|
||||||
public fun getBusinessMessageUpdatesFlow ()Lkotlinx/coroutines/flow/Flow;
|
public fun getBusinessMessageUpdatesFlow ()Lkotlinx/coroutines/flow/Flow;
|
||||||
public fun getCallbackQueriesFlow ()Lkotlinx/coroutines/flow/Flow;
|
public fun getCallbackQueriesFlow ()Lkotlinx/coroutines/flow/Flow;
|
||||||
|
|||||||
@@ -166,6 +166,11 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/B
|
|||||||
public static synthetic fun expectOne$default (Ldev/inmo/tgbotapi/updateshandlers/FlowsUpdatesFilter;Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun expectOne$default (Ldev/inmo/tgbotapi/updateshandlers/FlowsUpdatesFilter;Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitBotSubscriptionUpdatedKt {
|
||||||
|
public static final fun waitBotSubscriptionUpdated (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitBotSubscriptionUpdated$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitBusinessConnectionKt {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitBusinessConnectionKt {
|
||||||
public static final fun waitBusinessConnection (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitBusinessConnection (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitBusinessConnection$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitBusinessConnection$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
@@ -658,6 +663,10 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/W
|
|||||||
public static synthetic fun waitChecklistTasksDone$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChecklistTasksDone$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitCommonEvents (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitCommonEvents (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitCommonEvents$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitCommonEvents$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitCommunityChatAdded (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitCommunityChatAdded$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitCommunityChatRemoved (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitCommunityChatRemoved$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitDeleteChatPhotoEvents (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitDeleteChatPhotoEvents (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitDeleteChatPhotoEvents$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitDeleteChatPhotoEvents$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitForumTopicClosed (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitForumTopicClosed (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
@@ -779,6 +788,10 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/W
|
|||||||
public static synthetic fun waitChatSharedRequestEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitChatSharedRequestEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitCommonEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitCommonEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitCommonEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitCommonEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitCommunityChatAddedEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitCommunityChatAddedEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static final fun waitCommunityChatRemovedEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
|
public static synthetic fun waitCommunityChatRemovedEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitDeleteChatPhotoEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitDeleteChatPhotoEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static synthetic fun waitDeleteChatPhotoEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
public static synthetic fun waitDeleteChatPhotoEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
|
||||||
public static final fun waitForumTopicClosedEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
public static final fun waitForumTopicClosedEventsMessages (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow;
|
||||||
@@ -1024,6 +1037,11 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/filters/Messag
|
|||||||
public static final fun getMessageFilterForums ()Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;
|
public static final fun getMessageFilterForums ()Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/BotSubscriptionUpdatedTriggersKt {
|
||||||
|
public static final fun onBotSubscriptionUpdated (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
|
public static synthetic fun onBotSubscriptionUpdated$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/BusinessConnectionTriggersKt {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/BusinessConnectionTriggersKt {
|
||||||
public static final fun onBusinessConnection (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onBusinessConnection (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onBusinessConnection$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onBusinessConnection$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
@@ -1419,6 +1437,10 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handl
|
|||||||
public static synthetic fun onChecklistTasksDone$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onChecklistTasksDone$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onCommonEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onCommonEvent (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onCommonEvent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onCommonEvent$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
public static final fun onCommunityChatAdded (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
|
public static synthetic fun onCommunityChatAdded$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
|
public static final fun onCommunityChatRemoved (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
|
public static synthetic fun onCommunityChatRemoved$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onDeleteChatPhoto (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onDeleteChatPhoto (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
public static synthetic fun onDeleteChatPhoto$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
public static synthetic fun onDeleteChatPhoto$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
||||||
public static final fun onForumTopicClosed (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
public static final fun onForumTopicClosed (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job;
|
||||||
@@ -1870,6 +1892,12 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_f
|
|||||||
public fun invoke-ErVIubg (Ldev/inmo/tgbotapi/types/polls/Poll;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public fun invoke-ErVIubg (Ldev/inmo/tgbotapi/types/polls/Poll;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserBotSubscriptionUpdatedMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory {
|
||||||
|
public static final field INSTANCE Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserBotSubscriptionUpdatedMarkerFactory;
|
||||||
|
public fun invoke (Ldev/inmo/tgbotapi/types/payments/BotSubscriptionUpdated;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
public synthetic fun invoke (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserBusinessConnectionUpdatedMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserBusinessConnectionUpdatedMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory {
|
||||||
public static final field INSTANCE Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserBusinessConnectionUpdatedMarkerFactory;
|
public static final field INSTANCE Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByUserBusinessConnectionUpdatedMarkerFactory;
|
||||||
public fun invoke (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public fun invoke (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.behaviour_builder.expectations
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
|
||||||
|
import dev.inmo.tgbotapi.extensions.utils.botSubscriptionUpdatedUpdateOrNull
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.Request
|
||||||
|
import dev.inmo.tgbotapi.types.payments.BotSubscriptionUpdated
|
||||||
|
import kotlinx.coroutines.flow.Flow
|
||||||
|
|
||||||
|
fun BehaviourContext.waitBotSubscriptionUpdated(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
): Flow<BotSubscriptionUpdated> = expectFlow(
|
||||||
|
initRequest,
|
||||||
|
errorFactory
|
||||||
|
) {
|
||||||
|
(it.botSubscriptionUpdatedUpdateOrNull() ?.data).let(::listOfNotNull)
|
||||||
|
}
|
||||||
@@ -10,6 +10,8 @@ import dev.inmo.tgbotapi.types.PaidMessagePriceChanged
|
|||||||
import dev.inmo.tgbotapi.types.chat.ChatBackground
|
import dev.inmo.tgbotapi.types.chat.ChatBackground
|
||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksAdded
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksAdded
|
||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksDone
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksDone
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatAdded
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatRemoved
|
||||||
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceivedEvent
|
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceivedEvent
|
||||||
import dev.inmo.tgbotapi.types.giveaway.GiveawayCreated
|
import dev.inmo.tgbotapi.types.giveaway.GiveawayCreated
|
||||||
import dev.inmo.tgbotapi.types.giveaway.GiveawayPrivateResults
|
import dev.inmo.tgbotapi.types.giveaway.GiveawayPrivateResults
|
||||||
@@ -327,6 +329,16 @@ fun BehaviourContext.waitSuggestedPostRefunded(
|
|||||||
errorFactory: NullableRequestBuilder<*> = { null }
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
) = waitEvents<SuggestedPostRefunded>(initRequest, errorFactory)
|
) = waitEvents<SuggestedPostRefunded>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitCommunityChatAdded(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEvents<CommunityChatAdded>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitCommunityChatRemoved(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEvents<CommunityChatRemoved>(initRequest, errorFactory)
|
||||||
|
|
||||||
fun BehaviourContext.waitSuggestedPostDeclined(
|
fun BehaviourContext.waitSuggestedPostDeclined(
|
||||||
initRequest: Request<*>? = null,
|
initRequest: Request<*>? = null,
|
||||||
errorFactory: NullableRequestBuilder<*> = { null }
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import dev.inmo.tgbotapi.extensions.utils.*
|
|||||||
import dev.inmo.tgbotapi.requests.abstracts.Request
|
import dev.inmo.tgbotapi.requests.abstracts.Request
|
||||||
import dev.inmo.tgbotapi.types.PaidMessagePriceChanged
|
import dev.inmo.tgbotapi.types.PaidMessagePriceChanged
|
||||||
import dev.inmo.tgbotapi.types.chat.ChatBackground
|
import dev.inmo.tgbotapi.types.chat.ChatBackground
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatAdded
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatRemoved
|
||||||
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceivedEvent
|
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceivedEvent
|
||||||
import dev.inmo.tgbotapi.types.message.ChatEvents.*
|
import dev.inmo.tgbotapi.types.message.ChatEvents.*
|
||||||
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.*
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.*
|
||||||
@@ -251,3 +253,13 @@ fun BehaviourContext.waitUniqueGiftSentOrReceivedMessages(
|
|||||||
initRequest: Request<*>? = null,
|
initRequest: Request<*>? = null,
|
||||||
errorFactory: NullableRequestBuilder<*> = { null }
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
) = waitEventsMessages<GiftSentOrReceivedEvent.UniqueGift>(initRequest, errorFactory)
|
) = waitEventsMessages<GiftSentOrReceivedEvent.UniqueGift>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitCommunityChatAddedEventsMessages(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEventsMessages<CommunityChatAdded>(initRequest, errorFactory)
|
||||||
|
|
||||||
|
fun BehaviourContext.waitCommunityChatRemovedEventsMessages(
|
||||||
|
initRequest: Request<*>? = null,
|
||||||
|
errorFactory: NullableRequestBuilder<*> = { null }
|
||||||
|
) = waitEventsMessages<CommunityChatRemoved>(initRequest, errorFactory)
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
|
||||||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.CustomBehaviourContextAndTwoTypesReceiver
|
||||||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.CustomBehaviourContextAndTypeReceiver
|
||||||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.utils.SimpleFilter
|
||||||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.utils.marker_factories.ByUserBotSubscriptionUpdatedMarkerFactory
|
||||||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.utils.marker_factories.MarkerFactory
|
||||||
|
import dev.inmo.tgbotapi.extensions.utils.botSubscriptionUpdatedUpdateOrNull
|
||||||
|
import dev.inmo.tgbotapi.types.payments.BotSubscriptionUpdated
|
||||||
|
import dev.inmo.tgbotapi.types.update.abstracts.Update
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
* this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage].
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own.
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times]
|
||||||
|
* to combinate several filters
|
||||||
|
* @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream".
|
||||||
|
* [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for
|
||||||
|
* "stream"
|
||||||
|
* @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that
|
||||||
|
* data
|
||||||
|
*/
|
||||||
|
fun <BC : BehaviourContext> BC.onBotSubscriptionUpdated(
|
||||||
|
initialFilter: SimpleFilter<BotSubscriptionUpdated>? = null,
|
||||||
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, BotSubscriptionUpdated, Update>? = null,
|
||||||
|
markerFactory: MarkerFactory<in BotSubscriptionUpdated, Any>? = ByUserBotSubscriptionUpdatedMarkerFactory,
|
||||||
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, BotSubscriptionUpdated>? = null,
|
||||||
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, BotSubscriptionUpdated>
|
||||||
|
) = on(markerFactory, initialFilter, subcontextUpdatesFilter, additionalSubcontextInitialAction, scenarioReceiver) {
|
||||||
|
(it.botSubscriptionUpdatedUpdateOrNull() ?.data) ?.let(::listOfNotNull)
|
||||||
|
}
|
||||||
@@ -15,6 +15,8 @@ import dev.inmo.tgbotapi.types.PaidMessagePriceChanged
|
|||||||
import dev.inmo.tgbotapi.types.chat.ChatBackground
|
import dev.inmo.tgbotapi.types.chat.ChatBackground
|
||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksAdded
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksAdded
|
||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksDone
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksDone
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatAdded
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatRemoved
|
||||||
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceivedEvent
|
import dev.inmo.tgbotapi.types.gifts.GiftSentOrReceivedEvent
|
||||||
import dev.inmo.tgbotapi.types.giveaway.GiveawayCreated
|
import dev.inmo.tgbotapi.types.giveaway.GiveawayCreated
|
||||||
import dev.inmo.tgbotapi.types.giveaway.GiveawayPrivateResults
|
import dev.inmo.tgbotapi.types.giveaway.GiveawayPrivateResults
|
||||||
@@ -1452,3 +1454,45 @@ fun <BC : BehaviourContext> BC.onSuggestedPostRefunded(
|
|||||||
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChannelDirectMessagesEventMessage<SuggestedPostRefunded>>? = null,
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChannelDirectMessagesEventMessage<SuggestedPostRefunded>>? = null,
|
||||||
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, ChannelDirectMessagesEventMessage<SuggestedPostRefunded>>
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, ChannelDirectMessagesEventMessage<SuggestedPostRefunded>>
|
||||||
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
* this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage].
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own.
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times]
|
||||||
|
* to combinate several filters
|
||||||
|
* @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream".
|
||||||
|
* [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for
|
||||||
|
* "stream"
|
||||||
|
* @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that
|
||||||
|
* data
|
||||||
|
*/
|
||||||
|
fun <BC : BehaviourContext> BC.onCommunityChatAdded(
|
||||||
|
initialFilter: SimpleFilter<ChatEventMessage<CommunityChatAdded>>? = null,
|
||||||
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, ChatEventMessage<CommunityChatAdded>, Update>? = MessageFilterByChat,
|
||||||
|
markerFactory: MarkerFactory<in ChatEventMessage<CommunityChatAdded>, Any>? = ByChatMessageMarkerFactory,
|
||||||
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChatEventMessage<CommunityChatAdded>>? = null,
|
||||||
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, ChatEventMessage<CommunityChatAdded>>
|
||||||
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call
|
||||||
|
* @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example,
|
||||||
|
* this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage].
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own.
|
||||||
|
* Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times]
|
||||||
|
* to combinate several filters
|
||||||
|
* @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream".
|
||||||
|
* [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for
|
||||||
|
* "stream"
|
||||||
|
* @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that
|
||||||
|
* data
|
||||||
|
*/
|
||||||
|
fun <BC : BehaviourContext> BC.onCommunityChatRemoved(
|
||||||
|
initialFilter: SimpleFilter<ChatEventMessage<CommunityChatRemoved>>? = null,
|
||||||
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, ChatEventMessage<CommunityChatRemoved>, Update>? = MessageFilterByChat,
|
||||||
|
markerFactory: MarkerFactory<in ChatEventMessage<CommunityChatRemoved>, Any>? = ByChatMessageMarkerFactory,
|
||||||
|
additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver<BC, Unit, Update, ChatEventMessage<CommunityChatRemoved>>? = null,
|
||||||
|
scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, ChatEventMessage<CommunityChatRemoved>>
|
||||||
|
) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver)
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package dev.inmo.tgbotapi.extensions.behaviour_builder.utils.marker_factories
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.payments.BotSubscriptionUpdated
|
||||||
|
|
||||||
|
object ByUserBotSubscriptionUpdatedMarkerFactory : MarkerFactory<BotSubscriptionUpdated, Any> {
|
||||||
|
override suspend fun invoke(data: BotSubscriptionUpdated) = data.user
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
|||||||
|
package dev.inmo.tgbotapi.abstracts.types
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.EphemeralMessageId
|
||||||
|
import dev.inmo.tgbotapi.types.UserId
|
||||||
|
|
||||||
|
interface EphemeralMessageAction : ChatRequest {
|
||||||
|
val receiverUserId: UserId
|
||||||
|
val ephemeralMessageId: EphemeralMessageId
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.EphemeralMessageAction
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.utils.serializers.UnitFromBooleanSerializer
|
||||||
|
import kotlinx.serialization.*
|
||||||
|
import kotlinx.serialization.builtins.serializer
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class DeleteEphemeralMessage(
|
||||||
|
@SerialName(chatIdField)
|
||||||
|
override val chatId: ChatIdentifier,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val receiverUserId: UserId,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId
|
||||||
|
) : SimpleRequest<Unit>, EphemeralMessageAction {
|
||||||
|
constructor(
|
||||||
|
chatId: EphemeralChatId
|
||||||
|
): this(
|
||||||
|
chatId,
|
||||||
|
chatId.receiverUser,
|
||||||
|
requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" }
|
||||||
|
)
|
||||||
|
|
||||||
|
override fun method(): String = "deleteEphemeralMessage"
|
||||||
|
|
||||||
|
override val resultDeserializer: DeserializationStrategy<Unit>
|
||||||
|
get() = UnitFromBooleanSerializer
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.edit.abstracts
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.EphemeralMessageAction
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
|
import dev.inmo.tgbotapi.utils.serializers.UnitFromBooleanSerializer
|
||||||
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
|
import kotlinx.serialization.builtins.serializer
|
||||||
|
|
||||||
|
interface EditEphemeralMessage : SimpleRequest<Unit>, EphemeralMessageAction {
|
||||||
|
override val resultDeserializer: DeserializationStrategy<Unit>
|
||||||
|
get() = UnitFromBooleanSerializer
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.edit.caption
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.abstracts.*
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.message.parseModeField
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.message.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
||||||
|
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||||
|
import dev.inmo.tgbotapi.utils.extensions.makeString
|
||||||
|
import kotlinx.serialization.*
|
||||||
|
|
||||||
|
const val editEphemeralMessageCaptionMethod = "editEphemeralMessageCaption"
|
||||||
|
|
||||||
|
fun EditEphemeralMessageCaption(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
caption: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageCaption(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
ephemeralMessageId = ephemeralMessageId,
|
||||||
|
text = caption,
|
||||||
|
parseMode = parseMode,
|
||||||
|
rawEntities = null,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun EditEphemeralMessageCaption(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
caption: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageCaption(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
caption = caption,
|
||||||
|
parseMode = parseMode,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun EditEphemeralMessageCaption(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageCaption(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
ephemeralMessageId = ephemeralMessageId,
|
||||||
|
text = entities.makeString(),
|
||||||
|
parseMode = null,
|
||||||
|
rawEntities = entities.toRawMessageEntities(),
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun EditEphemeralMessageCaption(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageCaption(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
entities = entities,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
@ConsistentCopyVisibility
|
||||||
|
@Serializable
|
||||||
|
data class EditEphemeralMessageCaption internal constructor(
|
||||||
|
@SerialName(chatIdField)
|
||||||
|
override val chatId: ChatIdentifier,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val receiverUserId: UserId,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId,
|
||||||
|
@SerialName(captionField)
|
||||||
|
override val text: String? = null,
|
||||||
|
@SerialName(parseModeField)
|
||||||
|
override val parseMode: ParseMode? = null,
|
||||||
|
@SerialName(captionEntitiesField)
|
||||||
|
private val rawEntities: List<RawMessageEntity>? = null,
|
||||||
|
@SerialName(replyMarkupField)
|
||||||
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) : EditEphemeralMessage, EditTextChatMessage, EditReplyMessage {
|
||||||
|
override val textSources: TextSourcesList? by lazy {
|
||||||
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun method(): String = editEphemeralMessageCaptionMethod
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.edit.media
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.abstracts.*
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramFreeMedia
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import kotlinx.serialization.*
|
||||||
|
|
||||||
|
const val editEphemeralMessageMediaMethod = "editEphemeralMessageMedia"
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class EditEphemeralMessageMedia(
|
||||||
|
@SerialName(chatIdField)
|
||||||
|
override val chatId: ChatIdentifier,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val receiverUserId: UserId,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(mediaField)
|
||||||
|
override val media: TelegramFreeMedia,
|
||||||
|
@SerialName(replyMarkupField)
|
||||||
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) : EditEphemeralMessage, EditReplyMessage, EditMediaMessage {
|
||||||
|
constructor(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
media: TelegramFreeMedia,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): this(
|
||||||
|
chatId,
|
||||||
|
chatId.receiverUser,
|
||||||
|
requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
media,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
init {
|
||||||
|
require(media.file !is MultipartFile) {
|
||||||
|
"For editing of ephemeral media messages you MUST use file id (uploading of a new file is not supported)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun method(): String = editEphemeralMessageMediaMethod
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.edit.reply_markup
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.abstracts.EditEphemeralMessage
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.abstracts.EditReplyMessage
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import kotlinx.serialization.*
|
||||||
|
|
||||||
|
const val editEphemeralMessageReplyMarkupMethod = "editEphemeralMessageReplyMarkup"
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class EditEphemeralMessageReplyMarkup(
|
||||||
|
@SerialName(chatIdField)
|
||||||
|
override val chatId: ChatIdentifier,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val receiverUserId: UserId,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId,
|
||||||
|
@SerialName(replyMarkupField)
|
||||||
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) : EditEphemeralMessage, EditReplyMessage {
|
||||||
|
constructor(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
): this(
|
||||||
|
chatId,
|
||||||
|
chatId.receiverUser,
|
||||||
|
requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
override fun method(): String = editEphemeralMessageReplyMarkupMethod
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
}
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.edit.text
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.requests.edit.abstracts.*
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.message.parseModeField
|
||||||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
||||||
|
import dev.inmo.tgbotapi.types.message.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
||||||
|
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||||
|
import dev.inmo.tgbotapi.utils.extensions.makeString
|
||||||
|
import dev.inmo.tgbotapi.utils.throwRangeError
|
||||||
|
import kotlinx.serialization.*
|
||||||
|
|
||||||
|
const val editEphemeralMessageTextMethod = "editEphemeralMessageText"
|
||||||
|
|
||||||
|
fun EditEphemeralMessageText(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageText(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
ephemeralMessageId = ephemeralMessageId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
rawEntities = null,
|
||||||
|
linkPreviewOptions = linkPreviewOptions,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun EditEphemeralMessageText(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
text: String,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageText(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
linkPreviewOptions = linkPreviewOptions,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun EditEphemeralMessageText(
|
||||||
|
chatId: ChatIdentifier,
|
||||||
|
receiverUserId: UserId,
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageText(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
ephemeralMessageId = ephemeralMessageId,
|
||||||
|
text = entities.makeString(),
|
||||||
|
parseMode = null,
|
||||||
|
rawEntities = entities.toRawMessageEntities(),
|
||||||
|
linkPreviewOptions = linkPreviewOptions,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun EditEphemeralMessageText(
|
||||||
|
chatId: EphemeralChatId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) = EditEphemeralMessageText(
|
||||||
|
chatId = chatId,
|
||||||
|
receiverUserId = chatId.receiverUser,
|
||||||
|
ephemeralMessageId = requireNotNull(chatId.ephemeralMessageId) { "chatId ($chatId) does not carry an ephemeralMessageId" },
|
||||||
|
entities = entities,
|
||||||
|
linkPreviewOptions = linkPreviewOptions,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
@ConsistentCopyVisibility
|
||||||
|
@Serializable
|
||||||
|
data class EditEphemeralMessageText internal constructor(
|
||||||
|
@SerialName(chatIdField)
|
||||||
|
override val chatId: ChatIdentifier,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val receiverUserId: UserId,
|
||||||
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
@EncodeDefault
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId,
|
||||||
|
@SerialName(textField)
|
||||||
|
override val text: String,
|
||||||
|
@SerialName(parseModeField)
|
||||||
|
override val parseMode: ParseMode? = null,
|
||||||
|
@SerialName(entitiesField)
|
||||||
|
private val rawEntities: List<RawMessageEntity>? = null,
|
||||||
|
@SerialName(linkPreviewOptionsField)
|
||||||
|
override val linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
|
@SerialName(replyMarkupField)
|
||||||
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
|
) : EditEphemeralMessage, EditTextChatMessage, EditReplyMessage, EditLinkPreviewOptionsContainer {
|
||||||
|
override val textSources: TextSourcesList? by lazy {
|
||||||
|
rawEntities ?.asTextSources(text)
|
||||||
|
}
|
||||||
|
|
||||||
|
init {
|
||||||
|
if (text.length !in textLength) {
|
||||||
|
throwRangeError("Text length", textLength, text.length)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun method(): String = editEphemeralMessageTextMethod
|
||||||
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
get() = serializer()
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package dev.inmo.tgbotapi.requests.send
|
package dev.inmo.tgbotapi.requests.send
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.requests.send.abstracts.OptionallyEphemeralSendRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.ReplyingMarkupSendMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.ReplyingMarkupSendMessageRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.SendContentMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.SendContentMessageRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.SendMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.SendMessageRequest
|
||||||
@@ -36,6 +37,10 @@ data class SendContact(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -51,7 +56,8 @@ data class SendContact(
|
|||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendContentMessageRequest<ChatContentMessage<ContactContent>>,
|
) : SendContentMessageRequest<ChatContentMessage<ContactContent>>,
|
||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<ContactContent>>
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<ContactContent>>,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
constructor(
|
constructor(
|
||||||
chatId: ChatIdentifier,
|
chatId: ChatIdentifier,
|
||||||
@@ -59,6 +65,8 @@ data class SendContact(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -74,6 +82,8 @@ data class SendContact(
|
|||||||
threadId,
|
threadId,
|
||||||
directMessageThreadId,
|
directMessageThreadId,
|
||||||
businessConnectionId,
|
businessConnectionId,
|
||||||
|
receiverUserId,
|
||||||
|
callbackQueryId,
|
||||||
disableNotification,
|
disableNotification,
|
||||||
protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast,
|
allowPaidBroadcast,
|
||||||
@@ -95,6 +105,8 @@ fun Contact.toRequest(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -108,6 +120,8 @@ fun Contact.toRequest(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ fun SendLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -48,6 +50,8 @@ fun SendLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -64,6 +68,8 @@ fun SendStaticLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -78,6 +84,8 @@ fun SendStaticLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -87,6 +95,11 @@ fun SendStaticLocation(
|
|||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param livePeriod According to Telegram Bots API, must be `0` when sending as an ephemeral message (with
|
||||||
|
* [receiverUserId] set), as ephemeral messages do not support live location updates. Prefer [SendStaticLocation]
|
||||||
|
* for ephemeral locations.
|
||||||
|
*/
|
||||||
fun SendLiveLocation(
|
fun SendLiveLocation(
|
||||||
chatId: ChatIdentifier,
|
chatId: ChatIdentifier,
|
||||||
latitude: Double,
|
latitude: Double,
|
||||||
@@ -98,6 +111,8 @@ fun SendLiveLocation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -116,6 +131,8 @@ fun SendLiveLocation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -132,9 +149,15 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
HorizontallyAccured,
|
HorizontallyAccured,
|
||||||
Livable,
|
Livable,
|
||||||
ProximityAlertable,
|
ProximityAlertable,
|
||||||
Headed {
|
Headed,
|
||||||
|
OptionallyEphemeralSendRequest {
|
||||||
override fun method(): String = "sendLocation"
|
override fun method(): String = "sendLocation"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property livePeriod According to Telegram Bots API, must be `0` when sending as an ephemeral message (with
|
||||||
|
* [receiverUserId] set), as ephemeral messages do not support live location updates. Prefer [Static]
|
||||||
|
* for ephemeral locations.
|
||||||
|
*/
|
||||||
@Serializable
|
@Serializable
|
||||||
data class Live (
|
data class Live (
|
||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
@@ -165,6 +188,10 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
@OptIn(ExperimentalSerializationApi::class)
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -215,6 +242,10 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
@OptIn(ExperimentalSerializationApi::class)
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -267,6 +298,10 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
val disableNotification: Boolean = false,
|
val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -297,6 +332,8 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
threadId = surrogate.threadId,
|
threadId = surrogate.threadId,
|
||||||
directMessageThreadId = surrogate.directMessageThreadId,
|
directMessageThreadId = surrogate.directMessageThreadId,
|
||||||
businessConnectionId = surrogate.businessConnectionId,
|
businessConnectionId = surrogate.businessConnectionId,
|
||||||
|
receiverUserId = surrogate.receiverUserId,
|
||||||
|
callbackQueryId = surrogate.callbackQueryId,
|
||||||
disableNotification = surrogate.disableNotification,
|
disableNotification = surrogate.disableNotification,
|
||||||
protectContent = surrogate.protectContent,
|
protectContent = surrogate.protectContent,
|
||||||
allowPaidBroadcast = surrogate.allowPaidBroadcast,
|
allowPaidBroadcast = surrogate.allowPaidBroadcast,
|
||||||
@@ -316,6 +353,8 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
threadId = surrogate.threadId,
|
threadId = surrogate.threadId,
|
||||||
directMessageThreadId = surrogate.directMessageThreadId,
|
directMessageThreadId = surrogate.directMessageThreadId,
|
||||||
businessConnectionId = surrogate.businessConnectionId,
|
businessConnectionId = surrogate.businessConnectionId,
|
||||||
|
receiverUserId = surrogate.receiverUserId,
|
||||||
|
callbackQueryId = surrogate.callbackQueryId,
|
||||||
disableNotification = surrogate.disableNotification,
|
disableNotification = surrogate.disableNotification,
|
||||||
protectContent = surrogate.protectContent,
|
protectContent = surrogate.protectContent,
|
||||||
allowPaidBroadcast = surrogate.allowPaidBroadcast,
|
allowPaidBroadcast = surrogate.allowPaidBroadcast,
|
||||||
@@ -340,6 +379,8 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ fun SendTextMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -45,6 +47,8 @@ fun SendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
linkPreviewOptions = linkPreviewOptions,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -62,6 +66,8 @@ fun SendTextMessage(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -77,6 +83,8 @@ fun SendTextMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
linkPreviewOptions = linkPreviewOptions,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -108,6 +116,10 @@ data class SendTextMessage internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(linkPreviewOptionsField)
|
@SerialName(linkPreviewOptionsField)
|
||||||
override val linkPreviewOptions: LinkPreviewOptions? = null,
|
override val linkPreviewOptions: LinkPreviewOptions? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@@ -127,7 +139,8 @@ data class SendTextMessage internal constructor(
|
|||||||
) : SendContentMessageRequest<ChatContentMessage<TextContent>>,
|
) : SendContentMessageRequest<ChatContentMessage<TextContent>>,
|
||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<TextContent>>,
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<TextContent>>,
|
||||||
TextableSendMessageRequest<ChatContentMessage<TextContent>>,
|
TextableSendMessageRequest<ChatContentMessage<TextContent>>,
|
||||||
LinkPreviewOptionsContainer
|
LinkPreviewOptionsContainer,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
rawEntities ?.asTextSources(text)
|
rawEntities ?.asTextSources(text)
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
package dev.inmo.tgbotapi.requests.send
|
package dev.inmo.tgbotapi.requests.send
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.MultipartRequest
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.ReplyingMarkupSendMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.ReplyingMarkupSendMessageRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.SendContentMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.SendContentMessageRequest
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
@@ -10,6 +13,7 @@ import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
|
|||||||
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializationStrategyClass
|
import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializationStrategyClass
|
||||||
import dev.inmo.tgbotapi.types.message.content.RichMessageContent
|
import dev.inmo.tgbotapi.types.message.content.RichMessageContent
|
||||||
import dev.inmo.tgbotapi.types.rich.InputRichMessage
|
import dev.inmo.tgbotapi.types.rich.InputRichMessage
|
||||||
|
import dev.inmo.tgbotapi.types.rich.multipartFiles
|
||||||
import kotlinx.serialization.DeserializationStrategy
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
import kotlinx.serialization.EncodeDefault
|
import kotlinx.serialization.EncodeDefault
|
||||||
import kotlinx.serialization.ExperimentalSerializationApi
|
import kotlinx.serialization.ExperimentalSerializationApi
|
||||||
@@ -56,10 +60,14 @@ data class SendRichMessage(
|
|||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendContentMessageRequest<ChatContentMessage<RichMessageContent>>,
|
) : SendContentMessageRequest<ChatContentMessage<RichMessageContent>>,
|
||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<RichMessageContent>> {
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<RichMessageContent>>,
|
||||||
|
MultipartRequest.Common<ChatContentMessage<RichMessageContent>> {
|
||||||
override fun method(): String = "sendRichMessage"
|
override fun method(): String = "sendRichMessage"
|
||||||
override val resultDeserializer: DeserializationStrategy<ChatContentMessage<RichMessageContent>>
|
override val resultDeserializer: DeserializationStrategy<ChatContentMessage<RichMessageContent>>
|
||||||
get() = RichMessageContentMessageResultDeserializer
|
get() = RichMessageContentMessageResultDeserializer
|
||||||
override val requestSerializer: SerializationStrategy<*>
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
get() = serializer()
|
get() = serializer()
|
||||||
|
override val data: SimpleRequest<ChatContentMessage<RichMessageContent>>
|
||||||
|
get() = this
|
||||||
|
override val mediaMap: Map<String, MultipartFile> by lazy { richMessage.multipartFiles }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import dev.inmo.tgbotapi.types.draftIdField
|
|||||||
import dev.inmo.tgbotapi.types.messageThreadIdField
|
import dev.inmo.tgbotapi.types.messageThreadIdField
|
||||||
import dev.inmo.tgbotapi.types.richMessageField
|
import dev.inmo.tgbotapi.types.richMessageField
|
||||||
import dev.inmo.tgbotapi.types.rich.InputRichMessage
|
import dev.inmo.tgbotapi.types.rich.InputRichMessage
|
||||||
|
import dev.inmo.tgbotapi.types.rich.multipartFiles
|
||||||
import dev.inmo.tgbotapi.utils.serializers.UnitFromBooleanSerializer
|
import dev.inmo.tgbotapi.utils.serializers.UnitFromBooleanSerializer
|
||||||
import kotlinx.serialization.DeserializationStrategy
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
@@ -39,6 +40,9 @@ data class SendRichMessageDraft(
|
|||||||
require(draftId != 0L) {
|
require(draftId != 0L) {
|
||||||
"draftId of SendRichMessageDraft must be non-zero"
|
"draftId of SendRichMessageDraft must be non-zero"
|
||||||
}
|
}
|
||||||
|
require(richMessage.multipartFiles.isEmpty()) {
|
||||||
|
"sendRichMessageDraft does not support direct upload of new files"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override val requestSerializer: SerializationStrategy<*>
|
override val requestSerializer: SerializationStrategy<*>
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ data class SendVenue(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -62,7 +66,8 @@ data class SendVenue(
|
|||||||
) : SendContentMessageRequest<ChatContentMessage<VenueContent>>,
|
) : SendContentMessageRequest<ChatContentMessage<VenueContent>>,
|
||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<VenueContent>>,
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<VenueContent>>,
|
||||||
TitledSendMessageRequest<ChatContentMessage<VenueContent>>,
|
TitledSendMessageRequest<ChatContentMessage<VenueContent>>,
|
||||||
PositionedSendMessageRequest<ChatContentMessage<VenueContent>>
|
PositionedSendMessageRequest<ChatContentMessage<VenueContent>>,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
constructor(
|
constructor(
|
||||||
chatId: ChatIdentifier,
|
chatId: ChatIdentifier,
|
||||||
@@ -70,6 +75,8 @@ data class SendVenue(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -90,6 +97,8 @@ data class SendVenue(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -111,6 +120,8 @@ fun Venue.toRequest(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -124,6 +135,8 @@ fun Venue.toRequest(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package dev.inmo.tgbotapi.requests.send.abstracts
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.CallbackQueryId
|
||||||
|
import dev.inmo.tgbotapi.types.UserId
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inheritors of this interface may be sent as ephemeral messages (visible only to [receiverUserId] and the bot)
|
||||||
|
* by passing a non-null [receiverUserId]. Available for groups/supergroups only.
|
||||||
|
*/
|
||||||
|
interface OptionallyEphemeralSendRequest {
|
||||||
|
val receiverUserId: UserId?
|
||||||
|
val callbackQueryId: CallbackQueryId?
|
||||||
|
}
|
||||||
@@ -38,6 +38,8 @@ fun SendAnimation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -64,6 +66,8 @@ fun SendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -96,6 +100,8 @@ fun SendAnimation(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -122,6 +128,8 @@ fun SendAnimation(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -179,6 +187,10 @@ data class SendAnimationData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -201,7 +213,8 @@ data class SendAnimationData internal constructor(
|
|||||||
DuratedSendMessageRequest<ChatContentMessage<AnimationContent>>,
|
DuratedSendMessageRequest<ChatContentMessage<AnimationContent>>,
|
||||||
SizedSendMessageRequest<ChatContentMessage<AnimationContent>>,
|
SizedSendMessageRequest<ChatContentMessage<AnimationContent>>,
|
||||||
WithCustomizableCaptionRequest<ChatContentMessage<AnimationContent>>,
|
WithCustomizableCaptionRequest<ChatContentMessage<AnimationContent>>,
|
||||||
OptionallyWithSpoilerRequest
|
OptionallyWithSpoilerRequest,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
rawEntities ?.asTextSources(text ?: return@lazy null)
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ fun SendAudio(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -61,6 +63,8 @@ fun SendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -91,6 +95,8 @@ fun SendAudio(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -115,6 +121,8 @@ fun SendAudio(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -168,6 +176,10 @@ data class SendAudioData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -189,7 +201,8 @@ data class SendAudioData internal constructor(
|
|||||||
ThumbedSendMessageRequest<ChatContentMessage<AudioContent>>,
|
ThumbedSendMessageRequest<ChatContentMessage<AudioContent>>,
|
||||||
TitledSendMessageRequest<ChatContentMessage<AudioContent>>,
|
TitledSendMessageRequest<ChatContentMessage<AudioContent>>,
|
||||||
DuratedSendMessageRequest<ChatContentMessage<AudioContent>>,
|
DuratedSendMessageRequest<ChatContentMessage<AudioContent>>,
|
||||||
Performerable
|
Performerable,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: List<TextSource>? by lazy {
|
override val textSources: List<TextSource>? by lazy {
|
||||||
rawEntities ?.asTextSources(text ?: return@lazy null)
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ fun SendDocument(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -64,6 +66,8 @@ fun SendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -101,6 +105,8 @@ fun SendDocument(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -123,6 +129,8 @@ fun SendDocument(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -180,6 +188,10 @@ data class SendDocumentData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -200,7 +212,8 @@ data class SendDocumentData internal constructor(
|
|||||||
SendContentMessageRequest<ChatContentMessage<DocumentContent>>,
|
SendContentMessageRequest<ChatContentMessage<DocumentContent>>,
|
||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<DocumentContent>>,
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<DocumentContent>>,
|
||||||
TextableSendMessageRequest<ChatContentMessage<DocumentContent>>,
|
TextableSendMessageRequest<ChatContentMessage<DocumentContent>>,
|
||||||
ThumbedSendMessageRequest<ChatContentMessage<DocumentContent>>
|
ThumbedSendMessageRequest<ChatContentMessage<DocumentContent>>,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
rawEntities ?.asTextSources(text ?: return@lazy null)
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ fun SendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -58,6 +60,8 @@ fun SendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -87,6 +91,8 @@ fun SendLivePhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -110,6 +116,8 @@ fun SendLivePhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -161,6 +169,10 @@ data class SendLivePhotoData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -180,7 +192,8 @@ data class SendLivePhotoData internal constructor(
|
|||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<LivePhotoContent>>,
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<LivePhotoContent>>,
|
||||||
TextableSendMessageRequest<ChatContentMessage<LivePhotoContent>>,
|
TextableSendMessageRequest<ChatContentMessage<LivePhotoContent>>,
|
||||||
WithCustomizableCaptionRequest<ChatContentMessage<LivePhotoContent>>,
|
WithCustomizableCaptionRequest<ChatContentMessage<LivePhotoContent>>,
|
||||||
OptionallyWithSpoilerRequest
|
OptionallyWithSpoilerRequest,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
rawEntities ?.asTextSources(text ?: return@lazy null)
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ fun SendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -52,6 +54,8 @@ fun SendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -79,6 +83,8 @@ fun SendPhoto(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -98,6 +104,8 @@ fun SendPhoto(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -147,6 +155,10 @@ data class SendPhotoData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -166,7 +178,8 @@ data class SendPhotoData internal constructor(
|
|||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<PhotoContent>>,
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<PhotoContent>>,
|
||||||
TextableSendMessageRequest<ChatContentMessage<PhotoContent>>,
|
TextableSendMessageRequest<ChatContentMessage<PhotoContent>>,
|
||||||
WithCustomizableCaptionRequest<ChatContentMessage<PhotoContent>>,
|
WithCustomizableCaptionRequest<ChatContentMessage<PhotoContent>>,
|
||||||
OptionallyWithSpoilerRequest
|
OptionallyWithSpoilerRequest,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
rawEntities ?.asTextSources(text ?: return@lazy null)
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package dev.inmo.tgbotapi.requests.send.media
|
|||||||
|
|
||||||
import dev.inmo.tgbotapi.requests.abstracts.*
|
import dev.inmo.tgbotapi.requests.abstracts.*
|
||||||
import dev.inmo.tgbotapi.requests.common.CommonMultipartFileRequest
|
import dev.inmo.tgbotapi.requests.common.CommonMultipartFileRequest
|
||||||
|
import dev.inmo.tgbotapi.requests.send.abstracts.OptionallyEphemeralSendRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.ReplyingMarkupSendMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.ReplyingMarkupSendMessageRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.SendContentMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.SendContentMessageRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.SendMessageRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.SendMessageRequest
|
||||||
@@ -22,6 +23,8 @@ fun SendSticker(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -36,6 +39,8 @@ fun SendSticker(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
@@ -74,6 +79,10 @@ data class SendStickerByFileId internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(emojiField)
|
@SerialName(emojiField)
|
||||||
val emoji: String? = null,
|
val emoji: String? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@@ -90,7 +99,7 @@ data class SendStickerByFileId internal constructor(
|
|||||||
override val replyParameters: ReplyParameters? = null,
|
override val replyParameters: ReplyParameters? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendContentMessageRequest<ChatContentMessage<StickerContent>>, ReplyingMarkupSendMessageRequest<ChatContentMessage<StickerContent>> {
|
) : SendContentMessageRequest<ChatContentMessage<StickerContent>>, ReplyingMarkupSendMessageRequest<ChatContentMessage<StickerContent>>, OptionallyEphemeralSendRequest {
|
||||||
override fun method(): String = "sendSticker"
|
override fun method(): String = "sendSticker"
|
||||||
override val resultDeserializer: DeserializationStrategy<ChatContentMessage<StickerContent>>
|
override val resultDeserializer: DeserializationStrategy<ChatContentMessage<StickerContent>>
|
||||||
get() = commonResultDeserializer
|
get() = commonResultDeserializer
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ fun SendVideo(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -73,6 +75,8 @@ fun SendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -108,6 +112,8 @@ fun SendVideo(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -138,6 +144,8 @@ fun SendVideo(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -201,6 +209,10 @@ data class SendVideoData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -226,7 +238,8 @@ data class SendVideoData internal constructor(
|
|||||||
CoveredSendMessageRequest<ChatContentMessage<VideoContent>>,
|
CoveredSendMessageRequest<ChatContentMessage<VideoContent>>,
|
||||||
WithCustomStartMediaData,
|
WithCustomStartMediaData,
|
||||||
OptionallyWithSpoilerRequest,
|
OptionallyWithSpoilerRequest,
|
||||||
OptionallyStreamable
|
OptionallyStreamable,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
rawEntities ?.asTextSources(text ?: return@lazy null)
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ fun SendVideoNote(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -45,6 +47,8 @@ fun SendVideoNote(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -90,6 +94,10 @@ data class SendVideoNoteData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -109,7 +117,8 @@ data class SendVideoNoteData internal constructor(
|
|||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<VideoNoteContent>>,
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<VideoNoteContent>>,
|
||||||
ThumbedSendMessageRequest<ChatContentMessage<VideoNoteContent>>,
|
ThumbedSendMessageRequest<ChatContentMessage<VideoNoteContent>>,
|
||||||
DuratedSendMessageRequest<ChatContentMessage<VideoNoteContent>>,
|
DuratedSendMessageRequest<ChatContentMessage<VideoNoteContent>>,
|
||||||
SizedSendMessageRequest<ChatContentMessage<VideoNoteContent>>
|
SizedSendMessageRequest<ChatContentMessage<VideoNoteContent>>,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val height: Int?
|
override val height: Int?
|
||||||
get() = width
|
get() = width
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ fun SendVoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
allowPaidBroadcast: Boolean = false,
|
||||||
@@ -51,6 +53,8 @@ fun SendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -77,6 +81,8 @@ fun SendVoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
callbackQueryId: CallbackQueryId? = null,
|
||||||
duration: Long? = null,
|
duration: Long? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
@@ -98,6 +104,8 @@ fun SendVoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
directMessageThreadId = directMessageThreadId,
|
directMessageThreadId = directMessageThreadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
|
receiverUserId = receiverUserId,
|
||||||
|
callbackQueryId = callbackQueryId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
allowPaidBroadcast = allowPaidBroadcast,
|
||||||
@@ -145,6 +153,10 @@ data class SendVoiceData internal constructor(
|
|||||||
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
override val directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
|
||||||
@SerialName(businessConnectionIdField)
|
@SerialName(businessConnectionIdField)
|
||||||
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
override val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
|
@SerialName(receiverUserIdField)
|
||||||
|
override val receiverUserId: UserId? = chatId.receiverUser,
|
||||||
|
@SerialName(callbackQueryIdField)
|
||||||
|
override val callbackQueryId: CallbackQueryId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
@@ -163,7 +175,8 @@ data class SendVoiceData internal constructor(
|
|||||||
SendContentMessageRequest<ChatContentMessage<VoiceContent>>,
|
SendContentMessageRequest<ChatContentMessage<VoiceContent>>,
|
||||||
ReplyingMarkupSendMessageRequest<ChatContentMessage<VoiceContent>>,
|
ReplyingMarkupSendMessageRequest<ChatContentMessage<VoiceContent>>,
|
||||||
TextableSendMessageRequest<ChatContentMessage<VoiceContent>>,
|
TextableSendMessageRequest<ChatContentMessage<VoiceContent>>,
|
||||||
DuratedSendMessageRequest<ChatContentMessage<VoiceContent>>
|
DuratedSendMessageRequest<ChatContentMessage<VoiceContent>>,
|
||||||
|
OptionallyEphemeralSendRequest
|
||||||
{
|
{
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
rawEntities ?.asTextSources(text ?: return@lazy null)
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ data class BotCommand(
|
|||||||
@SerialName(botCommandField)
|
@SerialName(botCommandField)
|
||||||
val command: String,
|
val command: String,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
val description: String
|
val description: String,
|
||||||
|
@SerialName(isEphemeralField)
|
||||||
|
val isEphemeral: Boolean = false
|
||||||
) {
|
) {
|
||||||
init {
|
init {
|
||||||
if (command.length !in botCommandLengthLimit) {
|
if (command.length !in botCommandLengthLimit) {
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ sealed interface IdChatIdentifier : ChatIdentifier {
|
|||||||
get() = null
|
get() = null
|
||||||
val directMessageThreadId: DirectMessageThreadId?
|
val directMessageThreadId: DirectMessageThreadId?
|
||||||
get() = null
|
get() = null
|
||||||
|
val receiverUser: UserId?
|
||||||
|
get() = null
|
||||||
|
val ephemeralMessageId: EphemeralMessageId?
|
||||||
|
get() = null
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
operator fun invoke(chatId: RawChatId, threadId: MessageThreadId? = null, businessConnectionId: BusinessConnectionId? = null) = threadId ?.let {
|
operator fun invoke(chatId: RawChatId, threadId: MessageThreadId? = null, businessConnectionId: BusinessConnectionId? = null) = threadId ?.let {
|
||||||
@@ -48,6 +52,7 @@ sealed interface IdChatIdentifier : ChatIdentifier {
|
|||||||
} ?: ChatId(chatId)
|
} ?: ChatId(chatId)
|
||||||
operator fun invoke(chatId: RawChatId, threadId: MessageThreadId) = ChatIdWithThreadId(chatId, threadId)
|
operator fun invoke(chatId: RawChatId, threadId: MessageThreadId) = ChatIdWithThreadId(chatId, threadId)
|
||||||
operator fun invoke(chatId: RawChatId, businessConnectionId: BusinessConnectionId) = BusinessChatId(chatId, businessConnectionId)
|
operator fun invoke(chatId: RawChatId, businessConnectionId: BusinessConnectionId) = BusinessChatId(chatId, businessConnectionId)
|
||||||
|
operator fun invoke(chatId: RawChatId, receiverUser: UserId, ephemeralMessageId: EphemeralMessageId? = null) = EphemeralChatId(chatId, receiverUser, ephemeralMessageId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,6 +96,26 @@ value class BusinessChatId(val chatIdWithBusinessConnectionId: Pair<RawChatId, B
|
|||||||
constructor(chatId: RawChatId, businessConnectionId: BusinessConnectionId): this(chatId to businessConnectionId)
|
constructor(chatId: RawChatId, businessConnectionId: BusinessConnectionId): this(chatId to businessConnectionId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chat id of group/supergroup additionally carrying ephemeral [receiverUser] (and optional [ephemeralMessageId]);
|
||||||
|
* used to default `receiverUserId`/`ephemeralMessageId` params of ephemeral-related requests
|
||||||
|
*/
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(ChatIdentifierSerializer::class)
|
||||||
|
@JvmInline
|
||||||
|
value class EphemeralChatId(
|
||||||
|
val chatIdWithReceiverUserAndEphemeralMessageId: Triple<RawChatId, UserId, EphemeralMessageId?>
|
||||||
|
) : IdChatIdentifier {
|
||||||
|
override val chatId: RawChatId
|
||||||
|
get() = chatIdWithReceiverUserAndEphemeralMessageId.first
|
||||||
|
override val receiverUser: UserId
|
||||||
|
get() = chatIdWithReceiverUserAndEphemeralMessageId.second
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId?
|
||||||
|
get() = chatIdWithReceiverUserAndEphemeralMessageId.third
|
||||||
|
|
||||||
|
constructor(chatId: RawChatId, receiverUser: UserId, ephemeralMessageId: EphemeralMessageId? = null): this(Triple(chatId, receiverUser, ephemeralMessageId))
|
||||||
|
}
|
||||||
|
|
||||||
val ChatIdentifier.threadId: MessageThreadId?
|
val ChatIdentifier.threadId: MessageThreadId?
|
||||||
get() = (this as? IdChatIdentifier) ?.threadId
|
get() = (this as? IdChatIdentifier) ?.threadId
|
||||||
|
|
||||||
@@ -100,16 +125,24 @@ val ChatIdentifier.directMessageThreadId: DirectMessageThreadId?
|
|||||||
val ChatIdentifier.businessConnectionId: BusinessConnectionId?
|
val ChatIdentifier.businessConnectionId: BusinessConnectionId?
|
||||||
get() = (this as? IdChatIdentifier) ?.businessConnectionId
|
get() = (this as? IdChatIdentifier) ?.businessConnectionId
|
||||||
|
|
||||||
|
val ChatIdentifier.receiverUser: UserId?
|
||||||
|
get() = (this as? IdChatIdentifier) ?.receiverUser
|
||||||
|
|
||||||
|
val ChatIdentifier.ephemeralMessageId: EphemeralMessageId?
|
||||||
|
get() = (this as? IdChatIdentifier) ?.ephemeralMessageId
|
||||||
|
|
||||||
fun IdChatIdentifier.toChatId() = when (this) {
|
fun IdChatIdentifier.toChatId() = when (this) {
|
||||||
is ChatId -> this
|
is ChatId -> this
|
||||||
is ChatIdWithThreadId -> ChatId(chatId)
|
is ChatIdWithThreadId -> ChatId(chatId)
|
||||||
is ChatIdWithChannelDirectMessageThreadId -> ChatId(chatId)
|
is ChatIdWithChannelDirectMessageThreadId -> ChatId(chatId)
|
||||||
is BusinessChatId -> ChatId(chatId)
|
is BusinessChatId -> ChatId(chatId)
|
||||||
|
is EphemeralChatId -> ChatId(chatId)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun IdChatIdentifier.toChatWithThreadId(threadId: MessageThreadId) = IdChatIdentifier(chatId, threadId)
|
fun IdChatIdentifier.toChatWithThreadId(threadId: MessageThreadId) = IdChatIdentifier(chatId, threadId)
|
||||||
fun IdChatIdentifier.toChatIdWithChannelDirectMessageThreadId(threadId: DirectMessageThreadId) = ChatIdWithChannelDirectMessageThreadId(chatId, threadId)
|
fun IdChatIdentifier.toChatIdWithChannelDirectMessageThreadId(threadId: DirectMessageThreadId) = ChatIdWithChannelDirectMessageThreadId(chatId, threadId)
|
||||||
fun IdChatIdentifier.toBusinessChatId(businessConnectionId: BusinessConnectionId) = IdChatIdentifier(chatId, businessConnectionId)
|
fun IdChatIdentifier.toBusinessChatId(businessConnectionId: BusinessConnectionId) = IdChatIdentifier(chatId, businessConnectionId)
|
||||||
|
fun IdChatIdentifier.toEphemeralChatId(receiverUser: UserId, ephemeralMessageId: EphemeralMessageId? = null) = IdChatIdentifier(chatId, receiverUser, ephemeralMessageId)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* https://core.telegram.org/bots/api#formatting-options
|
* https://core.telegram.org/bots/api#formatting-options
|
||||||
@@ -256,6 +289,17 @@ object FullChatIdentifierSerializer : KSerializer<ChatIdentifier> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4 -> {
|
||||||
|
val (chatId, intermediateDelimiter, receiverUserChatId, ephemeralMessageId) = splitted
|
||||||
|
when (intermediateDelimiter) {
|
||||||
|
"eph" -> EphemeralChatId(
|
||||||
|
chatId.toLongOrNull() ?.let(::RawChatId) ?: return@let null,
|
||||||
|
receiverUserChatId.toLongOrNull() ?.let { ChatId(RawChatId(it)) } ?: return@let null,
|
||||||
|
ephemeralMessageId.toLongOrNull() ?.let(::EphemeralMessageId)
|
||||||
|
)
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
}
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
} ?: id.content.let {
|
} ?: id.content.let {
|
||||||
@@ -269,6 +313,7 @@ object FullChatIdentifierSerializer : KSerializer<ChatIdentifier> {
|
|||||||
is ChatIdWithThreadId -> encoder.encodeString("${value.chatId}/${value.threadId}")
|
is ChatIdWithThreadId -> encoder.encodeString("${value.chatId}/${value.threadId}")
|
||||||
is BusinessChatId -> encoder.encodeString("${value.chatId}//${value.businessConnectionId}")
|
is BusinessChatId -> encoder.encodeString("${value.chatId}//${value.businessConnectionId}")
|
||||||
is ChatIdWithChannelDirectMessageThreadId -> encoder.encodeString("${value.chatId}/cdm/${value.directMessageThreadId}")
|
is ChatIdWithChannelDirectMessageThreadId -> encoder.encodeString("${value.chatId}/cdm/${value.directMessageThreadId}")
|
||||||
|
is EphemeralChatId -> encoder.encodeString("${value.chatId}/eph/${value.receiverUser.chatId}/${value.ephemeralMessageId?.long ?: ""}")
|
||||||
is Username -> encoder.encodeString(value.full)
|
is Username -> encoder.encodeString(value.full)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -466,6 +466,7 @@ const val botCommandField = "command"
|
|||||||
const val botCommandFullField = "bot_command"
|
const val botCommandFullField = "bot_command"
|
||||||
const val botCommandsField = "commands"
|
const val botCommandsField = "commands"
|
||||||
const val scopeField = "scope"
|
const val scopeField = "scope"
|
||||||
|
const val isEphemeralField = "is_ephemeral"
|
||||||
|
|
||||||
const val isMemberField = "is_member"
|
const val isMemberField = "is_member"
|
||||||
const val isForumField = "is_forum"
|
const val isForumField = "is_forum"
|
||||||
@@ -756,6 +757,9 @@ const val mainFrameTimestampField = "main_frame_timestamp"
|
|||||||
const val firstProfileAudioField = "first_profile_audio"
|
const val firstProfileAudioField = "first_profile_audio"
|
||||||
const val paidMessageStarCountField = "paid_message_star_count"
|
const val paidMessageStarCountField = "paid_message_star_count"
|
||||||
const val senderTagField = "sender_tag"
|
const val senderTagField = "sender_tag"
|
||||||
|
const val receiverUserField = "receiver_user"
|
||||||
|
const val receiverUserIdField = "receiver_user_id"
|
||||||
|
const val ephemeralMessageIdField = "ephemeral_message_id"
|
||||||
const val countField = "count"
|
const val countField = "count"
|
||||||
const val ratingField = "rating"
|
const val ratingField = "rating"
|
||||||
const val uniqueGiftColorsField = "unique_gift_colors"
|
const val uniqueGiftColorsField = "unique_gift_colors"
|
||||||
@@ -942,4 +946,6 @@ const val temperatureField = "temperature"
|
|||||||
const val backgroundColorField = "background_color"
|
const val backgroundColorField = "background_color"
|
||||||
const val keepOriginalDetailsField = "keep_original_details"
|
const val keepOriginalDetailsField = "keep_original_details"
|
||||||
|
|
||||||
|
const val communityField = "community"
|
||||||
|
|
||||||
const val codecField = "codec"
|
const val codecField = "codec"
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package dev.inmo.tgbotapi.types
|
||||||
|
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlin.jvm.JvmInline
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
@JvmInline
|
||||||
|
value class EphemeralMessageId(
|
||||||
|
val long: Long
|
||||||
|
) {
|
||||||
|
override fun toString(): String {
|
||||||
|
return long.toString()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Long.asEphemeralMessageId() = EphemeralMessageId(this)
|
||||||
@@ -2,48 +2,91 @@ package dev.inmo.tgbotapi.types
|
|||||||
|
|
||||||
import dev.inmo.tgbotapi.abstracts.TextedInput
|
import dev.inmo.tgbotapi.abstracts.TextedInput
|
||||||
import dev.inmo.tgbotapi.abstracts.WithMessageId
|
import dev.inmo.tgbotapi.abstracts.WithMessageId
|
||||||
|
import dev.inmo.tgbotapi.types.chat.Bot
|
||||||
|
import dev.inmo.tgbotapi.types.chat.PreviewBot
|
||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTaskId
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTaskId
|
||||||
import dev.inmo.tgbotapi.types.polls.PollOptionPersistentId
|
|
||||||
import dev.inmo.tgbotapi.types.message.ParseMode
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.Message
|
import dev.inmo.tgbotapi.types.message.abstracts.Message
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.OptionallyFromUserMessage
|
||||||
|
import dev.inmo.tgbotapi.types.message.abstracts.PossiblyEphemeralMessage
|
||||||
import dev.inmo.tgbotapi.types.message.asTextSources
|
import dev.inmo.tgbotapi.types.message.asTextSources
|
||||||
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
||||||
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||||
|
import dev.inmo.tgbotapi.types.polls.PollOptionPersistentId
|
||||||
import dev.inmo.tgbotapi.utils.extensions.makeSourceString
|
import dev.inmo.tgbotapi.utils.extensions.makeSourceString
|
||||||
|
import kotlinx.serialization.KSerializer
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.SerializationException
|
||||||
|
import kotlinx.serialization.descriptors.SerialDescriptor
|
||||||
|
import kotlinx.serialization.encoding.Decoder
|
||||||
|
import kotlinx.serialization.encoding.Encoder
|
||||||
|
|
||||||
|
@Serializable(ReplyParameters.Serializer::class)
|
||||||
|
sealed interface ReplyParameters {
|
||||||
|
val messageId: MessageId?
|
||||||
|
val allowSendingWithoutReply: Boolean?
|
||||||
|
val checklistTaskId: ChecklistTaskId?
|
||||||
|
val pollOptionId: PollOptionPersistentId?
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reply parameters targeting a regular message identified by [messageId]. A `null` [chatIdentifier] targets a
|
||||||
|
* message in the current chat; a non-null [chatIdentifier] targets a message in a different chat. Public
|
||||||
|
* construction uses the `ReplyParameters(...)` companion factories.
|
||||||
|
*/
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@ConsistentCopyVisibility
|
@ConsistentCopyVisibility
|
||||||
@Serializable
|
@Serializable(ReplyParameters.Serializer::class)
|
||||||
data class ReplyParameters internal constructor(
|
data class Chat internal constructor(
|
||||||
@SerialName(chatIdField)
|
val chatIdentifier: ChatIdentifier?,
|
||||||
val chatIdentifier: ChatIdentifier,
|
|
||||||
@SerialName(messageIdField)
|
|
||||||
override val messageId: MessageId,
|
override val messageId: MessageId,
|
||||||
@SerialName(allowSendingWithoutReplyField)
|
override val allowSendingWithoutReply: Boolean? = null,
|
||||||
val allowSendingWithoutReply: Boolean? = null,
|
|
||||||
@SerialName(quoteField)
|
|
||||||
val quote: String? = null,
|
val quote: String? = null,
|
||||||
@SerialName(quoteParseModeField)
|
|
||||||
val quoteParseMode: ParseMode? = null,
|
val quoteParseMode: ParseMode? = null,
|
||||||
@SerialName(quoteEntitiesField)
|
internal val quoteEntities: List<RawMessageEntity>? = null,
|
||||||
private val quoteEntities: List<RawMessageEntity>? = null,
|
|
||||||
@SerialName(quotePositionField)
|
|
||||||
val quotePosition: Int? = null,
|
val quotePosition: Int? = null,
|
||||||
@SerialName(checklistTaskIdField)
|
override val checklistTaskId: ChecklistTaskId? = null,
|
||||||
val checklistTaskId: ChecklistTaskId? = null,
|
override val pollOptionId: PollOptionPersistentId? = null,
|
||||||
@SerialName(pollOptionIdField)
|
) : WithMessageId, ReplyParameters, TextedInput {
|
||||||
val pollOptionId: PollOptionPersistentId? = null,
|
|
||||||
) : WithMessageId, TextedInput {
|
|
||||||
override val text: String?
|
override val text: String?
|
||||||
get() = quote
|
get() = quote
|
||||||
override val textSources: List<TextSource> by lazy {
|
override val textSources: List<TextSource> by lazy {
|
||||||
quoteEntities ?.asTextSources(quote ?: return@lazy emptyList()) ?: emptyList()
|
quoteEntities ?.asTextSources(quote ?: return@lazy emptyList()) ?: emptyList()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
constructor(
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(ReplyParameters.Serializer::class)
|
||||||
|
/**
|
||||||
|
* Reply parameters targeting an incoming ephemeral message identified by [ephemeralMessageId]. The outgoing
|
||||||
|
* reply must also be ephemeral; chat and quote fields are unsupported for ephemeral replies. Type-neutral
|
||||||
|
* construction is available through the `ReplyParameters(...)` companion factory.
|
||||||
|
*/
|
||||||
|
data class Ephemeral(
|
||||||
|
val ephemeralMessageId: EphemeralMessageId,
|
||||||
|
override val allowSendingWithoutReply: Boolean? = null,
|
||||||
|
override val checklistTaskId: ChecklistTaskId? = null,
|
||||||
|
override val pollOptionId: PollOptionPersistentId? = null,
|
||||||
|
) : ReplyParameters {
|
||||||
|
override val messageId: MessageId? = null
|
||||||
|
}
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
operator fun invoke(
|
||||||
|
ephemeralMessageId: EphemeralMessageId,
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
|
): Ephemeral = Ephemeral(
|
||||||
|
ephemeralMessageId,
|
||||||
|
allowSendingWithoutReply,
|
||||||
|
checklistTaskId,
|
||||||
|
pollOptionId
|
||||||
|
)
|
||||||
|
|
||||||
|
operator fun invoke(
|
||||||
chatIdentifier: ChatIdentifier,
|
chatIdentifier: ChatIdentifier,
|
||||||
messageId: MessageId,
|
messageId: MessageId,
|
||||||
entities: TextSourcesList,
|
entities: TextSourcesList,
|
||||||
@@ -51,7 +94,7 @@ data class ReplyParameters internal constructor(
|
|||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = Chat(
|
||||||
chatIdentifier,
|
chatIdentifier,
|
||||||
messageId,
|
messageId,
|
||||||
allowSendingWithoutReply,
|
allowSendingWithoutReply,
|
||||||
@@ -62,14 +105,15 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
metaInfo: Message.MetaInfo,
|
metaInfo: Message.MetaInfo,
|
||||||
entities: TextSourcesList,
|
entities: TextSourcesList,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = invoke(
|
||||||
metaInfo.chatId,
|
metaInfo.chatId,
|
||||||
metaInfo.messageId,
|
metaInfo.messageId,
|
||||||
entities,
|
entities,
|
||||||
@@ -78,14 +122,15 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
message: Message,
|
message: Message,
|
||||||
entities: TextSourcesList,
|
entities: TextSourcesList,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = invoke(
|
||||||
message.metaInfo,
|
message.metaInfo,
|
||||||
entities,
|
entities,
|
||||||
allowSendingWithoutReply,
|
allowSendingWithoutReply,
|
||||||
@@ -93,7 +138,8 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
chatIdentifier: ChatIdentifier,
|
chatIdentifier: ChatIdentifier,
|
||||||
messageId: MessageId,
|
messageId: MessageId,
|
||||||
quote: String,
|
quote: String,
|
||||||
@@ -102,7 +148,7 @@ data class ReplyParameters internal constructor(
|
|||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = Chat(
|
||||||
chatIdentifier,
|
chatIdentifier,
|
||||||
messageId,
|
messageId,
|
||||||
allowSendingWithoutReply,
|
allowSendingWithoutReply,
|
||||||
@@ -113,7 +159,8 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
metaInfo: Message.MetaInfo,
|
metaInfo: Message.MetaInfo,
|
||||||
quote: String,
|
quote: String,
|
||||||
quoteParseMode: ParseMode,
|
quoteParseMode: ParseMode,
|
||||||
@@ -121,7 +168,7 @@ data class ReplyParameters internal constructor(
|
|||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = invoke(
|
||||||
metaInfo.chatId,
|
metaInfo.chatId,
|
||||||
metaInfo.messageId,
|
metaInfo.messageId,
|
||||||
quote,
|
quote,
|
||||||
@@ -131,7 +178,8 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
message: Message,
|
message: Message,
|
||||||
quote: String,
|
quote: String,
|
||||||
quoteParseMode: ParseMode,
|
quoteParseMode: ParseMode,
|
||||||
@@ -139,7 +187,7 @@ data class ReplyParameters internal constructor(
|
|||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = invoke(
|
||||||
message.metaInfo,
|
message.metaInfo,
|
||||||
quote,
|
quote,
|
||||||
quoteParseMode,
|
quoteParseMode,
|
||||||
@@ -148,14 +196,15 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
chatIdentifier: ChatIdentifier,
|
chatIdentifier: ChatIdentifier,
|
||||||
messageId: MessageId,
|
messageId: MessageId,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = Chat(
|
||||||
chatIdentifier,
|
chatIdentifier,
|
||||||
messageId,
|
messageId,
|
||||||
allowSendingWithoutReply,
|
allowSendingWithoutReply,
|
||||||
@@ -166,13 +215,14 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
metaInfo: Message.MetaInfo,
|
metaInfo: Message.MetaInfo,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = invoke(
|
||||||
metaInfo.chatId,
|
metaInfo.chatId,
|
||||||
metaInfo.messageId,
|
metaInfo.messageId,
|
||||||
allowSendingWithoutReply,
|
allowSendingWithoutReply,
|
||||||
@@ -180,13 +230,14 @@ data class ReplyParameters internal constructor(
|
|||||||
checklistTaskId,
|
checklistTaskId,
|
||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
constructor(
|
|
||||||
|
operator fun invoke(
|
||||||
message: Message,
|
message: Message,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
quotePosition: Int? = null,
|
quotePosition: Int? = null,
|
||||||
checklistTaskId: ChecklistTaskId? = null,
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
pollOptionId: PollOptionPersistentId? = null,
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
) : this(
|
): Chat = invoke(
|
||||||
message.metaInfo,
|
message.metaInfo,
|
||||||
allowSendingWithoutReply,
|
allowSendingWithoutReply,
|
||||||
quotePosition,
|
quotePosition,
|
||||||
@@ -194,3 +245,108 @@ data class ReplyParameters internal constructor(
|
|||||||
pollOptionId
|
pollOptionId
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
object Serializer : KSerializer<ReplyParameters> {
|
||||||
|
@Serializable
|
||||||
|
private data class Surrogate(
|
||||||
|
@SerialName(chatIdField) val chatIdentifier: ChatIdentifier? = null,
|
||||||
|
@SerialName(messageIdField) val messageId: MessageId? = null,
|
||||||
|
@SerialName(allowSendingWithoutReplyField) val allowSendingWithoutReply: Boolean? = null,
|
||||||
|
@SerialName(quoteField) val quote: String? = null,
|
||||||
|
@SerialName(quoteParseModeField) val quoteParseMode: ParseMode? = null,
|
||||||
|
@SerialName(quoteEntitiesField) val quoteEntities: List<RawMessageEntity>? = null,
|
||||||
|
@SerialName(quotePositionField) val quotePosition: Int? = null,
|
||||||
|
@SerialName(checklistTaskIdField) val checklistTaskId: ChecklistTaskId? = null,
|
||||||
|
@SerialName(pollOptionIdField) val pollOptionId: PollOptionPersistentId? = null,
|
||||||
|
@SerialName(ephemeralMessageIdField) val ephemeralMessageId: EphemeralMessageId? = null,
|
||||||
|
)
|
||||||
|
|
||||||
|
override val descriptor: SerialDescriptor = Surrogate.serializer().descriptor
|
||||||
|
|
||||||
|
override fun deserialize(decoder: Decoder): ReplyParameters {
|
||||||
|
val surrogate = decoder.decodeSerializableValue(Surrogate.serializer())
|
||||||
|
if (surrogate.messageId != null && surrogate.ephemeralMessageId != null) {
|
||||||
|
throw SerializationException("ReplyParameters must contain either message_id or ephemeral_message_id, not both")
|
||||||
|
}
|
||||||
|
return when {
|
||||||
|
surrogate.ephemeralMessageId != null -> Ephemeral(
|
||||||
|
ephemeralMessageId = surrogate.ephemeralMessageId,
|
||||||
|
allowSendingWithoutReply = surrogate.allowSendingWithoutReply,
|
||||||
|
checklistTaskId = surrogate.checklistTaskId,
|
||||||
|
pollOptionId = surrogate.pollOptionId
|
||||||
|
)
|
||||||
|
surrogate.messageId != null -> Chat(
|
||||||
|
chatIdentifier = surrogate.chatIdentifier,
|
||||||
|
messageId = surrogate.messageId,
|
||||||
|
allowSendingWithoutReply = surrogate.allowSendingWithoutReply,
|
||||||
|
quote = surrogate.quote,
|
||||||
|
quoteParseMode = surrogate.quoteParseMode,
|
||||||
|
quoteEntities = surrogate.quoteEntities,
|
||||||
|
quotePosition = surrogate.quotePosition,
|
||||||
|
checklistTaskId = surrogate.checklistTaskId,
|
||||||
|
pollOptionId = surrogate.pollOptionId
|
||||||
|
)
|
||||||
|
else -> throw SerializationException("ReplyParameters must contain message_id or ephemeral_message_id")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun serialize(encoder: Encoder, value: ReplyParameters) {
|
||||||
|
val surrogate = when (value) {
|
||||||
|
is Chat -> Surrogate(
|
||||||
|
chatIdentifier = value.chatIdentifier,
|
||||||
|
messageId = value.messageId,
|
||||||
|
allowSendingWithoutReply = value.allowSendingWithoutReply,
|
||||||
|
quote = value.quote,
|
||||||
|
quoteParseMode = value.quoteParseMode,
|
||||||
|
quoteEntities = value.quoteEntities,
|
||||||
|
quotePosition = value.quotePosition,
|
||||||
|
checklistTaskId = value.checklistTaskId,
|
||||||
|
pollOptionId = value.pollOptionId
|
||||||
|
)
|
||||||
|
is Ephemeral -> Surrogate(
|
||||||
|
allowSendingWithoutReply = value.allowSendingWithoutReply,
|
||||||
|
ephemeralMessageId = value.ephemeralMessageId,
|
||||||
|
checklistTaskId = value.checklistTaskId,
|
||||||
|
pollOptionId = value.pollOptionId
|
||||||
|
)
|
||||||
|
}
|
||||||
|
encoder.encodeSerializableValue(Surrogate.serializer(), surrogate)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds [ReplyParameters.Ephemeral] with [allowSendingWithoutReply], [checklistTaskId], and [pollOptionId], targeting
|
||||||
|
* [ephemeralMessageId]. The target defaults to [PossiblyEphemeralMessage.ephemeralMessageId]; a missing target produces
|
||||||
|
* `null`.
|
||||||
|
*/
|
||||||
|
fun Message.ephemeralReplyParametersOrNull(
|
||||||
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
|
ephemeralMessageId: EphemeralMessageId? = (this as? PossiblyEphemeralMessage) ?.ephemeralMessageId,
|
||||||
|
checklistTaskId: ChecklistTaskId? = null,
|
||||||
|
pollOptionId: PollOptionPersistentId? = null,
|
||||||
|
): ReplyParameters? =
|
||||||
|
ephemeralMessageId ?.let {
|
||||||
|
ReplyParameters(
|
||||||
|
ephemeralMessageId = it,
|
||||||
|
allowSendingWithoutReply = allowSendingWithoutReply,
|
||||||
|
checklistTaskId = checklistTaskId,
|
||||||
|
pollOptionId = pollOptionId,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the receiver [UserId] for an ephemeral reply: [PossiblyEphemeralMessage.receiverUser] when available,
|
||||||
|
* otherwise [OptionallyFromUserMessage.from]; returns `null` for a non-ephemeral message.
|
||||||
|
*/
|
||||||
|
val Message.ephemeralReplyReceiverUserIdOrNull: UserId?
|
||||||
|
get() = (this as? PossiblyEphemeralMessage) ?.takeIf { it.ephemeralMessageId != null } ?.let {
|
||||||
|
val receiverUser = it.receiverUser
|
||||||
|
val thisAsOptionallyFromUserMessage = this as? OptionallyFromUserMessage
|
||||||
|
val from = thisAsOptionallyFromUserMessage ?.from
|
||||||
|
when {
|
||||||
|
receiverUser != null && receiverUser !is PreviewBot && from !is Bot -> receiverUser.id
|
||||||
|
from != null && from !is PreviewBot && from !is Bot -> from.id
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ const val UPDATE_GUEST_MESSAGE = "guest_message"
|
|||||||
|
|
||||||
const val UPDATE_MANAGED_BOT = "managed_bot"
|
const val UPDATE_MANAGED_BOT = "managed_bot"
|
||||||
|
|
||||||
|
const val UPDATE_SUBSCRIPTION = "subscription"
|
||||||
|
|
||||||
val ALL_UPDATES_LIST_WITHOUT_REACTIONS = listOf(
|
val ALL_UPDATES_LIST_WITHOUT_REACTIONS = listOf(
|
||||||
UPDATE_MESSAGE,
|
UPDATE_MESSAGE,
|
||||||
UPDATE_EDITED_MESSAGE,
|
UPDATE_EDITED_MESSAGE,
|
||||||
@@ -65,6 +67,8 @@ val ALL_UPDATES_LIST_WITHOUT_REACTIONS = listOf(
|
|||||||
UPDATE_REMOVE_CHAT_BOOST,
|
UPDATE_REMOVE_CHAT_BOOST,
|
||||||
|
|
||||||
UPDATE_MANAGED_BOT,
|
UPDATE_MANAGED_BOT,
|
||||||
|
|
||||||
|
UPDATE_SUBSCRIPTION,
|
||||||
)
|
)
|
||||||
|
|
||||||
val ALL_UPDATES_LIST = ALL_UPDATES_LIST_WITHOUT_REACTIONS + listOf(
|
val ALL_UPDATES_LIST = ALL_UPDATES_LIST_WITHOUT_REACTIONS + listOf(
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessIntro
|
|||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessLocation
|
import dev.inmo.tgbotapi.types.business_connection.BusinessLocation
|
||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
||||||
import dev.inmo.tgbotapi.types.colors.ColorId
|
import dev.inmo.tgbotapi.types.colors.ColorId
|
||||||
|
import dev.inmo.tgbotapi.types.communities.Community
|
||||||
import dev.inmo.tgbotapi.types.files.AudioFile
|
import dev.inmo.tgbotapi.types.files.AudioFile
|
||||||
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
||||||
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors
|
||||||
@@ -71,7 +72,9 @@ data class ExtendedChannelChatImpl(
|
|||||||
@SerialName(uniqueGiftColorsField)
|
@SerialName(uniqueGiftColorsField)
|
||||||
override val uniqueGiftColors: UniqueGiftColors? = null,
|
override val uniqueGiftColors: UniqueGiftColors? = null,
|
||||||
@SerialName(guardBotField)
|
@SerialName(guardBotField)
|
||||||
override val guardBot: User? = null
|
override val guardBot: User? = null,
|
||||||
|
@SerialName(communityField)
|
||||||
|
override val community: Community? = null
|
||||||
) : ExtendedChannelChat
|
) : ExtendedChannelChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -120,7 +123,9 @@ data class ExtendedGroupChatImpl(
|
|||||||
@SerialName(uniqueGiftColorsField)
|
@SerialName(uniqueGiftColorsField)
|
||||||
override val uniqueGiftColors: UniqueGiftColors? = null,
|
override val uniqueGiftColors: UniqueGiftColors? = null,
|
||||||
@SerialName(guardBotField)
|
@SerialName(guardBotField)
|
||||||
override val guardBot: User? = null
|
override val guardBot: User? = null,
|
||||||
|
@SerialName(communityField)
|
||||||
|
override val community: Community? = null
|
||||||
) : ExtendedGroupChat
|
) : ExtendedGroupChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -322,7 +327,9 @@ data class ExtendedSupergroupChatImpl(
|
|||||||
@SerialName(uniqueGiftColorsField)
|
@SerialName(uniqueGiftColorsField)
|
||||||
override val uniqueGiftColors: UniqueGiftColors? = null,
|
override val uniqueGiftColors: UniqueGiftColors? = null,
|
||||||
@SerialName(guardBotField)
|
@SerialName(guardBotField)
|
||||||
override val guardBot: User? = null
|
override val guardBot: User? = null,
|
||||||
|
@SerialName(communityField)
|
||||||
|
override val community: Community? = null
|
||||||
) : ExtendedSupergroupChat
|
) : ExtendedSupergroupChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -398,7 +405,9 @@ data class ExtendedForumChatImpl(
|
|||||||
@SerialName(uniqueGiftColorsField)
|
@SerialName(uniqueGiftColorsField)
|
||||||
override val uniqueGiftColors: UniqueGiftColors? = null,
|
override val uniqueGiftColors: UniqueGiftColors? = null,
|
||||||
@SerialName(guardBotField)
|
@SerialName(guardBotField)
|
||||||
override val guardBot: User? = null
|
override val guardBot: User? = null,
|
||||||
|
@SerialName(communityField)
|
||||||
|
override val community: Community? = null
|
||||||
) : ExtendedForumChat
|
) : ExtendedForumChat
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@@ -477,7 +486,9 @@ data class ExtendedChannelDirectMessagesChatImpl(
|
|||||||
@SerialName(uniqueGiftColorsField)
|
@SerialName(uniqueGiftColorsField)
|
||||||
override val uniqueGiftColors: UniqueGiftColors? = null,
|
override val uniqueGiftColors: UniqueGiftColors? = null,
|
||||||
@SerialName(guardBotField)
|
@SerialName(guardBotField)
|
||||||
override val guardBot: User? = null
|
override val guardBot: User? = null,
|
||||||
|
@SerialName(communityField)
|
||||||
|
override val community: Community? = null
|
||||||
) : ExtendedChannelDirectMessagesChat {
|
) : ExtendedChannelDirectMessagesChat {
|
||||||
@OptIn(ExperimentalSerializationApi::class)
|
@OptIn(ExperimentalSerializationApi::class)
|
||||||
@SerialName(isDirectMessagesField)
|
@SerialName(isDirectMessagesField)
|
||||||
@@ -533,6 +544,8 @@ data class ExtendedBot(
|
|||||||
override val uniqueGiftColors: UniqueGiftColors? = null,
|
override val uniqueGiftColors: UniqueGiftColors? = null,
|
||||||
@SerialName(canManageBotsField)
|
@SerialName(canManageBotsField)
|
||||||
val canManageBots: Boolean = false,
|
val canManageBots: Boolean = false,
|
||||||
|
@SerialName(communityField)
|
||||||
|
override val community: Community? = null,
|
||||||
) : Bot(), ExtendedChat {
|
) : Bot(), ExtendedChat {
|
||||||
@SerialName(isBotField)
|
@SerialName(isBotField)
|
||||||
private val isBot = true
|
private val isBot = true
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessIntro
|
|||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessLocation
|
import dev.inmo.tgbotapi.types.business_connection.BusinessLocation
|
||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
import dev.inmo.tgbotapi.types.business_connection.BusinessOpeningHours
|
||||||
import dev.inmo.tgbotapi.types.colors.ColorId
|
import dev.inmo.tgbotapi.types.colors.ColorId
|
||||||
|
import dev.inmo.tgbotapi.types.communities.Community
|
||||||
import dev.inmo.tgbotapi.types.files.AudioFile
|
import dev.inmo.tgbotapi.types.files.AudioFile
|
||||||
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
import dev.inmo.tgbotapi.types.gifts.AcceptedGiftTypes
|
||||||
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors
|
import dev.inmo.tgbotapi.types.gifts.unique.UniqueGiftColors
|
||||||
@@ -35,6 +36,14 @@ sealed interface ExtendedChat : Chat {
|
|||||||
val guardBot: User?
|
val guardBot: User?
|
||||||
get() = null
|
get() = null
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Community to which the chat belongs
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#chatfullinfo">ChatFullInfo.community</a>
|
||||||
|
*/
|
||||||
|
val community: Community?
|
||||||
|
get() = null
|
||||||
|
|
||||||
@Deprecated(
|
@Deprecated(
|
||||||
message = "Telegram Bot API v9.0 introduced the new field, `acceptedGiftTypes`, to allow granular" +
|
message = "Telegram Bot API v9.0 introduced the new field, `acceptedGiftTypes`, to allow granular" +
|
||||||
" control over which types of gifts user, bot, or chat can accept.",
|
" control over which types of gifts user, bot, or chat can accept.",
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.communities
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.idField
|
||||||
|
import dev.inmo.tgbotapi.types.nameField
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a community (a group of chats)
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class Community(
|
||||||
|
@SerialName(idField)
|
||||||
|
val id: CommunityId,
|
||||||
|
@SerialName(nameField)
|
||||||
|
val name: String
|
||||||
|
)
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.communities
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.communityField
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Service message about a chat being added to a community
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class CommunityChatAdded(
|
||||||
|
@SerialName(communityField)
|
||||||
|
val community: Community
|
||||||
|
) : CommonEvent
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.communities
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Service message about a chat being removed from a community. Currently holds no information
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
object CommunityChatRemoved : CommonEvent
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.communities
|
||||||
|
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlin.jvm.JvmInline
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
@JvmInline
|
||||||
|
value class CommunityId(
|
||||||
|
val long: Long
|
||||||
|
) {
|
||||||
|
override fun toString(): String {
|
||||||
|
return long.toString()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.media
|
||||||
|
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(TelegramMediaSerializer::class)
|
||||||
|
sealed interface RichMessageMemberTelegramMedia : TelegramMedia
|
||||||
@@ -67,7 +67,7 @@ data class TelegramMediaAnimation internal constructor(
|
|||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
override val thumb: InputFile? = null
|
override val thumb: InputFile? = null
|
||||||
) : TelegramFreeMedia, SizedTelegramMedia, DuratedTelegramMedia, ThumbedTelegramMedia, TextedOutput, SpoilerableTelegramMedia, WithCustomizableCaptionTelegramMedia, InputPollMedia, InputPollOptionMedia {
|
) : TelegramFreeMedia, RichMessageMemberTelegramMedia, SizedTelegramMedia, DuratedTelegramMedia, ThumbedTelegramMedia, TextedOutput, SpoilerableTelegramMedia, WithCustomizableCaptionTelegramMedia, InputPollMedia, InputPollOptionMedia {
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val type: String = TYPE
|
override val type: String = TYPE
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ data class TelegramMediaAudio internal constructor(
|
|||||||
override val performer: String? = null,
|
override val performer: String? = null,
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
override val thumb: InputFile? = null
|
override val thumb: InputFile? = null
|
||||||
) : TelegramFreeMedia, AudioMediaGroupMemberTelegramMedia, DuratedTelegramMedia, ThumbedTelegramMedia, TitledTelegramMedia,
|
) : TelegramFreeMedia, RichMessageMemberTelegramMedia, AudioMediaGroupMemberTelegramMedia, DuratedTelegramMedia, ThumbedTelegramMedia, TitledTelegramMedia,
|
||||||
Performerable, InputPollMedia {
|
Performerable, InputPollMedia {
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val type: String = TYPE
|
override val type: String = TYPE
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ data class TelegramMediaPhoto internal constructor(
|
|||||||
override val spoilered: Boolean = false,
|
override val spoilered: Boolean = false,
|
||||||
@SerialName(showCaptionAboveMediaField)
|
@SerialName(showCaptionAboveMediaField)
|
||||||
override val showCaptionAboveMedia: Boolean = false,
|
override val showCaptionAboveMedia: Boolean = false,
|
||||||
) : TelegramFreeMedia, VisualMediaGroupMemberTelegramMedia, InputPollMedia, InputPollOptionMedia {
|
) : TelegramFreeMedia, RichMessageMemberTelegramMedia, VisualMediaGroupMemberTelegramMedia, InputPollMedia, InputPollOptionMedia {
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val type: String = TYPE
|
override val type: String = TYPE
|
||||||
override val textSources: TextSourcesList? by lazy {
|
override val textSources: TextSourcesList? by lazy {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ object TelegramMediaSerializer : KSerializer<TelegramMedia> {
|
|||||||
is TelegramPaidMediaPhoto -> TelegramPaidMediaPhoto.serializer().serialize(encoder, value)
|
is TelegramPaidMediaPhoto -> TelegramPaidMediaPhoto.serializer().serialize(encoder, value)
|
||||||
is TelegramPaidMediaLivePhoto -> TelegramPaidMediaLivePhoto.serializer().serialize(encoder, value)
|
is TelegramPaidMediaLivePhoto -> TelegramPaidMediaLivePhoto.serializer().serialize(encoder, value)
|
||||||
is TelegramMediaSticker -> TelegramMediaSticker.serializer().serialize(encoder, value)
|
is TelegramMediaSticker -> TelegramMediaSticker.serializer().serialize(encoder, value)
|
||||||
|
is TelegramMediaVoiceNote -> TelegramMediaVoiceNote.serializer().serialize(encoder, value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ data class TelegramMediaVideo internal constructor (
|
|||||||
@SerialName(supportsStreamingField)
|
@SerialName(supportsStreamingField)
|
||||||
override val supportsStreaming: Boolean = false,
|
override val supportsStreaming: Boolean = false,
|
||||||
) : TelegramFreeMedia,
|
) : TelegramFreeMedia,
|
||||||
|
RichMessageMemberTelegramMedia,
|
||||||
SizedTelegramMedia,
|
SizedTelegramMedia,
|
||||||
DuratedTelegramMedia,
|
DuratedTelegramMedia,
|
||||||
ThumbedTelegramMedia,
|
ThumbedTelegramMedia,
|
||||||
|
|||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.media
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.TextedOutput
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.InputFile
|
||||||
|
import dev.inmo.tgbotapi.requests.abstracts.fileIdToSend
|
||||||
|
import dev.inmo.tgbotapi.types.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
|
||||||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||||||
|
import dev.inmo.tgbotapi.types.message.parseModeField
|
||||||
|
import dev.inmo.tgbotapi.types.files.VoiceFile
|
||||||
|
import dev.inmo.tgbotapi.types.message.*
|
||||||
|
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
||||||
|
import dev.inmo.tgbotapi.types.message.toRawMessageEntities
|
||||||
|
import dev.inmo.tgbotapi.utils.extensions.makeString
|
||||||
|
import kotlinx.serialization.EncodeDefault
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
fun TelegramMediaVoiceNote(
|
||||||
|
file: InputFile,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
duration: Long? = null
|
||||||
|
) = TelegramMediaVoiceNote(
|
||||||
|
file, entities.makeString(), null, entities.toRawMessageEntities(), duration
|
||||||
|
)
|
||||||
|
|
||||||
|
fun TelegramMediaVoiceNote(
|
||||||
|
file: InputFile,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
duration: Long? = null
|
||||||
|
) = TelegramMediaVoiceNote(
|
||||||
|
file, text, parseMode, null, duration
|
||||||
|
)
|
||||||
|
|
||||||
|
@ConsistentCopyVisibility
|
||||||
|
@Serializable
|
||||||
|
data class TelegramMediaVoiceNote internal constructor(
|
||||||
|
override val file: InputFile,
|
||||||
|
@SerialName(captionField)
|
||||||
|
override val text: String? = null,
|
||||||
|
@SerialName(parseModeField)
|
||||||
|
override val parseMode: ParseMode? = null,
|
||||||
|
@SerialName(captionEntitiesField)
|
||||||
|
private val rawEntities: List<RawMessageEntity>? = null,
|
||||||
|
override val duration: Long? = null
|
||||||
|
) : RichMessageMemberTelegramMedia, DuratedTelegramMedia, TextedOutput {
|
||||||
|
@EncodeDefault
|
||||||
|
override val type: String = TYPE
|
||||||
|
override val textSources: TextSourcesList? by lazy {
|
||||||
|
rawEntities ?.asTextSources(text ?: return@lazy null)
|
||||||
|
}
|
||||||
|
|
||||||
|
@SerialName(mediaField)
|
||||||
|
override val media: String
|
||||||
|
init { media = file.fileIdToSend } // crutch until js compiling will be fixed
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "voice_note"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun VoiceFile.toTelegramMediaVoiceNote(
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null
|
||||||
|
): TelegramMediaVoiceNote = TelegramMediaVoiceNote(
|
||||||
|
fileId,
|
||||||
|
text,
|
||||||
|
parseMode,
|
||||||
|
duration
|
||||||
|
)
|
||||||
|
|
||||||
|
fun VoiceFile.toTelegramMediaVoiceNote(
|
||||||
|
textSources: TextSourcesList = emptyList()
|
||||||
|
): TelegramMediaVoiceNote = TelegramMediaVoiceNote(
|
||||||
|
fileId,
|
||||||
|
textSources,
|
||||||
|
duration
|
||||||
|
)
|
||||||
@@ -189,6 +189,11 @@ data class CommonGroupContentMessageImpl<T : MessageContent>(
|
|||||||
override val cost: Int? = null,
|
override val cost: Int? = null,
|
||||||
@SerialName(senderTagField)
|
@SerialName(senderTagField)
|
||||||
override val senderTag: UserTag? = null,
|
override val senderTag: UserTag? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(receiverUserField)
|
||||||
|
override val receiverUser: PreviewUser? = null,
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId? = null,
|
||||||
) : CommonGroupContentMessage<T> {
|
) : CommonGroupContentMessage<T> {
|
||||||
constructor(
|
constructor(
|
||||||
chat: PreviewGroupChat,
|
chat: PreviewGroupChat,
|
||||||
@@ -475,6 +480,11 @@ data class CommonForumContentMessageImpl<T : MessageContent>(
|
|||||||
override val cost: Int? = null,
|
override val cost: Int? = null,
|
||||||
@SerialName(senderTagField)
|
@SerialName(senderTagField)
|
||||||
override val senderTag: UserTag? = null,
|
override val senderTag: UserTag? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(receiverUserField)
|
||||||
|
override val receiverUser: PreviewUser? = null,
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId? = null,
|
||||||
) : CommonForumContentMessage<T> {
|
) : CommonForumContentMessage<T> {
|
||||||
constructor(
|
constructor(
|
||||||
chat: PreviewForumChat,
|
chat: PreviewForumChat,
|
||||||
@@ -537,7 +547,12 @@ data class CommonChannelDirectMessagesContentMessageImpl<T : MessageContent>(
|
|||||||
@SerialName(paidMessageStarCountField)
|
@SerialName(paidMessageStarCountField)
|
||||||
override val cost: Int? = null,
|
override val cost: Int? = null,
|
||||||
@SerialName(senderTagField)
|
@SerialName(senderTagField)
|
||||||
override val senderTag: UserTag? = null
|
override val senderTag: UserTag? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(receiverUserField)
|
||||||
|
override val receiverUser: PreviewUser? = null,
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId? = null,
|
||||||
) : CommonChannelDirectMessagesContentMessage<T> {
|
) : CommonChannelDirectMessagesContentMessage<T> {
|
||||||
constructor(
|
constructor(
|
||||||
chat: PreviewChannelDirectMessagesChat,
|
chat: PreviewChannelDirectMessagesChat,
|
||||||
@@ -597,7 +612,12 @@ data class CommonSuggestedChannelDirectMessagesContentMessageImpl<T : MessageCon
|
|||||||
@SerialName(paidMessageStarCountField)
|
@SerialName(paidMessageStarCountField)
|
||||||
override val cost: Int? = null,
|
override val cost: Int? = null,
|
||||||
@SerialName(senderTagField)
|
@SerialName(senderTagField)
|
||||||
override val senderTag: UserTag? = null
|
override val senderTag: UserTag? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(receiverUserField)
|
||||||
|
override val receiverUser: PreviewUser? = null,
|
||||||
|
@SerialName(ephemeralMessageIdField)
|
||||||
|
override val ephemeralMessageId: EphemeralMessageId? = null,
|
||||||
) : CommonSuggestedChannelDirectMessagesContentMessage<T> {
|
) : CommonSuggestedChannelDirectMessagesContentMessage<T> {
|
||||||
constructor(
|
constructor(
|
||||||
chat: PreviewChannelDirectMessagesChat,
|
chat: PreviewChannelDirectMessagesChat,
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import dev.inmo.tgbotapi.types.checklists.Checklist
|
|||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTaskId
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTaskId
|
||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksAdded
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksAdded
|
||||||
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksDone
|
import dev.inmo.tgbotapi.types.checklists.ChecklistTasksDone
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatAdded
|
||||||
|
import dev.inmo.tgbotapi.types.communities.CommunityChatRemoved
|
||||||
import dev.inmo.tgbotapi.types.dice.Dice
|
import dev.inmo.tgbotapi.types.dice.Dice
|
||||||
import dev.inmo.tgbotapi.types.files.*
|
import dev.inmo.tgbotapi.types.files.*
|
||||||
import dev.inmo.tgbotapi.types.files.Sticker
|
import dev.inmo.tgbotapi.types.files.Sticker
|
||||||
@@ -72,6 +74,9 @@ internal data class RawMessage(
|
|||||||
private val from: PreviewUser? = null,
|
private val from: PreviewUser? = null,
|
||||||
private val sender_tag: UserTag? = null,
|
private val sender_tag: UserTag? = null,
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
private val receiver_user: PreviewUser? = null,
|
||||||
|
private val ephemeral_message_id: EphemeralMessageId? = null,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
private val sender_chat: PreviewPublicChat? = null,
|
private val sender_chat: PreviewPublicChat? = null,
|
||||||
private val forward_origin: MessageOrigin? = null,
|
private val forward_origin: MessageOrigin? = null,
|
||||||
private val is_topic_message: Boolean? = null,
|
private val is_topic_message: Boolean? = null,
|
||||||
@@ -203,6 +208,10 @@ internal data class RawMessage(
|
|||||||
private val checklist_tasks_done: ChecklistTasksDone? = null,
|
private val checklist_tasks_done: ChecklistTasksDone? = null,
|
||||||
private val checklist_tasks_added: ChecklistTasksAdded? = null,
|
private val checklist_tasks_added: ChecklistTasksAdded? = null,
|
||||||
|
|
||||||
|
// Communities
|
||||||
|
private val community_chat_added: CommunityChatAdded? = null,
|
||||||
|
private val community_chat_removed: CommunityChatRemoved? = null,
|
||||||
|
|
||||||
// Channel direct messages
|
// Channel direct messages
|
||||||
private val direct_message_price_changed: DirectMessagesConfigurationChanged? = null,
|
private val direct_message_price_changed: DirectMessagesConfigurationChanged? = null,
|
||||||
private val is_paid_post: Boolean = false,
|
private val is_paid_post: Boolean = false,
|
||||||
@@ -368,6 +377,8 @@ internal data class RawMessage(
|
|||||||
gift_upgrade_sent != null -> gift_upgrade_sent
|
gift_upgrade_sent != null -> gift_upgrade_sent
|
||||||
checklist_tasks_done != null -> checklist_tasks_done
|
checklist_tasks_done != null -> checklist_tasks_done
|
||||||
checklist_tasks_added != null -> checklist_tasks_added
|
checklist_tasks_added != null -> checklist_tasks_added
|
||||||
|
community_chat_added != null -> community_chat_added
|
||||||
|
community_chat_removed != null -> community_chat_removed
|
||||||
direct_message_price_changed != null -> direct_message_price_changed
|
direct_message_price_changed != null -> direct_message_price_changed
|
||||||
suggested_post_approved != null -> suggested_post_approved
|
suggested_post_approved != null -> suggested_post_approved
|
||||||
suggested_post_approval_failed != null -> suggested_post_approval_failed
|
suggested_post_approval_failed != null -> suggested_post_approval_failed
|
||||||
@@ -534,6 +545,8 @@ internal data class RawMessage(
|
|||||||
fromOffline = is_from_offline,
|
fromOffline = is_from_offline,
|
||||||
cost = paid_star_count,
|
cost = paid_star_count,
|
||||||
senderTag = sender_tag,
|
senderTag = sender_tag,
|
||||||
|
receiverUser = receiver_user,
|
||||||
|
ephemeralMessageId = ephemeral_message_id,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -578,6 +591,8 @@ internal data class RawMessage(
|
|||||||
suggestedPostInfo = suggested_post_info,
|
suggestedPostInfo = suggested_post_info,
|
||||||
cost = paid_star_count,
|
cost = paid_star_count,
|
||||||
senderTag = sender_tag,
|
senderTag = sender_tag,
|
||||||
|
receiverUser = receiver_user,
|
||||||
|
ephemeralMessageId = ephemeral_message_id,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -687,6 +702,8 @@ internal data class RawMessage(
|
|||||||
fromOffline = is_from_offline,
|
fromOffline = is_from_offline,
|
||||||
cost = paid_star_count,
|
cost = paid_star_count,
|
||||||
senderTag = sender_tag,
|
senderTag = sender_tag,
|
||||||
|
receiverUser = receiver_user,
|
||||||
|
ephemeralMessageId = ephemeral_message_id,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -762,7 +779,9 @@ internal data class RawMessage(
|
|||||||
senderBoostsCount = sender_boost_count,
|
senderBoostsCount = sender_boost_count,
|
||||||
fromOffline = is_from_offline,
|
fromOffline = is_from_offline,
|
||||||
cost = paid_star_count,
|
cost = paid_star_count,
|
||||||
senderTag = sender_tag
|
senderTag = sender_tag,
|
||||||
|
receiverUser = receiver_user,
|
||||||
|
ephemeralMessageId = ephemeral_message_id,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -841,6 +860,8 @@ internal data class RawMessage(
|
|||||||
fromOffline = is_from_offline,
|
fromOffline = is_from_offline,
|
||||||
cost = paid_star_count,
|
cost = paid_star_count,
|
||||||
senderTag = sender_tag,
|
senderTag = sender_tag,
|
||||||
|
receiverUser = receiver_user,
|
||||||
|
ephemeralMessageId = ephemeral_message_id,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ sealed interface GroupContentMessage<T : MessageContent> : PublicContentMessage<
|
|||||||
override val chat: PreviewGroupChat
|
override val chat: PreviewGroupChat
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed interface PotentiallyFromUserGroupContentMessage<T : MessageContent> : GroupContentMessage<T> {
|
sealed interface PotentiallyFromUserGroupContentMessage<T : MessageContent> : GroupContentMessage<T>, PossiblyEphemeralMessage {
|
||||||
val senderBoostsCount: Int?
|
val senderBoostsCount: Int?
|
||||||
val senderTag: UserTag?
|
val senderTag: UserTag?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.message.abstracts
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.EphemeralMessageId
|
||||||
|
import dev.inmo.tgbotapi.types.chat.PreviewUser
|
||||||
|
|
||||||
|
interface PossiblyEphemeralMessage : Message {
|
||||||
|
val receiverUser: PreviewUser?
|
||||||
|
val ephemeralMessageId: EphemeralMessageId?
|
||||||
|
}
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
@file:OptIn(ExperimentalSerializationApi::class)
|
||||||
|
|
||||||
|
package dev.inmo.tgbotapi.types.payments
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.WithUser
|
||||||
|
import dev.inmo.tgbotapi.types.chat.User
|
||||||
|
import dev.inmo.tgbotapi.types.invoicePayloadField
|
||||||
|
import dev.inmo.tgbotapi.types.stateField
|
||||||
|
import dev.inmo.tgbotapi.types.userField
|
||||||
|
import kotlinx.serialization.EncodeDefault
|
||||||
|
import kotlinx.serialization.ExperimentalSerializationApi
|
||||||
|
import kotlinx.serialization.KSerializer
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.descriptors.PrimitiveKind
|
||||||
|
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
|
||||||
|
import kotlinx.serialization.descriptors.SerialDescriptor
|
||||||
|
import kotlinx.serialization.encoding.Decoder
|
||||||
|
import kotlinx.serialization.encoding.Encoder
|
||||||
|
import kotlin.jvm.JvmInline
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Information about changes to a user payment subscription toward the current bot
|
||||||
|
*
|
||||||
|
* @param user User who subscribed for payments toward the bot
|
||||||
|
* @param invoicePayload Bot-specified invoice payload
|
||||||
|
* @param state New state of the subscription
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class BotSubscriptionUpdated(
|
||||||
|
@SerialName(userField)
|
||||||
|
override val user: User,
|
||||||
|
@SerialName(invoicePayloadField)
|
||||||
|
val invoicePayload: String,
|
||||||
|
@SerialName(stateField)
|
||||||
|
val state: State
|
||||||
|
) : WithUser {
|
||||||
|
@Serializable(StateSerializer::class)
|
||||||
|
sealed interface State {
|
||||||
|
val name: String
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data object Canceled : State {
|
||||||
|
@EncodeDefault
|
||||||
|
override val name = "canceled"
|
||||||
|
}
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data object Active : State {
|
||||||
|
@EncodeDefault
|
||||||
|
override val name = "active"
|
||||||
|
}
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data object Failed : State {
|
||||||
|
@EncodeDefault
|
||||||
|
override val name = "failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
@JvmInline
|
||||||
|
value class Unknown(override val name: String) : State
|
||||||
|
}
|
||||||
|
|
||||||
|
private object StateSerializer : KSerializer<State> {
|
||||||
|
override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor(
|
||||||
|
serialName = "dev.inmo.tgbotapi.types.payments.BotSubscriptionUpdated.State",
|
||||||
|
kind = PrimitiveKind.STRING
|
||||||
|
)
|
||||||
|
|
||||||
|
override fun deserialize(decoder: Decoder): State {
|
||||||
|
val value = decoder.decodeString()
|
||||||
|
return when (value) {
|
||||||
|
State.Canceled.name -> State.Canceled
|
||||||
|
State.Active.name -> State.Active
|
||||||
|
State.Failed.name -> State.Failed
|
||||||
|
else -> State.Unknown(value)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun serialize(encoder: Encoder, value: State) {
|
||||||
|
encoder.encodeString(value.name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.rich
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMedia
|
||||||
|
import dev.inmo.tgbotapi.types.typeField
|
||||||
|
import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
|
||||||
|
import kotlinx.serialization.DeserializationStrategy
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.json.JsonContentPolymorphicSerializer
|
||||||
|
import kotlinx.serialization.json.JsonElement
|
||||||
|
import kotlinx.serialization.json.jsonObject
|
||||||
|
import kotlinx.serialization.json.jsonPrimitive
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents a block in a rich formatted message to be sent.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblock">InputRichBlock</a>
|
||||||
|
*/
|
||||||
|
@Serializable(InputRichBlockSerializer::class)
|
||||||
|
@ClassCastsIncluded
|
||||||
|
sealed interface InputRichBlock {
|
||||||
|
val type: String
|
||||||
|
}
|
||||||
|
|
||||||
|
@Serializable(InputRichBlockSerializer::class)
|
||||||
|
sealed interface InputRichBlockMedia : InputRichBlock {
|
||||||
|
val media: TelegramMedia
|
||||||
|
val caption: RichBlockCaption?
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The nested [InputRichBlock]s directly contained by this block, or an empty list for leaf blocks. Container blocks
|
||||||
|
* ([InputRichBlockList] via its [InputRichBlockListItem.blocks], [InputRichBlockBlockQuotation], [InputRichBlockCollage],
|
||||||
|
* [InputRichBlockSlideshow] and [InputRichBlockDetails]) expose their children here.
|
||||||
|
*/
|
||||||
|
val InputRichBlock.subBlocks: List<InputRichBlock>
|
||||||
|
get() = when (this) {
|
||||||
|
is InputRichBlockList -> items.flatMap { it.blocks }
|
||||||
|
is InputRichBlockBlockQuotation -> blocks
|
||||||
|
is InputRichBlockCollage -> blocks
|
||||||
|
is InputRichBlockSlideshow -> blocks
|
||||||
|
is InputRichBlockDetails -> blocks
|
||||||
|
else -> emptyList()
|
||||||
|
}
|
||||||
|
|
||||||
|
object InputRichBlockSerializer : JsonContentPolymorphicSerializer<InputRichBlock>(InputRichBlock::class) {
|
||||||
|
override fun selectDeserializer(element: JsonElement): DeserializationStrategy<InputRichBlock> {
|
||||||
|
return when (val type = element.jsonObject[typeField]?.jsonPrimitive?.content) {
|
||||||
|
InputRichBlockParagraph.TYPE -> InputRichBlockParagraph.serializer()
|
||||||
|
InputRichBlockSectionHeading.TYPE -> InputRichBlockSectionHeading.serializer()
|
||||||
|
InputRichBlockPreformatted.TYPE -> InputRichBlockPreformatted.serializer()
|
||||||
|
InputRichBlockFooter.TYPE -> InputRichBlockFooter.serializer()
|
||||||
|
InputRichBlockDivider.TYPE -> InputRichBlockDivider.serializer()
|
||||||
|
InputRichBlockMathematicalExpression.TYPE -> InputRichBlockMathematicalExpression.serializer()
|
||||||
|
InputRichBlockAnchor.TYPE -> InputRichBlockAnchor.serializer()
|
||||||
|
InputRichBlockList.TYPE -> InputRichBlockList.serializer()
|
||||||
|
InputRichBlockBlockQuotation.TYPE -> InputRichBlockBlockQuotation.serializer()
|
||||||
|
InputRichBlockPullQuotation.TYPE -> InputRichBlockPullQuotation.serializer()
|
||||||
|
InputRichBlockCollage.TYPE -> InputRichBlockCollage.serializer()
|
||||||
|
InputRichBlockSlideshow.TYPE -> InputRichBlockSlideshow.serializer()
|
||||||
|
InputRichBlockTable.TYPE -> InputRichBlockTable.serializer()
|
||||||
|
InputRichBlockDetails.TYPE -> InputRichBlockDetails.serializer()
|
||||||
|
InputRichBlockMap.TYPE -> InputRichBlockMap.serializer()
|
||||||
|
InputRichBlockAnimation.TYPE -> InputRichBlockAnimation.serializer()
|
||||||
|
InputRichBlockAudio.TYPE -> InputRichBlockAudio.serializer()
|
||||||
|
InputRichBlockPhoto.TYPE -> InputRichBlockPhoto.serializer()
|
||||||
|
InputRichBlockVideo.TYPE -> InputRichBlockVideo.serializer()
|
||||||
|
InputRichBlockVoiceNote.TYPE -> InputRichBlockVoiceNote.serializer()
|
||||||
|
InputRichBlockThinking.TYPE -> InputRichBlockThinking.serializer()
|
||||||
|
else -> error("Unknown InputRichBlock type: $type")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.rich
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.blocksField
|
||||||
|
import dev.inmo.tgbotapi.types.hasCheckboxField
|
||||||
|
import dev.inmo.tgbotapi.types.isCheckedField
|
||||||
|
import dev.inmo.tgbotapi.types.typeField
|
||||||
|
import dev.inmo.tgbotapi.types.valueField
|
||||||
|
import kotlinx.serialization.KSerializer
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
import kotlinx.serialization.SerializationException
|
||||||
|
import kotlinx.serialization.descriptors.SerialDescriptor
|
||||||
|
import kotlinx.serialization.encoding.Decoder
|
||||||
|
import kotlinx.serialization.encoding.Encoder
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An item of an [InputRichBlockList]. Ordered items have a non-null [InputRichBlockListItem.Ordered.value] and
|
||||||
|
* [InputRichBlockListItem.Ordered.labelType]; unordered items omit both fields from the Bot API payload.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblocklistitem">InputRichBlockListItem</a>
|
||||||
|
*/
|
||||||
|
@Serializable(InputRichBlockListItem.Serializer::class)
|
||||||
|
sealed interface InputRichBlockListItem {
|
||||||
|
val blocks: List<InputRichBlock>
|
||||||
|
val hasCheckbox: Boolean?
|
||||||
|
val isChecked: Boolean?
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(Serializer::class)
|
||||||
|
data class Ordered(
|
||||||
|
@SerialName(blocksField)
|
||||||
|
override val blocks: List<InputRichBlock>,
|
||||||
|
@SerialName(valueField)
|
||||||
|
val value: Int,
|
||||||
|
@SerialName(typeField)
|
||||||
|
val labelType: LabelType = LabelType.Decimals,
|
||||||
|
@SerialName(hasCheckboxField)
|
||||||
|
override val hasCheckbox: Boolean? = null,
|
||||||
|
@SerialName(isCheckedField)
|
||||||
|
override val isChecked: Boolean? = null
|
||||||
|
) : InputRichBlockListItem
|
||||||
|
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@Serializable(Serializer::class)
|
||||||
|
data class Unordered(
|
||||||
|
@SerialName(blocksField)
|
||||||
|
override val blocks: List<InputRichBlock>,
|
||||||
|
@SerialName(hasCheckboxField)
|
||||||
|
override val hasCheckbox: Boolean? = null,
|
||||||
|
@SerialName(isCheckedField)
|
||||||
|
override val isChecked: Boolean? = null
|
||||||
|
) : InputRichBlockListItem
|
||||||
|
|
||||||
|
object Serializer : KSerializer<InputRichBlockListItem> {
|
||||||
|
@Serializable
|
||||||
|
private data class Surrogate(
|
||||||
|
@SerialName(blocksField)
|
||||||
|
val blocks: List<InputRichBlock>,
|
||||||
|
@SerialName(hasCheckboxField)
|
||||||
|
val hasCheckbox: Boolean? = null,
|
||||||
|
@SerialName(isCheckedField)
|
||||||
|
val isChecked: Boolean? = null,
|
||||||
|
@SerialName(valueField)
|
||||||
|
val value: Int? = null,
|
||||||
|
@SerialName(typeField)
|
||||||
|
val labelType: LabelType? = null
|
||||||
|
)
|
||||||
|
|
||||||
|
override val descriptor: SerialDescriptor = Surrogate.serializer().descriptor
|
||||||
|
|
||||||
|
override fun deserialize(decoder: Decoder): InputRichBlockListItem {
|
||||||
|
val surrogate = decoder.decodeSerializableValue(Surrogate.serializer())
|
||||||
|
return when {
|
||||||
|
surrogate.value != null && surrogate.labelType != null -> Ordered(
|
||||||
|
surrogate.blocks,
|
||||||
|
surrogate.value,
|
||||||
|
surrogate.labelType,
|
||||||
|
surrogate.hasCheckbox,
|
||||||
|
surrogate.isChecked
|
||||||
|
)
|
||||||
|
surrogate.value == null && surrogate.labelType == null -> Unordered(
|
||||||
|
surrogate.blocks,
|
||||||
|
surrogate.hasCheckbox,
|
||||||
|
surrogate.isChecked
|
||||||
|
)
|
||||||
|
else -> throw SerializationException("Ordered InputRichBlockListItem requires both value and type")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun serialize(encoder: Encoder, value: InputRichBlockListItem) {
|
||||||
|
val surrogate = when (value) {
|
||||||
|
is Ordered -> Surrogate(
|
||||||
|
value.blocks,
|
||||||
|
value.hasCheckbox,
|
||||||
|
value.isChecked,
|
||||||
|
value.value,
|
||||||
|
value.labelType
|
||||||
|
)
|
||||||
|
is Unordered -> Surrogate(value.blocks, value.hasCheckbox, value.isChecked)
|
||||||
|
}
|
||||||
|
encoder.encodeSerializableValue(Surrogate.serializer(), surrogate)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,499 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.rich
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.types.animationField
|
||||||
|
import dev.inmo.tgbotapi.types.audioField
|
||||||
|
import dev.inmo.tgbotapi.types.blocksField
|
||||||
|
import dev.inmo.tgbotapi.types.captionField
|
||||||
|
import dev.inmo.tgbotapi.types.cellsField
|
||||||
|
import dev.inmo.tgbotapi.types.creditField
|
||||||
|
import dev.inmo.tgbotapi.types.expressionField
|
||||||
|
import dev.inmo.tgbotapi.types.heightField
|
||||||
|
import dev.inmo.tgbotapi.types.isBorderedField
|
||||||
|
import dev.inmo.tgbotapi.types.isOpenField
|
||||||
|
import dev.inmo.tgbotapi.types.isStripedField
|
||||||
|
import dev.inmo.tgbotapi.types.itemsField
|
||||||
|
import dev.inmo.tgbotapi.types.languageField
|
||||||
|
import dev.inmo.tgbotapi.types.location.StaticLocation
|
||||||
|
import dev.inmo.tgbotapi.types.locationField
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMedia
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMediaAnimation
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMediaAudio
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMediaPhoto
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMediaVideo
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMediaVoiceNote
|
||||||
|
import dev.inmo.tgbotapi.types.nameField
|
||||||
|
import dev.inmo.tgbotapi.types.photoField
|
||||||
|
import dev.inmo.tgbotapi.types.sizeField
|
||||||
|
import dev.inmo.tgbotapi.types.summaryField
|
||||||
|
import dev.inmo.tgbotapi.types.textField
|
||||||
|
import dev.inmo.tgbotapi.types.typeField
|
||||||
|
import dev.inmo.tgbotapi.types.videoField
|
||||||
|
import dev.inmo.tgbotapi.types.voiceNoteField
|
||||||
|
import dev.inmo.tgbotapi.types.widthField
|
||||||
|
import dev.inmo.tgbotapi.types.zoomField
|
||||||
|
import kotlinx.serialization.EncodeDefault
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A text paragraph.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockparagraph">InputRichBlockParagraph</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockParagraph(
|
||||||
|
@SerialName(textField)
|
||||||
|
val text: RichText
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "paragraph"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A section heading.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblocksectionheading">InputRichBlockSectionHeading</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockSectionHeading(
|
||||||
|
@SerialName(textField)
|
||||||
|
val text: RichText,
|
||||||
|
/**
|
||||||
|
* Relative size of the text font; 1-6, 1 is the largest, 6 is the smallest.
|
||||||
|
*/
|
||||||
|
@SerialName(sizeField)
|
||||||
|
val level: Int
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "heading"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A preformatted text block.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockpreformatted">InputRichBlockPreformatted</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockPreformatted(
|
||||||
|
@SerialName(textField)
|
||||||
|
val text: RichText,
|
||||||
|
@SerialName(languageField)
|
||||||
|
val language: String? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "pre"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A footer.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockfooter">InputRichBlockFooter</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockFooter(
|
||||||
|
@SerialName(textField)
|
||||||
|
val text: RichText
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "footer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A divider.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockdivider">InputRichBlockDivider</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
class InputRichBlockDivider : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
override fun equals(other: Any?): Boolean = other is InputRichBlockDivider
|
||||||
|
|
||||||
|
override fun hashCode(): Int = TYPE.hashCode()
|
||||||
|
|
||||||
|
override fun toString(): String = "InputRichBlockDivider"
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "divider"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with a mathematical expression in LaTeX format.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockmathematicalexpression">InputRichBlockMathematicalExpression</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockMathematicalExpression(
|
||||||
|
@SerialName(expressionField)
|
||||||
|
val expression: String
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "mathematical_expression"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with an anchor.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockanchor">InputRichBlockAnchor</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockAnchor(
|
||||||
|
@SerialName(nameField)
|
||||||
|
val name: String
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "anchor"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A list of blocks.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblocklist">InputRichBlockList</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockList(
|
||||||
|
@SerialName(itemsField)
|
||||||
|
val items: List<InputRichBlockListItem>
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "list"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block quotation.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockblockquotation">InputRichBlockBlockQuotation</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockBlockQuotation(
|
||||||
|
@SerialName(blocksField)
|
||||||
|
val blocks: List<InputRichBlock>,
|
||||||
|
@SerialName(creditField)
|
||||||
|
val credit: RichText? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "blockquote"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A quotation with centered text.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockpullquotation">InputRichBlockPullQuotation</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockPullQuotation(
|
||||||
|
@SerialName(textField)
|
||||||
|
val text: RichText,
|
||||||
|
@SerialName(creditField)
|
||||||
|
val credit: RichText? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "pullquote"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A collage.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockcollage">InputRichBlockCollage</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockCollage(
|
||||||
|
@SerialName(blocksField)
|
||||||
|
val blocks: List<InputRichBlock>,
|
||||||
|
@SerialName(captionField)
|
||||||
|
val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "collage"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A slideshow.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockslideshow">InputRichBlockSlideshow</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockSlideshow(
|
||||||
|
@SerialName(blocksField)
|
||||||
|
val blocks: List<InputRichBlock>,
|
||||||
|
@SerialName(captionField)
|
||||||
|
val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "slideshow"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A table.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblocktable">InputRichBlockTable</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockTable(
|
||||||
|
@SerialName(cellsField)
|
||||||
|
val cells: List<List<RichBlockTableCell>>,
|
||||||
|
@SerialName(isBorderedField)
|
||||||
|
val isBordered: Boolean? = null,
|
||||||
|
@SerialName(isStripedField)
|
||||||
|
val isStriped: Boolean? = null,
|
||||||
|
@SerialName(captionField)
|
||||||
|
val caption: RichText? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "table"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An expandable block for details disclosure.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockdetails">InputRichBlockDetails</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockDetails(
|
||||||
|
@SerialName(summaryField)
|
||||||
|
val summary: RichText,
|
||||||
|
@SerialName(blocksField)
|
||||||
|
val blocks: List<InputRichBlock>,
|
||||||
|
@SerialName(isOpenField)
|
||||||
|
val isOpen: Boolean? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "details"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with a map.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockmap">InputRichBlockMap</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockMap(
|
||||||
|
@SerialName(locationField)
|
||||||
|
val location: StaticLocation,
|
||||||
|
/**
|
||||||
|
* Map zoom level; 0-24.
|
||||||
|
*/
|
||||||
|
@SerialName(zoomField)
|
||||||
|
val zoom: Int,
|
||||||
|
@SerialName(widthField)
|
||||||
|
val width: Int,
|
||||||
|
@SerialName(heightField)
|
||||||
|
val height: Int,
|
||||||
|
@SerialName(captionField)
|
||||||
|
val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "map"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with an animation.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockanimation">InputRichBlockAnimation</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockAnimation(
|
||||||
|
@SerialName(animationField)
|
||||||
|
val animation: TelegramMediaAnimation,
|
||||||
|
@SerialName(captionField)
|
||||||
|
override val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlockMedia {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
override val media: TelegramMedia
|
||||||
|
get() = animation
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "animation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with a music file.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockaudio">InputRichBlockAudio</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockAudio(
|
||||||
|
@SerialName(audioField)
|
||||||
|
val audio: TelegramMediaAudio,
|
||||||
|
@SerialName(captionField)
|
||||||
|
override val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlockMedia {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
override val media: TelegramMedia
|
||||||
|
get() = audio
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "audio"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with a photo.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockphoto">InputRichBlockPhoto</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockPhoto(
|
||||||
|
@SerialName(photoField)
|
||||||
|
val photo: TelegramMediaPhoto,
|
||||||
|
@SerialName(captionField)
|
||||||
|
override val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlockMedia {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
override val media: TelegramMedia
|
||||||
|
get() = photo
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "photo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with a video.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockvideo">InputRichBlockVideo</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockVideo(
|
||||||
|
@SerialName(videoField)
|
||||||
|
val video: TelegramMediaVideo,
|
||||||
|
@SerialName(captionField)
|
||||||
|
override val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlockMedia {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
override val media: TelegramMedia
|
||||||
|
get() = video
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "video"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with a voice note.
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockvoicenote">InputRichBlockVoiceNote</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockVoiceNote(
|
||||||
|
@SerialName(voiceNoteField)
|
||||||
|
val voiceNote: TelegramMediaVoiceNote,
|
||||||
|
@SerialName(captionField)
|
||||||
|
override val caption: RichBlockCaption? = null
|
||||||
|
) : InputRichBlockMedia {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
override val media: TelegramMedia
|
||||||
|
get() = voiceNote
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "voice_note"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A block with a "Thinking…" placeholder. May be used only in [dev.inmo.tgbotapi.requests.send.SendRichMessageDraft].
|
||||||
|
*
|
||||||
|
* @see <a href="https://core.telegram.org/bots/api#inputrichblockthinking">InputRichBlockThinking</a>
|
||||||
|
*/
|
||||||
|
@Serializable
|
||||||
|
data class InputRichBlockThinking(
|
||||||
|
@SerialName(textField)
|
||||||
|
val text: RichText
|
||||||
|
) : InputRichBlock {
|
||||||
|
@EncodeDefault
|
||||||
|
@SerialName(typeField)
|
||||||
|
override val type: String = TYPE
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
const val TYPE = "thinking"
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user