Package dev.inmo.tgbotapi.requests.send

Types

SendAction
Link copied to clipboard
data class SendAction(chatId: ChatIdentifier, action: BotAction) : SendChatMessageRequest<Boolean>

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

SendContact
Link copied to clipboard
data class SendContact(chatId: ChatIdentifier, phoneNumber: String, firstName: String, lastName: String?, disableNotification: Boolean, protectContent: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendMessageRequest<ContentMessage<ContactContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<ContactContent>>
SendDice
Link copied to clipboard
data class SendDice(chatId: ChatIdentifier, animationType: DiceAnimationType?, disableNotification: Boolean, protectContent: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : ReplyingMarkupSendMessageRequest<ContentMessage<DiceContent>> , ReplyMessageId, DisableNotification
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, protectContent: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendMessageRequest<ContentMessage<VenueContent>> , PositionedSendMessageRequest<ContentMessage<VenueContent>> , TitledSendMessageRequest<ContentMessage<VenueContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VenueContent>>

Functions

CopyMessage
Link copied to clipboard
fun CopyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, entities: List<TextSource>, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): CopyMessage
fun CopyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): CopyMessage
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, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendLocation
SendLocation
Link copied to clipboard
fun SendLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendLocation
SendStaticLocation
Link copied to clipboard
fun SendStaticLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendLocation
SendTextMessage
Link copied to clipboard
fun SendTextMessage(chatId: ChatIdentifier, entities: TextSourcesList, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendTextMessage
fun SendTextMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendTextMessage
toRequest
Link copied to clipboard
fun Contact.toRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendContact
fun Venue.toRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendVenue