Package dev.inmo.tgbotapi.requests.send

Types

CopyMessage
Link copied to clipboard
common
SendAction
Link copied to clipboard

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

common
data class SendAction(chatId: ChatIdentifier, action: BotAction) : SendChatMessageRequest<Boolean>
SendContact
Link copied to clipboard
common
data class SendContact(chatId: ChatIdentifier, phoneNumber: String, firstName: String, lastName: String?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendMessageRequest<ContentMessage<ContactContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<ContactContent>>
SendDice
Link copied to clipboard
common
data class SendDice(chatId: ChatIdentifier, animationType: DiceAnimationType?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : ReplyingMarkupSendMessageRequest<ContentMessage<DiceContent>> , ReplyMessageId, DisableNotification
SendVenue
Link copied to clipboard
common
data class SendVenue(chatId: ChatIdentifier, latitude: Double, longitude: Double, title: String, address: String, foursquareId: String?, foursquareType: String?, googlePlaceId: String?, googlePlaceType: String?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendMessageRequest<ContentMessage<VenueContent>> , PositionedSendMessageRequest<ContentMessage<VenueContent>> , TitledSendMessageRequest<ContentMessage<VenueContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VenueContent>>

Functions

CopyMessage
Link copied to clipboard
common
fun CopyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: Long, entities: List<TextSource>, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): CopyMessage
fun CopyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: Long, text: String?, parseMode: ParseMode?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): CopyMessage
SendLiveLocation
Link copied to clipboard
common
fun SendLiveLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, livePeriod: Int, horizontalAccuracy: Float?, heading: Int?, proximityAlertRadius: Float?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendLocation
SendLocation
Link copied to clipboard
common
fun SendLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendLocation
SendStaticLocation
Link copied to clipboard
common
fun SendStaticLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendLocation
SendTextMessage
Link copied to clipboard
common
fun SendTextMessage(chatId: ChatIdentifier, entities: List<TextSource>, disableWebPagePreview: Boolean?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendTextMessage
fun SendTextMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode?, disableWebPagePreview: Boolean?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendTextMessage
toRequest
Link copied to clipboard
common
fun Contact.toRequest(chatId: ChatIdentifier, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendContact
fun Venue.toRequest(chatId: ChatIdentifier, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendVenue