Constructors

Link copied to clipboard
constructor(fromChatId: Identifier, messageId: Long)

Properties

Link copied to clipboard
open override val Request<MessageId>.parameters: MutableMap<String, JsonElement>

Functions

Link copied to clipboard
open override fun EntitiesExtBuilder.addEntity(entity: MessageEntity)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

DSL for adding captions

Link copied to clipboard

Caption entities DSL with EntitiesBuilder

Caption entities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun EntitiesExtBuilder.customEmoji(customEmojiId: String? = null, block: () -> String): Triple<EntityType, String, String?>
Link copied to clipboard
open suspend override fun Request<MessageId>.doRequest(bot: TelegramBot)
Link copied to clipboard
open suspend override fun Request<MessageId>.doRequestReturning(bot: TelegramBot): Deferred<Response<out MessageId>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun forceReply(inputFieldPlaceholder: String? = null, selective: Boolean? = null): CopyMessageAction

Add ForceReply markup to the TgAction<Return>.

Link copied to clipboard
Link copied to clipboard

Add InlineKeyboard markup to the TgAction<Return>.

Link copied to clipboard
Link copied to clipboard
open fun markup(keyboard: Keyboard): CopyMessageAction

Add Markup directly.

open fun markup(block: () -> Keyboard): CopyMessageAction

Add Markup via lambda.

Link copied to clipboard
Link copied to clipboard
open operator fun Pair<EntityType, String>.minus(other: String): String
open operator fun String.minus(other: Pair<EntityType, String>): String
open operator fun String.minus(other: String): String
open operator fun <T> String.minus(other: Triple<EntityType, String, T?>): String
open operator fun <T> Triple<EntityType, String, T?>.minus(other: String): String
Link copied to clipboard

Lambda function to change options

Link copied to clipboard
Link copied to clipboard
open fun EntitiesExtBuilder.pre(language: String? = null, block: () -> String): Triple<EntityType, String, String?>
Link copied to clipboard

Add ReplyKeyboard markup to the TgAction<Return>.

Link copied to clipboard
open fun replyKeyboardRemove(selective: Boolean? = null): CopyMessageAction

Add ReplyKeyboardRemove markup to the Action<Return>

Link copied to clipboard
inline suspend fun send(to: User, via: TelegramBot)
inline suspend fun send(to: Chat, via: TelegramBot)
suspend fun send(to: Long, via: TelegramBot)

suspend fun send(to: String, via: TelegramBot)

Make a request for action.

Link copied to clipboard
inline suspend fun sendAsync(to: User, via: TelegramBot): Deferred<Response<out MessageId>>
inline suspend fun sendAsync(to: Chat, via: TelegramBot): Deferred<Response<out MessageId>>
suspend fun sendAsync(to: Long, via: TelegramBot): Deferred<Response<out MessageId>>

suspend fun sendAsync(to: String, via: TelegramBot): Deferred<Response<out MessageId>>

Make a request for action returning its Response.

Link copied to clipboard
inline suspend fun sendReturning(to: User, via: TelegramBot): Deferred<Response<out MessageId>>
inline suspend fun sendReturning(to: Chat, via: TelegramBot): Deferred<Response<out MessageId>>
inline suspend fun sendReturning(to: Long, via: TelegramBot): Deferred<Response<out MessageId>>

inline suspend fun sendReturning(to: String, via: TelegramBot): Deferred<Response<out MessageId>>

Make a request for action returning its Response.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun EntitiesExtBuilder.textLink(url: String? = null, block: () -> String): Triple<EntityType, String, String?>
Link copied to clipboard
open fun EntitiesExtBuilder.textMention(user: User? = null, block: () -> String): Triple<EntityType, String, User?>
Link copied to clipboard

Payload to make response for the webhook request as described there.

Link copied to clipboard
Link copied to clipboard