mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-08-29 12:26:25 +00:00
update readmes
This commit is contained in:
@@ -20,6 +20,16 @@ import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.SupervisorJob
|
||||
import kotlinx.coroutines.currentCoroutineContext
|
||||
|
||||
/**
|
||||
* Starts the shared long-polling resender and suspends until polling stops.
|
||||
*
|
||||
* Eligible content is recreated in its source chat with reply/quote metadata and
|
||||
* message effects preserved. Business messages sent by the business-connection
|
||||
* owner are skipped.
|
||||
*
|
||||
* @param token bot token used for polling and API requests.
|
||||
* @param print output callback for bot information and resend diagnostics.
|
||||
*/
|
||||
suspend fun activateResenderBot(
|
||||
token: String,
|
||||
print: (Any) -> Unit
|
||||
|
||||
@@ -4,6 +4,10 @@ import org.w3c.dom.*
|
||||
|
||||
private val scope = CoroutineScope(Dispatchers.Default)
|
||||
|
||||
/**
|
||||
* Installs the browser token form and starts one resender for each submission.
|
||||
* Callback output from each instance is displayed in its associated page element.
|
||||
*/
|
||||
fun main() {
|
||||
document.addEventListener(
|
||||
"DOMContentLoaded",
|
||||
|
||||
Reference in New Issue
Block a user