update examples for ktgbotapi 38.0.0

This commit is contained in:
InsanusMokrassar committed 2026-11-26 12:28:56 +06:00
1 parent d0da6c851b
commit 97b4391495
86 files changed
+888 -370

No files matched your search

+9 -5
View File
@@ -17,11 +17,9 @@ The bot also prints its own account information at startup, logs received update
## Setup
Create a bot and obtain its token, then enable inline mode for it in BotFather (for example, with `/setinline`). Keep the
token private.
Both launchers require the bot token as the first command-line argument. Starting either launcher without an argument
fails immediately; additional arguments are ignored.
Create a bot and obtain its token. To enable inline mode and set the search placeholder through `setMySettings`,
pass `configureInline` after the token on either launcher. Telegram saves both settings, so subsequent launches only
need the token. You can also enable inline mode through BotFather.
## Launch from the repository root
@@ -31,6 +29,12 @@ fails immediately; additional arguments are ignored.
./gradlew :InlineQueriesBot:runJvm --args="<BOT_TOKEN>"
```
To configure inline mode on the first run:
```bash
./gradlew :InlineQueriesBot:runJvm --args="<BOT_TOKEN> configureInline"
```
### Kotlin/Native
The shared native configuration supports Linux x64/Arm64 and Windows x64 hosts. Build the debug executable with Gradle,