update readmes

This commit is contained in:
2026-08-21 15:51:06 +06:00
parent 016400a821
commit ce48393895
104 changed files with 2615 additions and 333 deletions

View File

@@ -21,6 +21,11 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.currentCoroutineContext
/**
* Formats this sticker set's name, title, and type as Telegram text entities.
*
* A `null` receiver produces a bold warning that the sticker set appears to have been removed.
*/
fun StickerSet?.buildInfo() = buildEntities {
if (this@buildInfo == null) {
bold("Looks like this stickerset has been removed")
@@ -38,6 +43,15 @@ fun StickerSet?.buildInfo() = buildEntities {
}
}
/**
* Creates and runs the shared StickerInfoBot behavior using long polling.
*
* Sticker messages are answered with their set metadata. Text messages are scanned for custom-emoji entities and
* answered with metadata for each distinct resolved sticker set. Every update is also logged.
*
* @param token the Telegram bot token
* @param print receives the bot information returned by the startup `getMe` request
*/
suspend fun activateStickerInfoBot(
token: String,
print: (Any) -> Unit

View File

@@ -4,6 +4,11 @@ import org.w3c.dom.*
private val scope = CoroutineScope(Dispatchers.Default)
/**
* Installs the browser token form after `DOMContentLoaded` and starts a bot for every submission.
*
* Each bot receives its token from `bot_token`; its startup information is appended under `bots_container`.
*/
fun main() {
document.addEventListener(
"DOMContentLoaded",