Package-level declarations
Types
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Use this method to send general files. On success, the sent ContentMessage with DocumentContent is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Functions
Link copied to clipboard
fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumbnail: InputFile? = null, entities: TextSourcesList, showCaptionAboveMedia: Boolean = false, spoilered: Boolean = false, duration: Long? = null, width: Int? = null, height: Int? = 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): Request<ContentMessage<AnimationContent>>
fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumbnail: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, showCaptionAboveMedia: Boolean = false, spoilered: Boolean = false, duration: Long? = null, width: Int? = null, height: Int? = 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): Request<ContentMessage<AnimationContent>>
Link copied to clipboard
fun SendAudio(chatId: ChatIdentifier, audio: InputFile, thumbnail: InputFile? = null, entities: List<TextSource>, duration: Long? = null, performer: String? = null, title: String? = 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): Request<ContentMessage<AudioContent>>
fun SendAudio(chatId: ChatIdentifier, audio: InputFile, thumbnail: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, performer: String? = null, title: String? = 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): Request<ContentMessage<AudioContent>>
Link copied to clipboard
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumbnail: InputFile? = null, entities: TextSourcesList, 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, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumbnail: InputFile? = null, text: String? = null, parseMode: ParseMode? = 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, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>
Use this method to send general files. On success, the sent ContentMessage with DocumentContent is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
Link copied to clipboard
inline fun SendDocumentsGroup(chatId: ChatIdentifier, media: List<DocumentMediaGroupMemberTelegramMedia>, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null): Request<ContentMessage<MediaGroupContent<DocumentContent>>>
Use this method to be sure that you are correctly sending documents media group
Link copied to clipboard
fun <T : MediaGroupPartContent> SendMediaGroup(chatId: ChatIdentifier, media: List<MediaGroupMemberTelegramMedia>, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null): Request<ContentMessage<MediaGroupContent<T>>>
Link copied to clipboard
fun SendPaidMedia(chatId: ChatIdentifier, starCount: Int, media: List<TelegramPaidMedia>, entities: TextSourcesList, payload: PaidMediaPayload? = null, showCaptionAboveMedia: Boolean = false, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<PaidMediaInfoContent>>
fun SendPaidMedia(chatId: ChatIdentifier, starCount: Int, media: List<TelegramPaidMedia>, text: String? = null, parseMode: ParseMode? = null, payload: PaidMediaPayload? = null, showCaptionAboveMedia: Boolean = false, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<PaidMediaInfoContent>>
Link copied to clipboard
fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, entities: TextSourcesList, showCaptionAboveMedia: Boolean = false, spoilered: Boolean = false, 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): Request<ContentMessage<PhotoContent>>
fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, text: String? = null, parseMode: ParseMode? = null, showCaptionAboveMedia: Boolean = false, spoilered: Boolean = false, 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): Request<ContentMessage<PhotoContent>>
Link copied to clipboard
inline fun SendPlaylist(chatId: ChatIdentifier, media: List<AudioMediaGroupMemberTelegramMedia>, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null): Request<ContentMessage<MediaGroupContent<AudioContent>>>
Use this method to be sure that you are correctly sending playlist with audios
Link copied to clipboard
fun SendSticker(chatId: ChatIdentifier, sticker: InputFile, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, emoji: String? = null, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<StickerContent>>
Link copied to clipboard
fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumbnail: InputFile? = null, entities: TextSourcesList, showCaptionAboveMedia: Boolean = false, spoilered: Boolean = false, duration: Long? = null, width: Int? = null, height: Int? = null, supportStreaming: Boolean? = 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): Request<ContentMessage<VideoContent>>
fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumbnail: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, showCaptionAboveMedia: Boolean = false, spoilered: Boolean = false, duration: Long? = null, width: Int? = null, height: Int? = null, supportStreaming: Boolean? = 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): Request<ContentMessage<VideoContent>>
Link copied to clipboard
fun SendVideoNote(chatId: ChatIdentifier, videoNote: InputFile, thumbnail: InputFile? = null, duration: Long? = null, size: Int? = 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): Request<ContentMessage<VideoNoteContent>>
Link copied to clipboard
inline fun SendVisualMediaGroup(chatId: ChatIdentifier, media: List<VisualMediaGroupMemberTelegramMedia>, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null): Request<ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>>>
Use this method to be sure that you are correctly sending visual media group
Link copied to clipboard
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, entities: TextSourcesList, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, duration: Long? = null, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VoiceContent>>
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, text: String? = null, parseMode: ParseMode? = null, duration: Long? = 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): Request<ContentMessage<VoiceContent>>