Constructors

Link copied to clipboard
constructor(title: String, description: String, payload: String, currency: Currency, prices: List<LabeledPrice>)

Properties

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

Functions

Link copied to clipboard
open suspend override fun Request<String>.doRequest(bot: TelegramBot)
Link copied to clipboard
open suspend override fun Request<String>.doRequestReturning(bot: TelegramBot): Deferred<Response<out String>>
Link copied to clipboard

Lambda function to change options

Link copied to clipboard
open suspend fun send(to: TelegramBot)

Send request for action.

Link copied to clipboard
open suspend fun sendAsync(to: TelegramBot): Deferred<Response<out String>>

Send async request for action.

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 String>>

Make a request for action returning its Response.

Link copied to clipboard
suspend fun sendReturning(to: TelegramBot): Deferred<Response<out String>>
Link copied to clipboard

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