Package dev.inmo.tgbotapi.requests.send.media

Types

SendAnimationFiles
Link copied to clipboard
common
data class SendAnimationFiles : Map<String, MultipartFile>
SendAudioFiles
Link copied to clipboard
common
data class SendAudioFiles : Map<String, MultipartFile>
SendDocumentData
Link copied to clipboard

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.

common
SendDocumentFiles
Link copied to clipboard
common
data class SendDocumentFiles : Map<String, MultipartFile>
SendMediaGroupData
Link copied to clipboard
common
SendMediaGroupFiles
Link copied to clipboard
common
data class SendMediaGroupFiles : Map<String, MultipartFile>
SendPhotoFiles
Link copied to clipboard
common
data class SendPhotoFiles : Map<String, MultipartFile>
SendStickerByFile
Link copied to clipboard
SendVideoFiles
Link copied to clipboard
common
data class SendVideoFiles : Map<String, MultipartFile>
SendVideoNoteFiles
Link copied to clipboard
common
data class SendVideoNoteFiles : Map<String, MultipartFile>
SendVoiceFiles
Link copied to clipboard
common
data class SendVoiceFiles : Map<String, MultipartFile>

Functions

SendAnimation
Link copied to clipboard
common
fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumb: InputFile?, entities: List<TextSource>, duration: Long?, width: Int?, height: Int?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<AnimationContent>>
fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumb: InputFile?, caption: String?, parseMode: ParseMode?, duration: Long?, width: Int?, height: Int?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<AnimationContent>>
SendAudio
Link copied to clipboard
common
fun SendAudio(chatId: ChatIdentifier, audio: InputFile, thumb: InputFile?, entities: List<TextSource>, duration: Long?, performer: String?, title: String?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<AudioContent>>
fun SendAudio(chatId: ChatIdentifier, audio: InputFile, thumb: InputFile?, caption: String?, parseMode: ParseMode?, duration: Long?, performer: String?, title: String?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<AudioContent>>
SendDocument
Link copied to clipboard

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.

common
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile?, entities: List<TextSource>, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?, disableContentTypeDetection: Boolean?): Request<ContentMessage<DocumentContent>>
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile?, caption: String?, parseMode: ParseMode?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?, disableContentTypeDetection: Boolean?): Request<ContentMessage<DocumentContent>>
SendDocumentsGroup
Link copied to clipboard

Use this method to be sure that you are correctly sending documents media group

common
inline fun SendDocumentsGroup(chatId: ChatIdentifier, media: List<DocumentMediaGroupMemberInputMedia>, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?): Request<List<MediaGroupMessage>>
SendMediaGroup
Link copied to clipboard
common
fun SendMediaGroup(chatId: ChatIdentifier, media: List<MediaGroupMemberInputMedia>, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?): Request<List<MediaGroupMessage>>
SendPhoto
Link copied to clipboard
common
fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, entities: List<TextSource>, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<PhotoContent>>
fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, caption: String?, parseMode: ParseMode?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<PhotoContent>>
SendPlaylist
Link copied to clipboard

Use this method to be sure that you are correctly sending playlist with audios

common
inline fun SendPlaylist(chatId: ChatIdentifier, media: List<AudioMediaGroupMemberInputMedia>, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?): Request<List<MediaGroupMessage>>
SendSticker
Link copied to clipboard
common
fun SendSticker(chatId: ChatIdentifier, sticker: InputFile, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<StickerContent>>
SendVideo
Link copied to clipboard
common
fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumb: InputFile?, entities: List<TextSource>, duration: Long?, width: Int?, height: Int?, supportStreaming: Boolean?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<VideoContent>>
fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumb: InputFile?, caption: String?, parseMode: ParseMode?, duration: Long?, width: Int?, height: Int?, supportStreaming: Boolean?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<VideoContent>>
SendVideoNote
Link copied to clipboard
common
fun SendVideoNote(chatId: ChatIdentifier, videoNote: InputFile, thumb: InputFile?, duration: Long?, size: Int?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<VideoNoteContent>>
SendVisualMediaGroup
Link copied to clipboard

Use this method to be sure that you are correctly sending visual media group

common
inline fun SendVisualMediaGroup(chatId: ChatIdentifier, media: List<VisualMediaGroupMemberInputMedia>, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?): Request<List<MediaGroupMessage>>
SendVoice
Link copied to clipboard
common
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, entities: List<TextSource>, duration: Long?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<VoiceContent>>
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, caption: String?, parseMode: ParseMode?, duration: Long?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<VoiceContent>>

Properties

rawSendingMediaGroupsWarning
Link copied to clipboard
const val rawSendingMediaGroupsWarning: String