2020-02-15 09:33:04 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.send.media
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
|
2020-02-23 15:29:31 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.*
|
2020-02-15 09:33:04 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.send.media.SendVideoNote
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.MessageIdentifier
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ParseMode.ParseMode
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.buttons.KeyboardMarkup
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.PhotoSize
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.VideoFile
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.sendVideoNote(
|
|
|
|
chatId: ChatIdentifier,
|
2020-02-23 15:29:31 +00:00
|
|
|
videoNote: InputFile,
|
|
|
|
thumb: InputFile? = null,
|
2020-02-15 09:33:04 +00:00
|
|
|
text: String? = null,
|
|
|
|
parseMode: ParseMode? = null,
|
|
|
|
duration: Long? = null,
|
|
|
|
size: Int? = null,
|
|
|
|
disableNotification: Boolean = false,
|
|
|
|
replyToMessageId: MessageIdentifier? = null,
|
|
|
|
replyMarkup: KeyboardMarkup? = null
|
|
|
|
) = execute(
|
|
|
|
SendVideoNote(
|
|
|
|
chatId,
|
|
|
|
videoNote,
|
|
|
|
thumb,
|
|
|
|
text,
|
|
|
|
parseMode,
|
|
|
|
duration,
|
|
|
|
size,
|
|
|
|
disableNotification,
|
|
|
|
replyToMessageId,
|
|
|
|
replyMarkup
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.sendVideoNote(
|
|
|
|
chatId: ChatIdentifier,
|
|
|
|
videoNote: VideoFile,
|
|
|
|
text: String? = null,
|
|
|
|
parseMode: ParseMode? = null,
|
|
|
|
disableNotification: Boolean = false,
|
|
|
|
replyToMessageId: MessageIdentifier? = null,
|
|
|
|
replyMarkup: KeyboardMarkup? = null
|
|
|
|
) = sendVideoNote(
|
2020-02-23 15:29:31 +00:00
|
|
|
chatId, videoNote.fileId, videoNote.thumb ?.fileId, text, parseMode, videoNote.duration, videoNote.width, disableNotification, replyToMessageId, replyMarkup
|
2020-02-15 09:33:04 +00:00
|
|
|
)
|