mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-02 16:05:28 +00:00
30 lines
1.0 KiB
Kotlin
30 lines
1.0 KiB
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.send.media
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.InputFile
|
|
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
|
|
|
|
suspend fun TelegramBot.sendPhoto(
|
|
chatId: ChatIdentifier,
|
|
fileId: InputFile,
|
|
caption: String? = null,
|
|
parseMode: ParseMode? = null,
|
|
disableNotification: Boolean = false,
|
|
replyToMessageId: MessageIdentifier? = null,
|
|
replyMarkup: KeyboardMarkup? = null
|
|
) = execute(
|
|
SendPhoto(
|
|
chatId,
|
|
fileId,
|
|
caption,
|
|
parseMode,
|
|
disableNotification,
|
|
replyToMessageId,
|
|
replyMarkup
|
|
)
|
|
)
|