send

suspend fun TelegramBot.send(chatId: ChatIdentifier, action: BotAction): Boolean
suspend fun TelegramBot.send(chat: Chat, action: BotAction): Boolean

Will execute sendBotAction request


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     animation: AnimationFile,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     duration: Long? = null,     width: Int? = null,     height: Int? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AnimationContent>
suspend fun TelegramBot.send(    chat: Chat,     animation: AnimationFile,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     duration: Long? = null,     width: Int? = null,     height: Int? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AnimationContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     animation: AnimationFile,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     duration: Long? = null,     width: Int? = null,     height: Int? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AnimationContent>
suspend fun TelegramBot.send(    chat: Chat,     animation: AnimationFile,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     duration: Long? = null,     width: Int? = null,     height: Int? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AnimationContent>

Will execute sendAnimation request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     audio: AudioFile,     text: String? = null,     parseMode: ParseMode? = null,     title: String? = audio.title,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AudioContent>
suspend fun TelegramBot.send(    chat: Chat,     audio: AudioFile,     text: String? = null,     parseMode: ParseMode? = null,     title: String? = audio.title,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AudioContent>
inline suspend fun TelegramBot.send(    chatId: ChatIdentifier,     audio: AudioFile,     entities: TextSourcesList,     title: String? = audio.title,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AudioContent>
inline suspend fun TelegramBot.send(    chat: Chat,     audio: AudioFile,     entities: TextSourcesList,     title: String? = audio.title,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<AudioContent>

Will execute sendAudio request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     phoneNumber: String,     firstName: String,     lastName: String? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     contact: Contact,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun TelegramBot.send(    chat: Chat,     phoneNumber: String,     firstName: String,     lastName: String? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun TelegramBot.send(    chat: Chat,     contact: Contact,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>

Will execute sendContact request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     animationType: DiceAnimationType,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>
suspend fun TelegramBot.send(    chat: Chat,     animationType: DiceAnimationType,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>

Will execute sendDice request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     document: DocumentFile,     text: String? = null,     parseMode: ParseMode? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     disableContentTypeDetection: Boolean? = null): ContentMessage<DocumentContent>
suspend fun TelegramBot.send(    chat: Chat,     document: DocumentFile,     text: String? = null,     parseMode: ParseMode? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     disableContentTypeDetection: Boolean? = null): ContentMessage<DocumentContent>
inline suspend fun TelegramBot.send(    chatId: ChatIdentifier,     document: DocumentFile,     entities: TextSourcesList,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     disableContentTypeDetection: Boolean? = null): ContentMessage<DocumentContent>
inline suspend fun TelegramBot.send(    chat: Chat,     document: DocumentFile,     entities: TextSourcesList,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     disableContentTypeDetection: Boolean? = null): ContentMessage<DocumentContent>

Will execute sendDocument request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     game: Game,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<GameContent>
suspend fun TelegramBot.send(    chat: Chat,     game: Game,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<GameContent>

Will execute sendGame request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: IdChatIdentifier,     title: String,     description: String,     payload: String,     providerToken: String,     currency: Currency,     prices: List<LabeledPrice>,     maxTipAmount: Int? = null,     suggestedTipAmounts: List<Int>? = null,     startParameter: StartParameter? = null,     providerData: String? = null,     requireName: Boolean = false,     requirePhoneNumber: Boolean = false,     requireEmail: Boolean = false,     requireShippingAddress: Boolean = false,     shouldSendPhoneNumberToProvider: Boolean = false,     shouldSendEmailToProvider: Boolean = false,     priceDependOnShipAddress: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<InvoiceContent>
suspend fun TelegramBot.send(    user: CommonUser,     title: String,     description: String,     payload: String,     providerToken: String,     currency: Currency,     prices: List<LabeledPrice>,     maxTipAmount: Int? = null,     suggestedTipAmounts: List<Int>? = null,     startParameter: StartParameter? = null,     providerData: String? = null,     requireName: Boolean = false,     requirePhoneNumber: Boolean = false,     requireEmail: Boolean = false,     requireShippingAddress: Boolean = false,     shouldSendPhoneNumberToProvider: Boolean = false,     shouldSendEmailToProvider: Boolean = false,     priceDependOnShipAddress: Boolean = false,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: InlineKeyboardMarkup? = null): ContentMessage<InvoiceContent>

Will execute sendInvoice request

Parameters

replyMarkup

Some InlineKeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builder for that


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     latitude: Double,     longitude: Double,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<StaticLocationContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     location: StaticLocation,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<StaticLocationContent>
suspend fun TelegramBot.send(    chat: Chat,     latitude: Double,     longitude: Double,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<StaticLocationContent>
suspend fun TelegramBot.send(    chat: Chat,     location: StaticLocation,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<StaticLocationContent>

Will execute sendStaticLocation request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     text: String,     parseMode: ParseMode? = null,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.send(    chat: Chat,     text: String,     parseMode: ParseMode? = null,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     entities: TextSourcesList,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.send(    chat: Chat,     entities: TextSourcesList,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>

Will execute sendTextMessage request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     separator: TextSource? = null,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     separator: String,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.send(    chat: Chat,     separator: TextSource? = null,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     builderBody: EntitiesBuilderBody): ContentMessage<TextContent>
suspend fun TelegramBot.send(    chat: Chat,     separator: String,     linkPreviewOptions: LinkPreviewOptions? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null,     builderBody: EntitiesBuilderBody): ContentMessage<TextContent>

Parameters

replyMarkup

Some InlineKeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builder for that


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     photo: PhotoFile,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
suspend fun TelegramBot.send(    chat: Chat,     photo: PhotoFile,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     photoSize: PhotoSize,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
suspend fun TelegramBot.send(    chat: Chat,     photoSize: PhotoSize,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
inline suspend fun TelegramBot.send(    chatId: ChatIdentifier,     photo: PhotoFile,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
inline suspend fun TelegramBot.send(    chat: Chat,     photo: PhotoFile,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
inline suspend fun TelegramBot.send(    chatId: ChatIdentifier,     photoSize: PhotoSize,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>
inline suspend fun TelegramBot.send(    chat: Chat,     photoSize: PhotoSize,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PhotoContent>

Will execute sendPhoto request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chat: Chat,     starCount: Int,     media: List<TelegramPaidMedia>,     text: String? = null,     parseMode: ParseMode? = null,     payload: PaidMediaPayload? = null,     showCaptionAboveMedia: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PaidMediaInfoContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     starCount: Int,     media: List<TelegramPaidMedia>,     text: String? = null,     parseMode: ParseMode? = null,     payload: PaidMediaPayload? = null,     showCaptionAboveMedia: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PaidMediaInfoContent>
suspend fun TelegramBot.send(    chat: Chat,     starCount: Int,     media: List<TelegramPaidMedia>,     entities: TextSourcesList,     payload: PaidMediaPayload? = null,     showCaptionAboveMedia: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PaidMediaInfoContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     starCount: Int,     media: List<TelegramPaidMedia>,     entities: TextSourcesList,     payload: PaidMediaPayload? = null,     showCaptionAboveMedia: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PaidMediaInfoContent>

Will execute sendPaidMedia request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     question: String,     options: List<InputPollOption>,     questionParseMode: ParseMode? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     allowMultipleAnswers: Boolean = false,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     questionTextSources: List<TextSource>,     options: List<InputPollOption>,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     allowMultipleAnswers: Boolean = false,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     poll: RegularPoll,     question: String,     questionParseMode: ParseMode? = null,     isClosed: Boolean = false,     options: List<InputPollOption> = poll.options.map { it.asInput() },     isAnonymous: Boolean = poll.isAnonymous,     allowMultipleAnswers: Boolean = poll.allowMultipleAnswers,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     poll: RegularPoll,     questionTextSources: List<TextSource> = poll.questionTextSources,     isClosed: Boolean = false,     options: List<InputPollOption> = poll.options.map { it.asInput() },     isAnonymous: Boolean = poll.isAnonymous,     allowMultipleAnswers: Boolean = poll.allowMultipleAnswers,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     question: String,     options: List<InputPollOption>,     questionParseMode: ParseMode? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     allowMultipleAnswers: Boolean = false,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     poll: RegularPoll,     question: String,     questionParseMode: ParseMode? = null,     isClosed: Boolean = false,     options: List<InputPollOption> = poll.options.map { it.asInput() },     isAnonymous: Boolean = poll.isAnonymous,     allowMultipleAnswers: Boolean = poll.allowMultipleAnswers,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     poll: RegularPoll,     questionTextSources: List<TextSource> = poll.questionTextSources,     isClosed: Boolean = false,     options: List<InputPollOption> = poll.options.map { it.asInput() },     isAnonymous: Boolean = poll.isAnonymous,     allowMultipleAnswers: Boolean = poll.allowMultipleAnswers,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>

Will execute sendRegularPoll request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     question: String,     options: List<InputPollOption>,     correctOptionId: Int,     questionParseMode: ParseMode? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     question: String,     options: List<InputPollOption>,     correctOptionId: Int,     questionParseMode: ParseMode? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     isClosed: Boolean = false,     quizPoll: QuizPoll,     question: String,     questionParseMode: ParseMode? = null,     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     isClosed: Boolean = false,     quizPoll: QuizPoll,     question: String,     questionParseMode: ParseMode? = null,     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     questionTextSources: List<TextSource>,     options: List<InputPollOption>,     correctOptionId: Int,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     questionTextSources: List<TextSource>,     options: List<InputPollOption>,     correctOptionId: Int,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     isClosed: Boolean = false,     quizPoll: QuizPoll,     questionTextSources: List<TextSource>,     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     isClosed: Boolean = false,     quizPoll: QuizPoll,     questionTextSources: List<TextSource>,     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     explanation: String? = null,     explanationParseMode: ParseMode? = null,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     question: String,     options: List<InputPollOption>,     correctOptionId: Int,     explanationTextSources: List<TextSource>? = null,     questionParseMode: ParseMode? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     question: String,     options: List<InputPollOption>,     correctOptionId: Int,     explanationTextSources: List<TextSource>? = null,     questionParseMode: ParseMode? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     isClosed: Boolean = false,     quizPoll: QuizPoll,     question: String,     explanationTextSources: List<TextSource>? = null,     questionParseMode: ParseMode? = null,     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     isClosed: Boolean = false,     quizPoll: QuizPoll,     question: String,     questionParseMode: ParseMode? = null,     explanationTextSources: List<TextSource>? = null,     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     questionTextSources: List<TextSource>,     options: List<InputPollOption>,     correctOptionId: Int,     explanationTextSources: List<TextSource>? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     questionTextSources: List<TextSource>,     options: List<InputPollOption>,     correctOptionId: Int,     explanationTextSources: List<TextSource>? = null,     isAnonymous: Boolean = true,     isClosed: Boolean = false,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     isClosed: Boolean = false,     quizPoll: QuizPoll,     questionTextSources: List<TextSource> = quizPoll.questionTextSources,     explanationTextSources: List<TextSource>? = quizPoll.explanationTextSources.takeIf { it.isNotEmpty() },     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>
suspend fun TelegramBot.send(    chat: Chat,     isClosed: Boolean = false,     quizPoll: QuizPoll,     questionTextSources: List<TextSource> = quizPoll.questionTextSources,     explanationTextSources: List<TextSource>? = quizPoll.explanationTextSources.takeIf { it.isNotEmpty() },     options: List<InputPollOption> = quizPoll.options.map { it.asInput() },     correctOptionId: Int = quizPoll.correctOptionId ?: error("Correct option ID must be provided by income QuizPoll or by developer"),     isAnonymous: Boolean = quizPoll.isAnonymous,     closeInfo: ScheduledCloseInfo? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<PollContent>

Will execute sendQuizPoll request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     sticker: Sticker,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     emoji: String? = null,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<StickerContent>
suspend fun TelegramBot.send(    chat: Chat,     sticker: Sticker,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     emoji: String? = null,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<StickerContent>

Will execute sendSticker request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     latitude: Double,     longitude: Double,     livePeriod: Seconds,     horizontalAccuracy: Meters? = null,     heading: Degrees? = null,     proximityAlertRadius: Meters? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<LiveLocationContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     location: Location,     livePeriod: Seconds,     horizontalAccuracy: Meters? = null,     heading: Degrees? = null,     proximityAlertRadius: Meters? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<LiveLocationContent>
suspend fun TelegramBot.send(    chat: Chat,     latitude: Double,     longitude: Double,     livePeriod: Seconds,     horizontalAccuracy: Meters? = null,     heading: Degrees? = null,     proximityAlertRadius: Meters? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<LiveLocationContent>
suspend fun TelegramBot.send(    chat: Chat,     location: Location,     livePeriod: Seconds,     horizontalAccuracy: Meters? = null,     heading: Degrees? = null,     proximityAlertRadius: Meters? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<LiveLocationContent>

Will execute sendLiveLocation request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     latitude: Double,     longitude: Double,     title: String,     address: String,     foursquareId: FoursquareId? = null,     foursquareType: FoursquareType? = null,     googlePlaceId: GooglePlaceId? = null,     googlePlaceType: GooglePlaceType? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.send(    chat: Chat,     latitude: Double,     longitude: Double,     title: String,     address: String,     foursquareId: FoursquareId? = null,     foursquareType: FoursquareType? = null,     googlePlaceId: GooglePlaceId? = null,     googlePlaceType: GooglePlaceType? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     location: StaticLocation,     title: String,     address: String,     foursquareId: FoursquareId? = null,     foursquareType: FoursquareType? = null,     googlePlaceId: GooglePlaceId? = null,     googlePlaceType: GooglePlaceType? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.send(    chat: Chat,     location: StaticLocation,     title: String,     address: String,     foursquareId: FoursquareId? = null,     foursquareType: FoursquareType? = null,     googlePlaceId: GooglePlaceId? = null,     googlePlaceType: GooglePlaceType? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     venue: Venue,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.send(    chat: Chat,     venue: Venue,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>

Will execute sendVenue request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     video: VideoFile,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoContent>
suspend fun TelegramBot.send(    chat: Chat,     video: VideoFile,     text: String? = null,     parseMode: ParseMode? = null,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoContent>
inline suspend fun TelegramBot.send(    chatId: ChatIdentifier,     video: VideoFile,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoContent>
inline suspend fun TelegramBot.send(    chat: Chat,     video: VideoFile,     entities: TextSourcesList,     showCaptionAboveMedia: Boolean = false,     spoilered: Boolean = false,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoContent>

Will execute sendVideo request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     videoNote: VideoNoteFile,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoNoteContent>
suspend fun TelegramBot.send(    chat: Chat,     videoNote: VideoNoteFile,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VideoNoteContent>

Will execute sendVideoNote request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


suspend fun TelegramBot.send(    chatId: ChatIdentifier,     voice: VoiceFile,     text: String? = null,     parseMode: ParseMode? = null,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VoiceContent>
suspend fun TelegramBot.send(    chat: Chat,     voice: VoiceFile,     text: String? = null,     parseMode: ParseMode? = null,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VoiceContent>
inline suspend fun TelegramBot.send(    chatId: ChatIdentifier,     voice: VoiceFile,     entities: TextSourcesList,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VoiceContent>
inline suspend fun TelegramBot.send(    chat: Chat,     voice: VoiceFile,     entities: TextSourcesList,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null,     replyMarkup: KeyboardMarkup? = null): ContentMessage<VoiceContent>

Will execute sendVoice request

Parameters

replyMarkup

Some of KeyboardMarkup. See dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard or dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard as a builders for that param


@JvmName(name = "sendMedaGroup")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<MediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<MediaGroupPartContent>>
@JvmName(name = "sendMedaGroup")
suspend fun TelegramBot.send(    chat: Chat,     media: List<MediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<MediaGroupPartContent>>
@JvmName(name = "sendMedaGroupByContent")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<MediaGroupPartContent>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<MediaGroupPartContent>>
@JvmName(name = "sendMedaGroupByContent")
suspend fun TelegramBot.send(    chat: Chat,     media: List<MediaGroupPartContent>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<MediaGroupPartContent>>

See also


@JvmName(name = "sendPlaylist")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<AudioMediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<AudioContent>>
@JvmName(name = "sendPlaylist")
suspend fun TelegramBot.send(    chat: Chat,     media: List<AudioMediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<AudioContent>>
@JvmName(name = "sendPlaylistByContent")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<AudioContent>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<AudioContent>>
@JvmName(name = "sendPlaylistByContent")
suspend fun TelegramBot.send(    chat: Chat,     media: List<AudioContent>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<AudioContent>>

See also


@JvmName(name = "sendDocuments")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<DocumentMediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<DocumentContent>>
@JvmName(name = "sendDocuments")
suspend fun TelegramBot.send(    chat: Chat,     media: List<DocumentMediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<DocumentContent>>
@JvmName(name = "sendDocumentsByContent")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<DocumentContent>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<DocumentContent>>
@JvmName(name = "sendDocumentsByContent")
suspend fun TelegramBot.send(    chat: Chat,     media: List<DocumentContent>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<DocumentContent>>

See also


@JvmName(name = "sendVisualMediaGroup")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<VisualMediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>>
@JvmName(name = "sendVisualMediaGroup")
suspend fun TelegramBot.send(    chat: Chat,     media: List<VisualMediaGroupMemberTelegramMedia>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>>
@JvmName(name = "sendVisualMediaGroupByContent")
suspend fun TelegramBot.send(    chatId: ChatIdentifier,     media: List<VisualMediaGroupPartContent>,     threadId: MessageThreadId? = chatId.threadId,     businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>>
@JvmName(name = "sendVisualMediaGroupByContent")
suspend fun TelegramBot.send(    chat: Chat,     media: List<VisualMediaGroupPartContent>,     threadId: MessageThreadId? = chat.id.threadId,     businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,     disableNotification: Boolean = false,     protectContent: Boolean = false,     allowPaidBroadcast: Boolean = false,     effectId: EffectId? = null,     replyParameters: ReplyParameters? = null): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>>

See also