Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CopyMessages(val toChatId: ChatIdentifier, val fromChatId: ChatIdentifier, val messageIds: List<MessageId>, val threadId: MessageThreadId? = toChatId.threadId, val disableNotification: Boolean = false, val protectContent: Boolean = false, removeCaption: Boolean = false) : SimpleRequest<List<MessageId>> , MessagesAction, ProtectContent, OptionallyMessageThreadRequest, DisableNotification
Link copied to clipboard
@Serializable
data class SendAction(val chatId: ChatIdentifier, val action: BotAction, val threadId: MessageThreadId? = chatId.threadId, val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId) : SendChatMessageRequest<Boolean> , OptionallyMessageThreadRequest, OptionallyBusinessConnectionRequest

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

Link copied to clipboard
@Serializable
data class SendContact(val chatId: ChatIdentifier, val phoneNumber: String, val firstName: String, val lastName: String? = null, val threadId: MessageThreadId? = chatId.threadId, val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, val disableNotification: Boolean = false, val protectContent: Boolean = false, val allowPaidBroadcast: Boolean = false, val effectId: EffectId? = null, val replyParameters: ReplyParameters? = null, val replyMarkup: KeyboardMarkup? = null) : SendContentMessageRequest<ContentMessage<ContactContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<ContactContent>>
Link copied to clipboard
@Serializable
data class SendDice(val chatId: ChatIdentifier, val animationType: DiceAnimationType? = null, val threadId: MessageThreadId? = chatId.threadId, val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, val disableNotification: Boolean = false, val protectContent: Boolean = false, val allowPaidBroadcast: Boolean = false, val effectId: EffectId? = null, val replyParameters: ReplyParameters? = null, val replyMarkup: KeyboardMarkup? = null) : SendContentMessageRequest<ContentMessage<DiceContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<DiceContent>> , WithReplyParameters, DisableNotification, OptionallyBusinessConnectionRequest
Link copied to clipboard
@Serializable
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 threadId: MessageThreadId? = chatId.threadId, val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, val disableNotification: Boolean = false, val protectContent: Boolean = false, val allowPaidBroadcast: Boolean = false, val effectId: EffectId? = null, val replyParameters: ReplyParameters? = null, val replyMarkup: KeyboardMarkup? = null) : SendContentMessageRequest<ContentMessage<VenueContent>> , PositionedSendMessageRequest<ContentMessage<VenueContent>> , TitledSendMessageRequest<ContentMessage<VenueContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VenueContent>>
Link copied to clipboard
@Serializable
data class SetMessageReactions(val chatId: ChatIdentifier, val messageId: MessageId, val reactions: List<Reaction>, val big: Boolean = false) : SimpleRequest<Boolean> , ChatRequest

Properties

Functions

Link copied to clipboard
fun CopyMessage(fromChatId: ChatIdentifier, messageId: MessageId, toChatId: ChatIdentifier, entities: List<TextSource>, showCaptionAboveMedia: Boolean = false, threadId: MessageThreadId? = toChatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): CopyMessage
fun CopyMessage(fromChatId: ChatIdentifier, messageId: MessageId, toChatId: ChatIdentifier, text: String? = null, parseMode: ParseMode? = null, showCaptionAboveMedia: Boolean = false, threadId: MessageThreadId? = toChatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): CopyMessage
Link copied to clipboard
fun CopyMessages(toChatId: ChatIdentifier, fromChatId: ChatIdentifier, messageIds: Array<MessageId>, threadId: MessageThreadId? = toChatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, removeCaption: Boolean = false): CopyMessages
Link copied to clipboard
fun SendLiveLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, livePeriod: Seconds, horizontalAccuracy: Meters? = null, heading: Degrees? = null, proximityAlertRadius: Meters? = null, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendLocation.Live
Link copied to clipboard
fun SendLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendLocation.Static
Link copied to clipboard
fun SendStaticLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendLocation.Static
Link copied to clipboard
fun SendTextMessage(chatId: ChatIdentifier, entities: TextSourcesList, linkPreviewOptions: LinkPreviewOptions? = null, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendTextMessage
fun SendTextMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode? = null, linkPreviewOptions: LinkPreviewOptions? = null, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendTextMessage
Link copied to clipboard
fun Contact.toRequest(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendContact
fun Venue.toRequest(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendVenue