Package dev. inmo. tgbotapi. requests. send. media
Types
Send Animation Data
Link copied to clipboard
data class SendAnimationData : DataRequest<ContentMessage<AnimationContent>> , SendMessageRequest<ContentMessage<AnimationContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<AnimationContent>> , TextableSendMessageRequest<ContentMessage<AnimationContent>> , ThumbedSendMessageRequest<ContentMessage<AnimationContent>> , DuratedSendMessageRequest<ContentMessage<AnimationContent>> , SizedSendMessageRequest<ContentMessage<AnimationContent>>
Content copied to clipboard
Send Animation Files
Link copied to clipboard
Send Audio Data
Link copied to clipboard
data class SendAudioData : DataRequest<ContentMessage<AudioContent>> , SendMessageRequest<ContentMessage<AudioContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<AudioContent>> , TextableSendMessageRequest<ContentMessage<AudioContent>> , ThumbedSendMessageRequest<ContentMessage<AudioContent>> , TitledSendMessageRequest<ContentMessage<AudioContent>> , DuratedSendMessageRequest<ContentMessage<AudioContent>> , Performerable
Content copied to clipboard
Send Audio Files
Link copied to clipboard
Send Document Data
Link copied to clipboard
data class SendDocumentData : DataRequest<ContentMessage<DocumentContent>> , SendMessageRequest<ContentMessage<DocumentContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<DocumentContent>> , TextableSendMessageRequest<ContentMessage<DocumentContent>> , ThumbedSendMessageRequest<ContentMessage<DocumentContent>>
Content 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.
Send Document Files
Link copied to clipboard
Send Media Group Data
Link copied to clipboard
data class SendMediaGroupData : DataRequest<List<MediaGroupMessage<MediaGroupContent>>> , SendMessageRequest<List<MediaGroupMessage<MediaGroupContent>>>
Content copied to clipboard
Send Media Group Files
Link copied to clipboard
Send Photo Data
Link copied to clipboard
data class SendPhotoData : DataRequest<ContentMessage<PhotoContent>> , SendMessageRequest<ContentMessage<PhotoContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<PhotoContent>> , TextableSendMessageRequest<ContentMessage<PhotoContent>>
Content copied to clipboard
Send Photo Files
Link copied to clipboard
Send Sticker By File
Link copied to clipboard
data class SendStickerByFile : MultipartRequest<ContentMessage<StickerContent>> , Request<ContentMessage<StickerContent>>
Content copied to clipboard
Send Sticker By File Id
Link copied to clipboard
data class SendStickerByFileId : SendMessageRequest<ContentMessage<StickerContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<StickerContent>>
Content copied to clipboard
Send Video Data
Link copied to clipboard
data class SendVideoData : DataRequest<ContentMessage<VideoContent>> , SendMessageRequest<ContentMessage<VideoContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VideoContent>> , TextableSendMessageRequest<ContentMessage<VideoContent>> , ThumbedSendMessageRequest<ContentMessage<VideoContent>> , DuratedSendMessageRequest<ContentMessage<VideoContent>> , SizedSendMessageRequest<ContentMessage<VideoContent>>
Content copied to clipboard
Send Video Files
Link copied to clipboard
Send Video Note Data
Link copied to clipboard
data class SendVideoNoteData : DataRequest<ContentMessage<VideoNoteContent>> , SendMessageRequest<ContentMessage<VideoNoteContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VideoNoteContent>> , ThumbedSendMessageRequest<ContentMessage<VideoNoteContent>> , DuratedSendMessageRequest<ContentMessage<VideoNoteContent>> , SizedSendMessageRequest<ContentMessage<VideoNoteContent>>
Content copied to clipboard
Send Video Note Files
Link copied to clipboard
Send Voice Data
Link copied to clipboard
data class SendVoiceData : DataRequest<ContentMessage<VoiceContent>> , SendMessageRequest<ContentMessage<VoiceContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<VoiceContent>> , TextableSendMessageRequest<ContentMessage<VoiceContent>> , DuratedSendMessageRequest<ContentMessage<VoiceContent>>
Content copied to clipboard
Send Voice Files
Link copied to clipboard
Functions
Send Animation
Link copied to clipboard
fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumb: InputFile? = null, entities: TextSourcesList, duration: Long? = null, width: Int? = null, height: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<AnimationContent>>
Content copied to clipboard
fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, width: Int? = null, height: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<AnimationContent>>
Content copied to clipboard
Send Audio
Link copied to clipboard
fun SendAudio(chatId: ChatIdentifier, audio: InputFile, thumb: InputFile? = null, entities: List<TextSource>, duration: Long? = null, performer: String? = null, title: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<AudioContent>>
Content copied to clipboard
fun SendAudio(chatId: ChatIdentifier, audio: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, performer: String? = null, title: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<AudioContent>>
Content copied to clipboard
Send Document
Link copied to clipboard
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, entities: TextSourcesList, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>
Content copied to clipboard
fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>>
Content 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.
Send Documents Group
Link copied to clipboard
inline fun SendDocumentsGroup(chatId: ChatIdentifier, media: List<DocumentMediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<DocumentContent>>>
Content copied to clipboard
Use this method to be sure that you are correctly sending documents media group
Send Media Group
Link copied to clipboard
fun <T : MediaGroupContent> SendMediaGroup(chatId: ChatIdentifier, media: List<MediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<T>>>
Content copied to clipboard
Send Photo
Link copied to clipboard
fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, entities: TextSourcesList, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<PhotoContent>>
Content copied to clipboard
fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<PhotoContent>>
Content copied to clipboard
Send Playlist
Link copied to clipboard
inline fun SendPlaylist(chatId: ChatIdentifier, media: List<AudioMediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<AudioContent>>>
Content copied to clipboard
Use this method to be sure that you are correctly sending playlist with audios
Send Sticker
Link copied to clipboard
fun SendSticker(chatId: ChatIdentifier, sticker: InputFile, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<StickerContent>>
Content copied to clipboard
Send Video
Link copied to clipboard
fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumb: InputFile? = null, entities: TextSourcesList, duration: Long? = null, width: Int? = null, height: Int? = null, supportStreaming: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VideoContent>>
Content copied to clipboard
fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumb: InputFile? = null, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, width: Int? = null, height: Int? = null, supportStreaming: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VideoContent>>
Content copied to clipboard
Send Video Note
Link copied to clipboard
fun SendVideoNote(chatId: ChatIdentifier, videoNote: InputFile, thumb: InputFile? = null, duration: Long? = null, size: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VideoNoteContent>>
Content copied to clipboard
Send Visual Media Group
Link copied to clipboard
inline fun SendVisualMediaGroup(chatId: ChatIdentifier, media: List<VisualMediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<VisualMediaGroupContent>>>
Content copied to clipboard
Use this method to be sure that you are correctly sending visual media group
Send Voice
Link copied to clipboard
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, entities: TextSourcesList, duration: Long? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VoiceContent>>
Content copied to clipboard
fun SendVoice(chatId: ChatIdentifier, voice: InputFile, text: String? = null, parseMode: ParseMode? = null, duration: Long? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VoiceContent>>
Content copied to clipboard
Properties
rawSendingMediaGroupsWarning
Link copied to clipboard