Package dev. inmo. tgbotapi. requests. send
Types
CopyMessage
Link copied to clipboard
data class CopyMessage : SimpleRequest<MessageIdentifier> , ReplyingMarkupSendMessageRequest<MessageIdentifier> , MessageAction, TextedOutput
Content copied to clipboard
SendAction
Link copied to clipboard
data class SendAction(chatId: ChatIdentifier, action: BotAction) : SendChatMessageRequest<Boolean>
Content copied to clipboard
SendContact
Link copied to clipboard
data class SendContact(chatId: ChatIdentifier, phoneNumber: String, firstName: String, lastName: String?, disableNotification: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendMessageRequest<ContentMessage<ContactContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<ContactContent>>
Content copied to clipboard
SendDice
Link copied to clipboard
data class SendDice(chatId: ChatIdentifier, animationType: DiceAnimationType?, disableNotification: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : ReplyingMarkupSendMessageRequest<ContentMessage<DiceContent>> , ReplyMessageId, DisableNotification
Content copied to clipboard
SendLocation
Link copied to clipboard
data class SendLocation : SendMessageRequest<ContentMessage<LocationContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<LocationContent>> , PositionedSendMessageRequest<ContentMessage<LocationContent>> , HorizontallyAccured, Livable, ProximityAlertable, Headed
Content copied to clipboard
SendTextMessage
Link copied to clipboard
data class SendTextMessage : SendMessageRequest<ContentMessage<TextContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<TextContent>> , TextableSendMessageRequest<ContentMessage<TextContent>> , DisableWebPagePreview
Content copied to clipboard
SendVenue
Link copied to clipboard
data class SendVenue(chatId: ChatIdentifier, latitude: Double, longitude: Double, title: String, address: String, foursquareId: FoursquareId?, foursquareType: FoursquareType?, googlePlaceId: GooglePlaceId?, googlePlaceType: GooglePlaceType?, disableNotification: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendMessageRequest<ContentMessage<VenueContent>> , PositionedSendMessageRequest<ContentMessage<VenueContent>> , TitledSendMessageRequest<ContentMessage<VenueContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VenueContent>>
Content copied to clipboard
Functions
CopyMessage
Link copied to clipboard
fun CopyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): CopyMessage
Content copied to clipboard
fun CopyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): CopyMessage
Content copied to clipboard
SendLiveLocation
Link copied to clipboard
fun SendLiveLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, livePeriod: Seconds, horizontalAccuracy: Meters? = null, heading: Degrees? = null, proximityAlertRadius: Meters? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendLocation
Content copied to clipboard
SendLocation
Link copied to clipboard
fun SendLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendLocation
Content copied to clipboard
SendStaticLocation
Link copied to clipboard
fun SendStaticLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendLocation
Content copied to clipboard
SendTextMessage
Link copied to clipboard
fun SendTextMessage(chatId: ChatIdentifier, entities: List<TextSource>, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendTextMessage
Content copied to clipboard
fun SendTextMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendTextMessage
Content copied to clipboard
toRequest
Link copied to clipboard
fun Contact.toRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendContact
Content copied to clipboard
fun Venue.toRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendVenue
Content copied to clipboard