docs / com.github.insanusmokrassar.TelegramBotAPI.requests.send

Package com.github.insanusmokrassar.TelegramBotAPI.requests.send

Types

(common)

SendAction

Send notification to user which will be shown for 5 seconds or while user have no messages from bot

data class SendAction : SendChatMessageRequest<Boolean>
(common)

SendContact

data class SendContact : SendMessageRequest<ContentMessage<ContactContent>>, ReplyingMarkupSendMessageRequest<ContentMessage<ContactContent>>
(common)

SendDice

data class SendDice : ReplyingMarkupSendMessageRequest<ContentMessage<DiceContent>>, ReplyMessageId, DisableNotification
(common)

SendLocation

data class SendLocation : SendMessageRequest<ContentMessage<LocationContent>>, ReplyingMarkupSendMessageRequest<ContentMessage<LocationContent>>, PositionedSendMessageRequest<ContentMessage<LocationContent>>
(common)

SendTextMessage

data class SendTextMessage : SendMessageRequest<ContentMessage<TextContent>>, ReplyingMarkupSendMessageRequest<ContentMessage<TextContent>>, TextableSendMessageRequest<ContentMessage<TextContent>>, DisableWebPagePreview
(common)

SendVenue

data class SendVenue : SendMessageRequest<ContentMessage<VenueContent>>, PositionedSendMessageRequest<ContentMessage<VenueContent>>, TitledSendMessageRequest<ContentMessage<VenueContent>>, ReplyingMarkupSendMessageRequest<ContentMessage<VenueContent>>

Functions

(common)

toRequest

fun Contact.toRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): SendContact
fun Venue.toRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): SendVenue