mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-17 22:03:48 +00:00
55 KiB
55 KiB
//docs/dev.inmo.tgbotapi.requests.send.media
Package dev.inmo.tgbotapi.requests.send.media
Types
Functions
Name | Summary |
---|---|
SendAnimation | [common] Content fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumb: InputFile? = null, entities: List<TextSource>, duration: Long? = null, width: Int? = null, height: Int? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<AnimationContent>> fun SendAnimation(chatId: ChatIdentifier, animation: InputFile, thumb: InputFile? = null, caption: 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>> |
SendAudio | [common] Content 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>> fun SendAudio(chatId: ChatIdentifier, audio: InputFile, thumb: InputFile? = null, caption: 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>> |
SendDocument | [common] Content fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>> fun SendDocument(chatId: ChatIdentifier, document: InputFile, thumb: InputFile? = null, caption: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null, disableContentTypeDetection: Boolean? = null): Request<ContentMessage<DocumentContent>> More info Use this method to send general files. |
SendDocumentsGroup | [common] Content inline fun SendDocumentsGroup(chatId: ChatIdentifier, media: List<DocumentMediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<DocumentContent>>> More info Use this method to be sure that you are correctly sending documents media group |
SendMediaGroup | [common] Content fun <T : MediaGroupContent> SendMediaGroup(chatId: ChatIdentifier, media: List<MediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<T>>> |
SendPhoto | [common] Content fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<PhotoContent>> fun SendPhoto(chatId: ChatIdentifier, photo: InputFile, caption: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<PhotoContent>> |
SendPlaylist | [common] Content inline fun SendPlaylist(chatId: ChatIdentifier, media: List<AudioMediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<AudioContent>>> More info Use this method to be sure that you are correctly sending playlist with audios |
SendSticker | [common] Content fun SendSticker(chatId: ChatIdentifier, sticker: InputFile, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<StickerContent>> |
SendVideo | [common] Content fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumb: InputFile? = null, entities: List<TextSource>, 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>> fun SendVideo(chatId: ChatIdentifier, video: InputFile, thumb: InputFile? = null, caption: 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>> |
SendVideoNote | [common] Content 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>> |
SendVisualMediaGroup | [common] Content inline fun SendVisualMediaGroup(chatId: ChatIdentifier, media: List<VisualMediaGroupMemberInputMedia>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null): Request<List<MediaGroupMessage<VisualMediaGroupContent>>> More info Use this method to be sure that you are correctly sending visual media group |
SendVoice | [common] Content fun SendVoice(chatId: ChatIdentifier, voice: InputFile, entities: List<TextSource>, duration: Long? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VoiceContent>> fun SendVoice(chatId: ChatIdentifier, voice: InputFile, caption: String? = null, parseMode: ParseMode? = null, duration: Long? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<ContentMessage<VoiceContent>> |
Properties
Name | Summary |
---|---|
rawSendingMediaGroupsWarning | [common] const val rawSendingMediaGroupsWarning: String |