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.SendPhoto
|
|
|
|
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.chat.abstracts.Chat
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.*
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.sendPhoto(
|
|
|
|
chatId: ChatIdentifier,
|
2020-02-23 15:29:31 +00:00
|
|
|
fileId: InputFile,
|
2020-02-15 09:33:04 +00:00
|
|
|
caption: String? = null,
|
|
|
|
parseMode: ParseMode? = null,
|
|
|
|
disableNotification: Boolean = false,
|
|
|
|
replyToMessageId: MessageIdentifier? = null,
|
|
|
|
replyMarkup: KeyboardMarkup? = null
|
|
|
|
) = execute(
|
|
|
|
SendPhoto(
|
|
|
|
chatId,
|
|
|
|
fileId,
|
|
|
|
caption,
|
|
|
|
parseMode,
|
|
|
|
disableNotification,
|
|
|
|
replyToMessageId,
|
|
|
|
replyMarkup
|
|
|
|
)
|
|
|
|
)
|