docs / com.github.insanusmokrassar.TelegramBotAPI.extensions.utils.shortcuts

Package com.github.insanusmokrassar.TelegramBotAPI.extensions.utils.shortcuts

Extensions for External Classes

(common)

kotlin.collections.List

Properties

(common)

chat

val SentMediaGroupUpdate.chat: Chat
(common)

forwardInfo

val SentMediaGroupUpdate.forwardInfo: ForwardInfo?
(common)

mediaGroupId

val SentMediaGroupUpdate.mediaGroupId: MediaGroupIdentifier
(common)

replyTo

val SentMediaGroupUpdate.replyTo: Message?

Functions

(common)

closePollAfter

fun closePollAfter(seconds: LongSeconds): ApproximateScheduledCloseInfo
fun closePollAfter(seconds: Seconds): ApproximateScheduledCloseInfo
(common)

closePollExactAfter

fun closePollExactAfter(seconds: LongSeconds): ExactScheduledCloseInfo
fun closePollExactAfter(seconds: Seconds): ExactScheduledCloseInfo
(common)

closePollExactAt

fun closePollExactAt(dateTime: DateTime): ExactScheduledCloseInfo
(common)

createResend

fun SentMediaGroupUpdate.createResend(disableNotification: Boolean = false, replyTo: MessageIdentifier? = null): Request<List<MediaGroupMessage>>
(common)

executeAsync

fun <T : Any> RequestsExecutor.executeAsync(request: Request<T>, scope: CoroutineScope): Deferred<T>
suspend fun <T : Any> RequestsExecutor.executeAsync(request: Request<T>): Deferred<T>
(common)

executeUnsafe

suspend fun <T : Any> RequestsExecutor.executeUnsafe(request: Request<T>, retries: Int = 0, retriesDelay: Long = 1000L, onAllFailed: (suspend (exceptions: Array<Exception>) -> Unit)? = null): T?