Package dev.inmo.tgbotapi.requests.send

Types

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

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

Link copied to clipboard
data class SendContact(    val chatId: ChatIdentifier,     val phoneNumber: String,     val firstName: String,     val lastName: String? = null,     val disableNotification: Boolean = false,     val protectContent: Boolean = false,     val replyToMessageId: MessageId? = null,     val allowSendingWithoutReply: Boolean? = null,     val replyMarkup: KeyboardMarkup? = null) : SendMessageRequest<ContentMessage<ContactContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<ContactContent>>
Link copied to clipboard
data class SendDice(    val chatId: ChatIdentifier,     val animationType: DiceAnimationType? = null,     val disableNotification: Boolean = false,     val protectContent: Boolean = false,     val replyToMessageId: MessageId? = null,     val allowSendingWithoutReply: Boolean? = null,     val replyMarkup: KeyboardMarkup? = null) : ReplyingMarkupSendMessageRequest<ContentMessage<DiceContent>> , ReplyMessageId, DisableNotification
Link copied to clipboard
data class SendVenue(    val chatId: ChatIdentifier,     val latitude: Double,     val longitude: Double,     val title: String,     val address: String,     val foursquareId: FoursquareId? = null,     val foursquareType: FoursquareType? = null,     val googlePlaceId: GooglePlaceId? = null,     val googlePlaceType: GooglePlaceType? = null,     val disableNotification: Boolean = false,     val protectContent: Boolean = false,     val replyToMessageId: MessageId? = null,     val allowSendingWithoutReply: Boolean? = null,     val replyMarkup: KeyboardMarkup? = null) : SendMessageRequest<ContentMessage<VenueContent>> , PositionedSendMessageRequest<ContentMessage<VenueContent>> , TitledSendMessageRequest<ContentMessage<VenueContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VenueContent>>

Functions

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

Properties

Link copied to clipboard
const val OrderChangingDeprecationWarn: String