Constructors

Link copied to clipboard
constructor(messageId: Long)
constructor()

Properties

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

Functions

Link copied to clipboard
open suspend override fun Request<Message>.doRequest(bot: TelegramBot)
Link copied to clipboard
open suspend override fun Request<Message>.doRequestReturning(bot: TelegramBot): Deferred<Response<out Message>>
Link copied to clipboard
open fun forceReply(inputFieldPlaceholder: String? = null, selective: Boolean? = null): StopMessageLiveLocationAction

Add ForceReply markup to the TgAction<Return>.

Link copied to clipboard

Add InlineKeyboard markup to the TgAction<Return>.

Link copied to clipboard

Add Markup directly.

Add Markup via lambda.

Link copied to clipboard

Add ReplyKeyboard markup to the TgAction<Return>.

Link copied to clipboard

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 Message>>
inline suspend fun sendAsync(to: Chat, via: TelegramBot): Deferred<Response<out Message>>
suspend fun sendAsync(to: Long, via: TelegramBot): Deferred<Response<out Message>>

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

Make a request for action returning its Response.

Link copied to clipboard
open suspend fun sendBusiness(chatId: Long, businessConnectionId: String, via: TelegramBot)

Make business request for action.

Link copied to clipboard
open suspend fun sendBusinessAsync(chatId: Long, businessConnectionId: String, via: TelegramBot): Deferred<Response<out Message>>

Make a request for action returning its Response.

Link copied to clipboard
open suspend fun sendInline(inlineMessageId: String, via: TelegramBot)

Make inline request for action.

Link copied to clipboard
open suspend fun sendInlineAsync(inlineMessageId: String, via: TelegramBot): Deferred<Response<out Message>>

Make a request for action returning its Response.

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

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