mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-29 13:38:43 +00:00
Compare commits
1 Commits
c49fa30521
...
40c97d33ab
Author | SHA1 | Date | |
---|---|---|---|
|
40c97d33ab |
11
CHANGELOG.md
11
CHANGELOG.md
@ -1,22 +1,11 @@
|
|||||||
# TelegramBotAPI changelog
|
# TelegramBotAPI changelog
|
||||||
|
|
||||||
## 20.0.0
|
|
||||||
|
|
||||||
**THIS UPDATE CONTAINS SUPPORT OF [BOTS API 7.11](https://core.telegram.org/bots/api-changelog#october-31-2024)**
|
|
||||||
|
|
||||||
* `All`:
|
|
||||||
* **ALL SEND METHODS GOT PARAMETER `allowPaidBroadcast` WHICH POTENTIALLY MAY SPEND MONEYS FROM BOT BALANCE**
|
|
||||||
|
|
||||||
## 19.0.0
|
## 19.0.0
|
||||||
|
|
||||||
**THIS UPDATE CONTAINS BREAKING CHANGES**
|
**THIS UPDATE CONTAINS BREAKING CHANGES**
|
||||||
|
|
||||||
**THIS UPDATE CONTAINS UPGRADE UP TO KTOR 3.0 (thanks to [@d1snin](https://github.com/d1snin))**
|
**THIS UPDATE CONTAINS UPGRADE UP TO KTOR 3.0 (thanks to [@d1snin](https://github.com/d1snin))**
|
||||||
|
|
||||||
* `Version`:
|
|
||||||
* `Ktor`: `2.3.12` -> `3.0.1`
|
|
||||||
* `MicroUtils`: `0.22.7` -> `0.23.0`
|
|
||||||
|
|
||||||
## 18.2.3
|
## 18.2.3
|
||||||
|
|
||||||
* `Core`:
|
* `Core`:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# TelegramBotAPI [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi) [![Supported version](https://img.shields.io/badge/Telegram%20Bot%20API-7.11-blue)](https://core.telegram.org/bots/api-changelog#october-31-2024)
|
# TelegramBotAPI [![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/tgbotapi) [![Supported version](https://img.shields.io/badge/Telegram%20Bot%20API-7.10-blue)](https://core.telegram.org/bots/api-changelog#september-6-2024)
|
||||||
|
|
||||||
| Docs | [![KDocs](https://img.shields.io/static/v1?label=Dokka&message=KDocs&color=blue&logo=kotlin)](https://tgbotapi.inmo.dev/index.html) [![Mini tutorial](https://img.shields.io/static/v1?label=Mk&message=Docs&color=blue&logo=mkdocs)](https://docs.inmo.dev/tgbotapi/index.html) |
|
| Docs | [![KDocs](https://img.shields.io/static/v1?label=Dokka&message=KDocs&color=blue&logo=kotlin)](https://tgbotapi.inmo.dev/index.html) [![Mini tutorial](https://img.shields.io/static/v1?label=Mk&message=Docs&color=blue&logo=mkdocs)](https://docs.inmo.dev/tgbotapi/index.html) |
|
||||||
|:----------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
|:----------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
||||||
|
@ -6,4 +6,4 @@ kotlin.incremental=true
|
|||||||
kotlin.incremental.js=true
|
kotlin.incremental.js=true
|
||||||
|
|
||||||
library_group=dev.inmo
|
library_group=dev.inmo
|
||||||
library_version=20.0.0
|
library_version=19.0.0
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -53,7 +53,6 @@ public suspend fun TelegramBot.handleLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
|
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
|
||||||
@ -91,7 +90,6 @@ public suspend fun TelegramBot.handleLiveLocation(
|
|||||||
businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification,
|
disableNotification,
|
||||||
protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast,
|
|
||||||
effectId,
|
effectId,
|
||||||
replyParameters,
|
replyParameters,
|
||||||
it.replyMarkup
|
it.replyMarkup
|
||||||
@ -128,7 +126,6 @@ public suspend fun TelegramBot.handleLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
|
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
|
||||||
@ -150,7 +147,6 @@ public suspend fun TelegramBot.handleLiveLocation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
sentMessageFlow = sentMessageFlow
|
sentMessageFlow = sentMessageFlow
|
||||||
@ -171,7 +167,6 @@ public suspend fun TelegramBot.handleLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
|
sentMessageFlow: FlowCollector<ContentMessage<LiveLocationContent>>? = null
|
||||||
@ -189,7 +184,6 @@ public suspend fun TelegramBot.handleLiveLocation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
sentMessageFlow = sentMessageFlow
|
sentMessageFlow = sentMessageFlow
|
||||||
|
@ -99,7 +99,6 @@ public suspend fun TelegramBot.startLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -107,21 +106,20 @@ public suspend fun TelegramBot.startLiveLocation(
|
|||||||
val liveTimeAsDouble = liveTimeMillis.toDouble()
|
val liveTimeAsDouble = liveTimeMillis.toDouble()
|
||||||
val locationMessage = execute(
|
val locationMessage = execute(
|
||||||
SendLiveLocation(
|
SendLiveLocation(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
livePeriod = ceil(liveTimeAsDouble / 1000).toInt(),
|
ceil(liveTimeAsDouble / 1000).toInt(),
|
||||||
horizontalAccuracy = initHorizontalAccuracy,
|
initHorizontalAccuracy,
|
||||||
heading = initHeading,
|
initHeading,
|
||||||
proximityAlertRadius = initProximityAlertRadius,
|
initProximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -150,27 +148,25 @@ public suspend fun TelegramBot.startLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): LiveLocationProvider = startLiveLocation(
|
): LiveLocationProvider = startLiveLocation(
|
||||||
scope = scope,
|
scope,
|
||||||
chatId = chat.id,
|
chat.id,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
liveTimeMillis = liveTimeMillis,
|
liveTimeMillis,
|
||||||
initHorizontalAccuracy = initHorizontalAccuracy,
|
initHorizontalAccuracy,
|
||||||
initHeading = initHeading,
|
initHeading,
|
||||||
initProximityAlertRadius = initProximityAlertRadius,
|
initProximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -189,27 +185,25 @@ public suspend fun TelegramBot.startLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): LiveLocationProvider = startLiveLocation(
|
): LiveLocationProvider = startLiveLocation(
|
||||||
scope = scope,
|
scope,
|
||||||
chatId = chatId,
|
chatId,
|
||||||
latitude = location.latitude,
|
location.latitude,
|
||||||
longitude = location.longitude,
|
location.longitude,
|
||||||
liveTimeMillis = liveTimeMillis,
|
liveTimeMillis,
|
||||||
initHorizontalAccuracy = initHorizontalAccuracy,
|
initHorizontalAccuracy,
|
||||||
initHeading = initHeading,
|
initHeading,
|
||||||
initProximityAlertRadius = initProximityAlertRadius,
|
initProximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -228,27 +222,25 @@ public suspend fun TelegramBot.startLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): LiveLocationProvider = startLiveLocation(
|
): LiveLocationProvider = startLiveLocation(
|
||||||
scope = scope,
|
scope,
|
||||||
chatId = chat.id,
|
chat.id,
|
||||||
latitude = location.latitude,
|
location.latitude,
|
||||||
longitude = location.longitude,
|
location.longitude,
|
||||||
liveTimeMillis = liveTimeMillis,
|
liveTimeMillis,
|
||||||
initHorizontalAccuracy = initHorizontalAccuracy,
|
initHorizontalAccuracy,
|
||||||
initHeading = initHeading,
|
initHeading,
|
||||||
initProximityAlertRadius = initProximityAlertRadius,
|
initProximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -268,27 +260,25 @@ public suspend inline fun TelegramBot.replyWithLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = to.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = to.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): LiveLocationProvider = startLiveLocation(
|
): LiveLocationProvider = startLiveLocation(
|
||||||
scope = scope,
|
scope,
|
||||||
chat = to.chat,
|
to.chat,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
liveTimeMillis = liveTimeMillis,
|
liveTimeMillis,
|
||||||
initHorizontalAccuracy = initHorizontalAccuracy,
|
initHorizontalAccuracy,
|
||||||
initHeading = initHeading,
|
initHeading,
|
||||||
initProximityAlertRadius = initProximityAlertRadius,
|
initProximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
ReplyParameters(to.metaInfo, allowSendingWithoutReply = allowSendingWithoutReply),
|
||||||
replyParameters = ReplyParameters(to.metaInfo, allowSendingWithoutReply = allowSendingWithoutReply),
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -307,24 +297,22 @@ public suspend inline fun TelegramBot.replyWithLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = to.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = to.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): LiveLocationProvider = startLiveLocation(
|
): LiveLocationProvider = startLiveLocation(
|
||||||
scope = scope,
|
scope,
|
||||||
chat = to.chat,
|
to.chat,
|
||||||
location = location,
|
location,
|
||||||
liveTimeMillis = liveTimeMillis,
|
liveTimeMillis,
|
||||||
initHorizontalAccuracy = initHorizontalAccuracy,
|
initHorizontalAccuracy,
|
||||||
initHeading = initHeading,
|
initHeading,
|
||||||
initProximityAlertRadius = initProximityAlertRadius,
|
initProximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
ReplyParameters(to.metaInfo, allowSendingWithoutReply = allowSendingWithoutReply),
|
||||||
replyParameters = ReplyParameters(to.metaInfo, allowSendingWithoutReply = allowSendingWithoutReply),
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
@ -4,7 +4,6 @@ import dev.inmo.tgbotapi.abstracts.TextedWithTextSources
|
|||||||
import dev.inmo.tgbotapi.bot.TelegramBot
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||||
import dev.inmo.tgbotapi.extensions.api.edit.caption.editMessageCaption
|
import dev.inmo.tgbotapi.extensions.api.edit.caption.editMessageCaption
|
||||||
import dev.inmo.tgbotapi.extensions.api.edit.location.live.editLiveLocation
|
import dev.inmo.tgbotapi.extensions.api.edit.location.live.editLiveLocation
|
||||||
import dev.inmo.tgbotapi.extensions.api.edit.media.addMessageMedia
|
|
||||||
import dev.inmo.tgbotapi.extensions.api.edit.media.editMessageMedia
|
import dev.inmo.tgbotapi.extensions.api.edit.media.editMessageMedia
|
||||||
import dev.inmo.tgbotapi.extensions.api.edit.reply_markup.editMessageReplyMarkup
|
import dev.inmo.tgbotapi.extensions.api.edit.reply_markup.editMessageReplyMarkup
|
||||||
import dev.inmo.tgbotapi.extensions.api.edit.text.editMessageText
|
import dev.inmo.tgbotapi.extensions.api.edit.text.editMessageText
|
||||||
@ -174,17 +173,6 @@ public suspend fun TelegramBot.edit(
|
|||||||
replyMarkup: InlineKeyboardMarkup? = null
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
): ContentMessage<MediaContent> = editMessageMedia(message, media, businessConnectionId, replyMarkup)
|
): ContentMessage<MediaContent> = editMessageMedia(message, media, businessConnectionId, replyMarkup)
|
||||||
|
|
||||||
/**
|
|
||||||
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
|
||||||
* as a builder for that
|
|
||||||
*/
|
|
||||||
public suspend fun TelegramBot.addMedia(
|
|
||||||
message: ContentMessage<TextContent>,
|
|
||||||
media: TelegramFreeMedia,
|
|
||||||
businessConnectionId: BusinessConnectionId? = message.chat.id.businessConnectionId,
|
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
|
||||||
): ContentMessage<MediaContent> = addMessageMedia(message, media, businessConnectionId, replyMarkup)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
* as a builder for that
|
* as a builder for that
|
||||||
|
@ -11,8 +11,6 @@ import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
|
|||||||
import dev.inmo.tgbotapi.types.chat.Chat
|
import dev.inmo.tgbotapi.types.chat.Chat
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
|
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
|
||||||
import dev.inmo.tgbotapi.types.message.content.MediaContent
|
import dev.inmo.tgbotapi.types.message.content.MediaContent
|
||||||
import dev.inmo.tgbotapi.types.message.content.TextContent
|
|
||||||
import kotlin.jvm.JvmName
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
@ -50,14 +48,3 @@ public suspend fun TelegramBot.editMessageMedia(
|
|||||||
businessConnectionId: BusinessConnectionId? = message.chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = message.chat.id.businessConnectionId,
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
): ContentMessage<MediaContent> = editMessageMedia(message.chat.id, message.messageId, media, businessConnectionId, replyMarkup)
|
): ContentMessage<MediaContent> = editMessageMedia(message.chat.id, message.messageId, media, businessConnectionId, replyMarkup)
|
||||||
|
|
||||||
/**
|
|
||||||
* @param replyMarkup Some [InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
|
||||||
* as a builder for that
|
|
||||||
*/
|
|
||||||
public suspend fun TelegramBot.addMessageMedia(
|
|
||||||
message: ContentMessage<TextContent>,
|
|
||||||
media: TelegramFreeMedia,
|
|
||||||
businessConnectionId: BusinessConnectionId? = message.chat.id.businessConnectionId,
|
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
|
||||||
): ContentMessage<MediaContent> = editMessageMedia(message.chat.id, message.messageId, media, businessConnectionId, replyMarkup)
|
|
||||||
|
@ -23,23 +23,21 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = execute(
|
): MessageId = execute(
|
||||||
CopyMessage(
|
CopyMessage(
|
||||||
fromChatId = fromChatId,
|
fromChatId,
|
||||||
messageId = messageId,
|
messageId,
|
||||||
toChatId = toChatId,
|
toChatId,
|
||||||
text = text,
|
text,
|
||||||
parseMode = parseMode,
|
parseMode,
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
showCaptionAboveMedia,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -57,23 +55,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(fromChat.id, messageId, toChatId, text, parseMode, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChatId = fromChat.id,
|
|
||||||
messageId = messageId,
|
|
||||||
toChatId = toChatId,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -89,23 +73,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChat.id.threadId,
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(fromChatId, messageId, toChat.id, text, parseMode, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChatId = fromChatId,
|
|
||||||
messageId = messageId,
|
|
||||||
toChatId = toChat.id,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -121,23 +91,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChat.id.threadId,
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(fromChat.id, messageId, toChat.id, text, parseMode, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChatId = fromChat.id,
|
|
||||||
messageId = messageId,
|
|
||||||
toChatId = toChat.id,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -153,22 +109,20 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = execute(
|
): MessageId = execute(
|
||||||
CopyMessage(
|
CopyMessage(
|
||||||
fromChatId = fromChatId,
|
fromChatId,
|
||||||
messageId = messageId,
|
messageId,
|
||||||
toChatId = toChatId,
|
toChatId,
|
||||||
entities = entities,
|
entities,
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
showCaptionAboveMedia,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -185,22 +139,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(fromChat.id, messageId, toChatId, entities, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChatId = fromChat.id,
|
|
||||||
messageId = messageId,
|
|
||||||
toChatId = toChatId,
|
|
||||||
entities = entities,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -215,22 +156,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChat.id.threadId,
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(fromChatId, messageId, toChat.id, entities, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChatId = fromChatId,
|
|
||||||
messageId = messageId,
|
|
||||||
toChatId = toChat.id,
|
|
||||||
entities = entities,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -245,22 +173,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChat.id.threadId,
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(fromChat.id, messageId, toChat.id, entities, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChatId = fromChat.id,
|
|
||||||
messageId = messageId,
|
|
||||||
toChatId = toChat.id,
|
|
||||||
entities = entities,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -275,23 +190,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(message.chat, message.messageId, toChatId, text, parseMode, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChat = message.chat,
|
|
||||||
messageId = message.messageId,
|
|
||||||
toChatId = toChatId,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -306,23 +207,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChat.id.threadId,
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(message.chat, message.messageId, toChat, text, parseMode, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChat = message.chat,
|
|
||||||
messageId = message.messageId,
|
|
||||||
toChat = toChat,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -336,22 +223,9 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(message.chat, message.messageId, toChatId, entities, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
fromChat = message.chat,
|
|
||||||
messageId = message.messageId,
|
|
||||||
toChatId = toChatId,
|
|
||||||
entities = entities,
|
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -365,272 +239,243 @@ public suspend inline fun TelegramBot.copyMessage(
|
|||||||
threadId: MessageThreadId? = toChat.id.threadId,
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = copyMessage(message.chat, message.messageId, toChat, entities, showCaptionAboveMedia, threadId, disableNotification, protectContent, replyParameters, replyMarkup)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
|
fromChatId: ChatIdentifier,
|
||||||
|
messageId: MessageId,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = execute(
|
||||||
|
CopyMessage(
|
||||||
|
fromChatId,
|
||||||
|
messageId,
|
||||||
|
toChatId,
|
||||||
|
text,
|
||||||
|
parseMode,
|
||||||
|
showCaptionAboveMedia,
|
||||||
|
threadId,
|
||||||
|
disableNotification,
|
||||||
|
protectContent,
|
||||||
|
replyParameters,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
|
fromChat: Chat,
|
||||||
|
messageId: MessageId,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): MessageId = copyMessage(
|
): MessageId = copyMessage(
|
||||||
fromChat = message.chat,
|
toChatId,
|
||||||
messageId = message.messageId,
|
fromChat.id,
|
||||||
toChat = toChat,
|
messageId,
|
||||||
entities = entities,
|
text,
|
||||||
showCaptionAboveMedia = showCaptionAboveMedia,
|
parseMode,
|
||||||
threadId = threadId,
|
showCaptionAboveMedia,
|
||||||
disableNotification = disableNotification,
|
threadId,
|
||||||
protectContent = protectContent,
|
disableNotification,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
protectContent,
|
||||||
replyParameters = replyParameters,
|
replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChat: Chat,
|
||||||
|
fromChatId: ChatIdentifier,
|
||||||
|
messageId: MessageId,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = copyMessage(
|
||||||
|
toChat.id,
|
||||||
|
fromChatId,
|
||||||
|
messageId,
|
||||||
|
text,
|
||||||
|
parseMode,
|
||||||
|
showCaptionAboveMedia,
|
||||||
|
threadId,
|
||||||
|
disableNotification,
|
||||||
|
protectContent,
|
||||||
|
replyParameters,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChat: Chat,
|
||||||
|
fromChat: Chat,
|
||||||
|
messageId: MessageId,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = copyMessage(
|
||||||
|
toChat.id,
|
||||||
|
fromChat.id,
|
||||||
|
messageId,
|
||||||
|
text,
|
||||||
|
parseMode,
|
||||||
|
showCaptionAboveMedia,
|
||||||
|
threadId,
|
||||||
|
disableNotification,
|
||||||
|
protectContent,
|
||||||
|
replyParameters,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
|
fromChatId: ChatIdentifier,
|
||||||
|
messageId: MessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = execute(
|
||||||
|
CopyMessage(
|
||||||
|
fromChatId,
|
||||||
|
messageId,
|
||||||
|
toChatId,
|
||||||
|
entities,
|
||||||
|
showCaptionAboveMedia,
|
||||||
|
threadId,
|
||||||
|
disableNotification,
|
||||||
|
protectContent,
|
||||||
|
replyParameters,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
|
fromChat: Chat,
|
||||||
|
messageId: MessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = copyMessage(
|
||||||
|
toChatId,
|
||||||
|
fromChat.id,
|
||||||
|
messageId,
|
||||||
|
entities,
|
||||||
|
showCaptionAboveMedia,
|
||||||
|
threadId,
|
||||||
|
disableNotification,
|
||||||
|
protectContent,
|
||||||
|
replyParameters,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChat: Chat,
|
||||||
|
fromChatId: ChatIdentifier,
|
||||||
|
messageId: MessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = copyMessage(
|
||||||
|
toChat.id,
|
||||||
|
fromChatId,
|
||||||
|
messageId,
|
||||||
|
entities,
|
||||||
|
showCaptionAboveMedia,
|
||||||
|
threadId,
|
||||||
|
disableNotification,
|
||||||
|
protectContent,
|
||||||
|
replyParameters,
|
||||||
|
replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param 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
|
||||||
|
*/
|
||||||
|
public suspend inline fun TelegramBot.copyMessage(
|
||||||
|
toChat: Chat,
|
||||||
|
fromChat: Chat,
|
||||||
|
messageId: MessageId,
|
||||||
|
entities: TextSourcesList,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChat.id.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
): MessageId = copyMessage(
|
||||||
|
toChat.id,
|
||||||
|
fromChat.id,
|
||||||
|
messageId,
|
||||||
|
entities,
|
||||||
|
showCaptionAboveMedia,
|
||||||
|
threadId,
|
||||||
|
disableNotification,
|
||||||
|
protectContent,
|
||||||
|
replyParameters,
|
||||||
|
replyMarkup
|
||||||
)
|
)
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChatId: ChatIdentifier,
|
|
||||||
// fromChatId: ChatIdentifier,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// text: String? = null,
|
|
||||||
// parseMode: ParseMode? = null,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChatId.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = execute(
|
|
||||||
// CopyMessage(
|
|
||||||
// fromChatId,
|
|
||||||
// messageId,
|
|
||||||
// toChatId,
|
|
||||||
// text,
|
|
||||||
// parseMode,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
// )
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChatId: ChatIdentifier,
|
|
||||||
// fromChat: Chat,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// text: String? = null,
|
|
||||||
// parseMode: ParseMode? = null,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChatId.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = copyMessage(
|
|
||||||
// toChatId,
|
|
||||||
// fromChat.id,
|
|
||||||
// messageId,
|
|
||||||
// text,
|
|
||||||
// parseMode,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChat: Chat,
|
|
||||||
// fromChatId: ChatIdentifier,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// text: String? = null,
|
|
||||||
// parseMode: ParseMode? = null,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChat.id.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = copyMessage(
|
|
||||||
// toChat.id,
|
|
||||||
// fromChatId,
|
|
||||||
// messageId,
|
|
||||||
// text,
|
|
||||||
// parseMode,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChat: Chat,
|
|
||||||
// fromChat: Chat,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// text: String? = null,
|
|
||||||
// parseMode: ParseMode? = null,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChat.id.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = copyMessage(
|
|
||||||
// toChat.id,
|
|
||||||
// fromChat.id,
|
|
||||||
// messageId,
|
|
||||||
// text,
|
|
||||||
// parseMode,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChatId: ChatIdentifier,
|
|
||||||
// fromChatId: ChatIdentifier,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// entities: TextSourcesList,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChatId.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = execute(
|
|
||||||
// CopyMessage(
|
|
||||||
// fromChatId,
|
|
||||||
// messageId,
|
|
||||||
// toChatId,
|
|
||||||
// entities,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
// )
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChatId: ChatIdentifier,
|
|
||||||
// fromChat: Chat,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// entities: TextSourcesList,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChatId.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = copyMessage(
|
|
||||||
// toChatId,
|
|
||||||
// fromChat.id,
|
|
||||||
// messageId,
|
|
||||||
// entities,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChat: Chat,
|
|
||||||
// fromChatId: ChatIdentifier,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// entities: TextSourcesList,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChat.id.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = copyMessage(
|
|
||||||
// toChat.id,
|
|
||||||
// fromChatId,
|
|
||||||
// messageId,
|
|
||||||
// entities,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * @param 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
|
|
||||||
// */
|
|
||||||
//public suspend inline fun TelegramBot.copyMessage(
|
|
||||||
// toChat: Chat,
|
|
||||||
// fromChat: Chat,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// entities: TextSourcesList,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChat.id.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//): MessageId = copyMessage(
|
|
||||||
// toChat.id,
|
|
||||||
// fromChat.id,
|
|
||||||
// messageId,
|
|
||||||
// entities,
|
|
||||||
// showCaptionAboveMedia,
|
|
||||||
// threadId,
|
|
||||||
// disableNotification,
|
|
||||||
// protectContent,
|
|
||||||
// allowPaidBroadcast,
|
|
||||||
// replyParameters,
|
|
||||||
// replyMarkup
|
|
||||||
//)
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -16,7 +16,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId: MessageThreadId? = chatId.threadId,
|
messageThreadId: MessageThreadId? = chatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -26,7 +25,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId = messageThreadId,
|
messageThreadId = messageThreadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -42,7 +40,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId: MessageThreadId? = chat.id.threadId,
|
messageThreadId: MessageThreadId? = chat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -52,7 +49,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId = messageThreadId,
|
messageThreadId = messageThreadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -69,7 +65,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId: MessageThreadId? = chatId.threadId,
|
messageThreadId: MessageThreadId? = chatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -79,7 +74,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId = messageThreadId,
|
messageThreadId = messageThreadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -96,7 +90,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId: MessageThreadId? = chat.id.threadId,
|
messageThreadId: MessageThreadId? = chat.id.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -106,7 +99,6 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
|
|||||||
messageThreadId = messageThreadId,
|
messageThreadId = messageThreadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -22,24 +22,12 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<ContactContent> = execute(
|
): ContentMessage<ContactContent> = execute(
|
||||||
SendContact(
|
SendContact(
|
||||||
chatId = chatId,
|
chatId, phoneNumber, firstName, lastName, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
phoneNumber = phoneNumber,
|
|
||||||
firstName = firstName,
|
|
||||||
lastName = lastName,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -54,22 +42,12 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<ContactContent> = execute(
|
): ContentMessage<ContactContent> = execute(
|
||||||
SendContact(
|
SendContact(
|
||||||
chatId = chatId,
|
chatId, contact, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
contact = contact,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -86,23 +64,11 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<ContactContent> = sendContact(
|
): ContentMessage<ContactContent> = sendContact(
|
||||||
chatId = chat.id,
|
chat.id, phoneNumber, firstName, lastName, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
phoneNumber = phoneNumber,
|
|
||||||
firstName = firstName,
|
|
||||||
lastName = lastName,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -116,19 +82,9 @@ public suspend fun TelegramBot.sendContact(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<ContactContent> = sendContact(
|
): ContentMessage<ContactContent> = sendContact(
|
||||||
chatId = chat.id,
|
chat.id, contact, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
contact = contact,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
@ -21,23 +21,11 @@ public suspend fun TelegramBot.sendDice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<DiceContent> = execute(
|
): ContentMessage<DiceContent> = execute(
|
||||||
SendDice(
|
SendDice(chatId, animationType, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
animationType = animationType,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -51,19 +39,7 @@ public suspend fun TelegramBot.sendDice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<DiceContent> = sendDice(
|
): ContentMessage<DiceContent> = sendDice(chat.id, animationType, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
animationType = animationType,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -27,27 +27,25 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<LiveLocationContent> = execute(
|
): ContentMessage<LiveLocationContent> = execute(
|
||||||
SendLiveLocation(
|
SendLiveLocation(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
livePeriod = livePeriod,
|
livePeriod,
|
||||||
horizontalAccuracy = horizontalAccuracy,
|
horizontalAccuracy,
|
||||||
heading = heading,
|
heading,
|
||||||
proximityAlertRadius = proximityAlertRadius,
|
proximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -66,26 +64,24 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<LiveLocationContent> = sendLocation(
|
): ContentMessage<LiveLocationContent> = sendLocation(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
latitude = location.latitude,
|
location.latitude,
|
||||||
longitude = location.longitude,
|
location.longitude,
|
||||||
livePeriod = livePeriod,
|
livePeriod,
|
||||||
horizontalAccuracy = horizontalAccuracy,
|
horizontalAccuracy,
|
||||||
heading = heading,
|
heading,
|
||||||
proximityAlertRadius = proximityAlertRadius,
|
proximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -104,26 +100,24 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<LiveLocationContent> = sendLocation(
|
): ContentMessage<LiveLocationContent> = sendLocation(
|
||||||
chatId = chat.id,
|
chat.id,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
livePeriod = livePeriod,
|
livePeriod,
|
||||||
horizontalAccuracy = horizontalAccuracy,
|
horizontalAccuracy,
|
||||||
heading = heading,
|
heading,
|
||||||
proximityAlertRadius = proximityAlertRadius,
|
proximityAlertRadius,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -141,7 +135,6 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -157,7 +150,6 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -179,27 +171,10 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<LiveLocationContent> = sendLocation(
|
): ContentMessage<LiveLocationContent> = sendLocation(chatId, latitude, longitude, livePeriod, horizontalAccuracy, heading, proximityAlertRadius, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
latitude = latitude,
|
|
||||||
longitude = longitude,
|
|
||||||
livePeriod = livePeriod,
|
|
||||||
horizontalAccuracy = horizontalAccuracy,
|
|
||||||
heading = heading,
|
|
||||||
proximityAlertRadius = proximityAlertRadius,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -216,27 +191,10 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<LiveLocationContent> = sendLocation(
|
): ContentMessage<LiveLocationContent> = sendLocation(chatId, location.latitude, location.longitude, livePeriod, horizontalAccuracy, heading, proximityAlertRadius, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
latitude = location.latitude,
|
|
||||||
longitude = location.longitude,
|
|
||||||
livePeriod = livePeriod,
|
|
||||||
horizontalAccuracy = horizontalAccuracy,
|
|
||||||
heading = heading,
|
|
||||||
proximityAlertRadius = proximityAlertRadius,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -254,27 +212,10 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<LiveLocationContent> = sendLocation(
|
): ContentMessage<LiveLocationContent> = sendLocation(chat.id, latitude, longitude, livePeriod, horizontalAccuracy, heading, proximityAlertRadius, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
latitude = latitude,
|
|
||||||
longitude = longitude,
|
|
||||||
livePeriod = livePeriod,
|
|
||||||
horizontalAccuracy = horizontalAccuracy,
|
|
||||||
heading = heading,
|
|
||||||
proximityAlertRadius = proximityAlertRadius,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -291,24 +232,7 @@ public suspend fun TelegramBot.sendLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<LiveLocationContent> = sendLocation(
|
): ContentMessage<LiveLocationContent> = sendLocation(chat.id, location.latitude, location.longitude, livePeriod, horizontalAccuracy, heading, proximityAlertRadius, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
latitude = location.latitude,
|
|
||||||
longitude = location.longitude,
|
|
||||||
livePeriod = livePeriod,
|
|
||||||
horizontalAccuracy = horizontalAccuracy,
|
|
||||||
heading = heading,
|
|
||||||
proximityAlertRadius = proximityAlertRadius,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -27,24 +27,22 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = execute(
|
): ContentMessage<TextContent> = execute(
|
||||||
SendTextMessage(
|
SendTextMessage(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
text = text,
|
text,
|
||||||
parseMode = parseMode,
|
parseMode,
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
linkPreviewOptions,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -61,23 +59,11 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(
|
||||||
chatId = chatId,
|
chatId, text, parseMode, linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,24 +79,10 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = sendTextMessage(
|
): ContentMessage<TextContent> = sendTextMessage(chat.id, text, parseMode, linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -126,24 +98,10 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(chat.id, text, parseMode, linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -157,24 +115,11 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = execute(
|
): ContentMessage<TextContent> = execute(
|
||||||
SendTextMessage(
|
SendTextMessage(chatId, entities, linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
entities = entities,
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -189,24 +134,11 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(chatId, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -221,24 +153,11 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(chatId, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -252,22 +171,11 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(
|
||||||
chatId = chatId,
|
chatId, entities, linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
entities = entities,
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -282,24 +190,11 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendTextMessage(
|
): ContentMessage<TextContent> = sendTextMessage(chatId, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -314,24 +209,11 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendTextMessage(
|
): ContentMessage<TextContent> = sendTextMessage(chatId, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -345,23 +227,10 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(chat.id, entities, linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
entities = entities,
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some [dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
* @param replyMarkup Some [dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
@ -375,24 +244,11 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(chat, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chat = chat,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -407,24 +263,11 @@ public suspend fun TelegramBot.sendMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendMessage(
|
): ContentMessage<TextContent> = sendMessage(chat, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chat = chat,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -439,23 +282,10 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<TextContent> = sendTextMessage(
|
): ContentMessage<TextContent> = sendTextMessage(chat.id, entities, linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
entities = entities,
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some [dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
* @param replyMarkup Some [dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.inlineKeyboard]
|
||||||
@ -469,24 +299,11 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendTextMessage(
|
): ContentMessage<TextContent> = sendTextMessage(chat, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chat = chat,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -501,21 +318,8 @@ public suspend fun TelegramBot.sendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
builderBody: EntitiesBuilderBody
|
builderBody: EntitiesBuilderBody
|
||||||
): ContentMessage<TextContent> = sendTextMessage(
|
): ContentMessage<TextContent> = sendTextMessage(chat, buildEntities(separator, builderBody), linkPreviewOptions, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chat = chat,
|
|
||||||
entities = buildEntities(separator, builderBody),
|
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -23,20 +23,18 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = execute(
|
): ContentMessage<StaticLocationContent> = execute(
|
||||||
SendStaticLocation(
|
SendStaticLocation(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -54,22 +52,20 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = sendLocation(
|
): ContentMessage<StaticLocationContent> = sendLocation(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
latitude = location.latitude,
|
location.latitude,
|
||||||
longitude = location.longitude,
|
location.longitude,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,22 +80,20 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = sendLocation(
|
): ContentMessage<StaticLocationContent> = sendLocation(
|
||||||
chatId = chat.id,
|
chat.id,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -113,22 +107,20 @@ public suspend fun TelegramBot.sendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = sendLocation(
|
): ContentMessage<StaticLocationContent> = sendLocation(
|
||||||
chatId = chat.id,
|
chat.id,
|
||||||
latitude = location.latitude,
|
location.latitude,
|
||||||
longitude = location.longitude,
|
location.longitude,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -143,23 +135,10 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = sendLocation(
|
): ContentMessage<StaticLocationContent> = sendLocation(chatId, latitude, longitude, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
latitude = latitude,
|
|
||||||
longitude = longitude,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -172,23 +151,10 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = sendLocation(
|
): ContentMessage<StaticLocationContent> = sendLocation(chatId, location.latitude, location.longitude, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
latitude = location.latitude,
|
|
||||||
longitude = location.longitude,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -202,23 +168,10 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = sendLocation(
|
): ContentMessage<StaticLocationContent> = sendLocation(chat.id, latitude, longitude, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
latitude = latitude,
|
|
||||||
longitude = longitude,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -231,20 +184,7 @@ public suspend fun TelegramBot.sendStaticLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StaticLocationContent> = sendLocation(
|
): ContentMessage<StaticLocationContent> = sendLocation(chat.id, location.latitude, location.longitude, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
latitude = location.latitude,
|
|
||||||
longitude = location.longitude,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -29,7 +29,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -48,7 +47,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -73,7 +71,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -91,7 +88,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -114,7 +110,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -132,7 +127,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -155,7 +149,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -173,7 +166,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -190,7 +182,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -202,7 +193,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -220,7 +210,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -231,7 +220,6 @@ public suspend fun TelegramBot.sendVenue(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -21,22 +21,12 @@ public suspend fun TelegramBot.sendGame(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<GameContent> = execute(
|
): ContentMessage<GameContent> = execute(
|
||||||
SendGame(
|
SendGame(
|
||||||
chatId = chatId,
|
chatId, gameShortName, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
gameShortName = gameShortName,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,21 +41,11 @@ public suspend fun TelegramBot.sendGame(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<GameContent> = sendGame(
|
): ContentMessage<GameContent> = sendGame(
|
||||||
chatId = chat.id,
|
chat.id, gameShortName, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
gameShortName = gameShortName,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -79,21 +59,11 @@ public suspend fun TelegramBot.sendGame(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<GameContent> = sendGame(
|
): ContentMessage<GameContent> = sendGame(
|
||||||
chatId = chatId,
|
chatId, game.title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
gameShortName = game.title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -107,19 +77,9 @@ public suspend fun TelegramBot.sendGame(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<GameContent> = sendGame(
|
): ContentMessage<GameContent> = sendGame(
|
||||||
chatId = chat.id,
|
chat.id, game.title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
gameShortName = game.title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
@ -32,7 +32,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -52,7 +51,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -77,7 +75,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -96,7 +93,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -121,7 +117,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -140,7 +135,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -164,7 +158,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -182,7 +175,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -207,7 +199,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -226,7 +217,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -250,7 +240,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -268,7 +257,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -292,7 +280,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -310,7 +297,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -333,7 +319,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -350,7 +335,6 @@ public suspend fun TelegramBot.sendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -30,28 +30,26 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = execute(
|
): ContentMessage<AudioContent> = execute(
|
||||||
SendAudio(
|
SendAudio(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
audio = audio,
|
audio,
|
||||||
thumbnail = thumb,
|
thumb,
|
||||||
text = text,
|
text,
|
||||||
parseMode = parseMode,
|
parseMode,
|
||||||
duration = duration,
|
duration,
|
||||||
performer = performer,
|
performer,
|
||||||
title = title,
|
title,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -72,28 +70,10 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = sendAudio(
|
): ContentMessage<AudioContent> = sendAudio(chat.id, audio, thumb, text, parseMode, duration, performer, title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
audio = audio,
|
|
||||||
thumb = thumb,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
duration = duration,
|
|
||||||
performer = performer,
|
|
||||||
title = title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -109,28 +89,10 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = sendAudio(
|
): ContentMessage<AudioContent> = sendAudio(chatId, audio.fileId, audio.thumbnail ?.fileId, text, parseMode, audio.duration, audio.performer, title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
audio = audio.fileId,
|
|
||||||
thumb = audio.thumbnail ?.fileId,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
duration = audio.duration,
|
|
||||||
performer = audio.performer,
|
|
||||||
title = title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -146,25 +108,10 @@ public suspend fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = sendAudio(
|
): ContentMessage<AudioContent> = sendAudio(chat.id, audio, text, parseMode, title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
audio = audio,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
title = title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -183,27 +130,25 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = execute(
|
): ContentMessage<AudioContent> = execute(
|
||||||
SendAudio(
|
SendAudio(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
audio = audio,
|
audio,
|
||||||
thumbnail = thumb,
|
thumb,
|
||||||
entities = entities,
|
entities,
|
||||||
duration = duration,
|
duration,
|
||||||
performer = performer,
|
performer,
|
||||||
title = title,
|
title,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -223,27 +168,10 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = sendAudio(
|
): ContentMessage<AudioContent> = sendAudio(chat.id, audio, thumb, entities, duration, performer, title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
audio = audio,
|
|
||||||
thumb = thumb,
|
|
||||||
entities = entities,
|
|
||||||
duration = duration,
|
|
||||||
performer = performer,
|
|
||||||
title = title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -258,27 +186,10 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = sendAudio(
|
): ContentMessage<AudioContent> = sendAudio(chatId, audio.fileId, audio.thumbnail ?.fileId, entities, audio.duration, audio.performer, title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
audio = audio.fileId,
|
|
||||||
thumb = audio.thumbnail ?.fileId,
|
|
||||||
entities = entities,
|
|
||||||
duration = audio.duration,
|
|
||||||
performer = audio.performer,
|
|
||||||
title = title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -293,21 +204,7 @@ public suspend inline fun TelegramBot.sendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<AudioContent> = sendAudio(
|
): ContentMessage<AudioContent> = sendAudio(chat.id, audio, entities, title, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
audio = audio,
|
|
||||||
entities = entities,
|
|
||||||
title = title,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -27,27 +27,25 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = execute(
|
): ContentMessage<DocumentContent> = execute(
|
||||||
SendDocument(
|
SendDocument(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
document = document,
|
document,
|
||||||
thumbnail = thumb,
|
thumb,
|
||||||
text = text,
|
text,
|
||||||
parseMode = parseMode,
|
parseMode,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup,
|
||||||
replyMarkup = replyMarkup,
|
disableContentTypeDetection
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -65,27 +63,11 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = sendDocument(
|
): ContentMessage<DocumentContent> = sendDocument(chat.id, document, thumb, text, parseMode, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup, disableContentTypeDetection)
|
||||||
chatId = chat.id,
|
|
||||||
document = document,
|
|
||||||
thumb = thumb,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup,
|
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -100,26 +82,12 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = sendDocument(
|
): ContentMessage<DocumentContent> = sendDocument(
|
||||||
chatId = chatId,
|
chatId, document.fileId, document.thumbnail ?.fileId, text, parseMode, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup, disableContentTypeDetection
|
||||||
document = document.fileId,
|
|
||||||
thumb = document.thumbnail ?.fileId,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup,
|
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -135,26 +103,11 @@ public suspend fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = sendDocument(
|
): ContentMessage<DocumentContent> = sendDocument(chat.id, document, text, parseMode, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup, disableContentTypeDetection)
|
||||||
chatId = chat.id,
|
|
||||||
document = document,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup,
|
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -169,26 +122,24 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = execute(
|
): ContentMessage<DocumentContent> = execute(
|
||||||
SendDocument(
|
SendDocument(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
document = document,
|
document,
|
||||||
thumbnail = thumb,
|
thumb,
|
||||||
entities = entities,
|
entities,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup,
|
||||||
replyMarkup = replyMarkup,
|
disableContentTypeDetection
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -205,26 +156,11 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = sendDocument(
|
): ContentMessage<DocumentContent> = sendDocument(chat.id, document, thumb, entities, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup, disableContentTypeDetection)
|
||||||
chatId = chat.id,
|
|
||||||
document = document,
|
|
||||||
thumb = thumb,
|
|
||||||
entities = entities,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup,
|
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -238,25 +174,12 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = sendDocument(
|
): ContentMessage<DocumentContent> = sendDocument(
|
||||||
chatId = chatId,
|
chatId, document.fileId, document.thumbnail ?.fileId, entities, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup, disableContentTypeDetection
|
||||||
document = document.fileId,
|
|
||||||
thumb = document.thumbnail ?.fileId,
|
|
||||||
entities = entities,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup,
|
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -271,22 +194,8 @@ public suspend inline fun TelegramBot.sendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
disableContentTypeDetection: Boolean? = null
|
disableContentTypeDetection: Boolean? = null
|
||||||
): ContentMessage<DocumentContent> = sendDocument(
|
): ContentMessage<DocumentContent> = sendDocument(chat.id, document, entities, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup, disableContentTypeDetection)
|
||||||
chatId = chat.id,
|
|
||||||
document = document,
|
|
||||||
entities = entities,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup,
|
|
||||||
disableContentTypeDetection = disableContentTypeDetection
|
|
||||||
)
|
|
||||||
|
@ -22,20 +22,11 @@ public suspend fun TelegramBot.sendMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = execute(
|
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = execute(
|
||||||
SendMediaGroup<MediaGroupPartContent>(
|
SendMediaGroup<MediaGroupPartContent>(
|
||||||
chatId = chatId,
|
chatId, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -50,19 +41,10 @@ public suspend fun TelegramBot.sendMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
|
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -77,19 +59,10 @@ public suspend fun TelegramBot.sendMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
|
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
|
||||||
chatId = chatId,
|
chatId, media.map { it.toMediaGroupMemberTelegramMedia() }, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media.map { it.toMediaGroupMemberTelegramMedia() },
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -104,19 +77,10 @@ public suspend fun TelegramBot.sendMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
|
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -129,20 +93,11 @@ public suspend fun TelegramBot.sendPlaylist(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<AudioContent>> = execute(
|
): ContentMessage<MediaGroupContent<AudioContent>> = execute(
|
||||||
SendPlaylist(
|
SendPlaylist(
|
||||||
chatId = chatId,
|
chatId, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -156,19 +111,10 @@ public suspend fun TelegramBot.sendPlaylist(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
|
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -182,19 +128,10 @@ public suspend fun TelegramBot.sendPlaylist(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
|
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
|
||||||
chatId = chatId,
|
chatId, media.map { it.toMediaGroupMemberTelegramMedia() }, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media.map { it.toMediaGroupMemberTelegramMedia() },
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,19 +145,10 @@ public suspend fun TelegramBot.sendPlaylist(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
|
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -233,20 +161,11 @@ public suspend fun TelegramBot.sendDocumentsGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<DocumentContent>> = execute(
|
): ContentMessage<MediaGroupContent<DocumentContent>> = execute(
|
||||||
SendDocumentsGroup(
|
SendDocumentsGroup(
|
||||||
chatId = chatId,
|
chatId, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -260,19 +179,10 @@ public suspend fun TelegramBot.sendDocumentsGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
|
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -286,19 +196,10 @@ public suspend fun TelegramBot.sendDocumentsGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
|
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
|
||||||
chatId = chatId,
|
chatId, media.map { it.toMediaGroupMemberTelegramMedia() }, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media.map { it.toMediaGroupMemberTelegramMedia() },
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -312,19 +213,10 @@ public suspend fun TelegramBot.sendDocumentsGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
|
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -337,20 +229,11 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = execute(
|
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = execute(
|
||||||
SendVisualMediaGroup(
|
SendVisualMediaGroup(
|
||||||
chatId = chatId,
|
chatId, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -364,19 +247,10 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
|
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -390,19 +264,10 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
|
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
|
||||||
chatId = chatId,
|
chatId, media.map { it.toMediaGroupMemberTelegramMedia() }, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media.map { it.toMediaGroupMemberTelegramMedia() },
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -416,17 +281,8 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
|
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
|
||||||
chatId = chat.id,
|
chat.id, media, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters
|
||||||
media = media,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters
|
|
||||||
)
|
)
|
||||||
|
@ -28,7 +28,6 @@ public suspend fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PaidMediaInfoContent> = execute(
|
): ContentMessage<PaidMediaInfoContent> = execute(
|
||||||
@ -44,7 +43,6 @@ public suspend fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
@ -66,7 +64,6 @@ public suspend fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
|
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
|
||||||
@ -81,7 +78,6 @@ public suspend fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
@ -102,7 +98,6 @@ public suspend inline fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PaidMediaInfoContent> = execute(
|
): ContentMessage<PaidMediaInfoContent> = execute(
|
||||||
@ -117,7 +112,6 @@ public suspend inline fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
@ -138,7 +132,6 @@ public suspend inline fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
|
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
|
||||||
@ -152,7 +145,6 @@ public suspend inline fun TelegramBot.sendPaidMedia(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
|
@ -28,7 +28,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -44,7 +43,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -66,7 +64,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -81,7 +78,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -102,7 +98,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -117,7 +112,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -138,7 +132,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -153,7 +146,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -174,7 +166,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -189,7 +180,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -210,7 +200,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -225,7 +214,6 @@ public suspend fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -246,7 +234,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -261,7 +248,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -282,7 +268,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -296,7 +281,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -316,7 +300,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -330,7 +313,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -350,7 +332,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -364,7 +345,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -384,7 +364,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -398,7 +377,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -418,7 +396,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -432,7 +409,6 @@ public suspend inline fun TelegramBot.sendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -23,24 +23,11 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StickerContent> = execute(
|
): ContentMessage<StickerContent> = execute(
|
||||||
SendSticker(
|
SendSticker(chatId, sticker, threadId, businessConnectionId, emoji, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
sticker = sticker,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
emoji = emoji,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,23 +42,10 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StickerContent> = sendSticker(
|
): ContentMessage<StickerContent> = sendSticker(chat.id, sticker, threadId, businessConnectionId, emoji, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
sticker = sticker,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
emoji = emoji,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -85,23 +59,10 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StickerContent> = sendSticker(
|
): ContentMessage<StickerContent> = sendSticker(chatId, sticker.fileId, threadId, businessConnectionId, emoji, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
sticker = sticker.fileId,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
emoji = emoji,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -115,20 +76,7 @@ public suspend fun TelegramBot.sendSticker(
|
|||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<StickerContent> = sendSticker(
|
): ContentMessage<StickerContent> = sendSticker(chat, sticker.fileId, threadId, businessConnectionId, emoji, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chat = chat,
|
|
||||||
sticker = sticker.fileId,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
emoji = emoji,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -32,7 +32,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -53,7 +52,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -75,7 +73,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -94,7 +91,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -119,7 +115,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -138,7 +133,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -160,7 +154,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -175,7 +168,6 @@ public suspend fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -199,7 +191,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -219,7 +210,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -240,7 +230,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -258,7 +247,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -282,7 +270,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -300,7 +287,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -321,7 +307,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -335,7 +320,6 @@ public suspend inline fun TelegramBot.sendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -25,25 +25,23 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VideoNoteContent> = execute(
|
): ContentMessage<VideoNoteContent> = execute(
|
||||||
SendVideoNote(
|
SendVideoNote(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
videoNote = videoNote,
|
videoNote,
|
||||||
thumbnail = thumb,
|
thumb,
|
||||||
duration = duration,
|
duration,
|
||||||
size = size,
|
size,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -58,24 +56,11 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VideoNoteContent> = sendVideoNote(
|
): ContentMessage<VideoNoteContent> = sendVideoNote(
|
||||||
chatId = chatId,
|
chatId, videoNote.fileId, videoNote.thumbnail ?.fileId, videoNote.duration, videoNote.width, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
videoNote = videoNote.fileId,
|
|
||||||
thumb = videoNote.thumbnail ?.fileId,
|
|
||||||
duration = videoNote.duration,
|
|
||||||
size = videoNote.width,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -92,25 +77,10 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VideoNoteContent> = sendVideoNote(
|
): ContentMessage<VideoNoteContent> = sendVideoNote(chat.id, videoNote, thumb, duration, size, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
videoNote = videoNote,
|
|
||||||
thumb = thumb,
|
|
||||||
duration = duration,
|
|
||||||
size = size,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -123,19 +93,7 @@ public suspend fun TelegramBot.sendVideoNote(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VideoNoteContent> = sendVideoNote(
|
): ContentMessage<VideoNoteContent> = sendVideoNote(chat.id, videoNote, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
videoNote = videoNote,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -27,25 +27,23 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VoiceContent> = execute(
|
): ContentMessage<VoiceContent> = execute(
|
||||||
SendVoice(
|
SendVoice(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
voice = voice,
|
voice,
|
||||||
text = text,
|
text,
|
||||||
parseMode = parseMode,
|
parseMode,
|
||||||
duration = duration,
|
duration,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -63,25 +61,10 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VoiceContent> = sendVoice(
|
): ContentMessage<VoiceContent> = sendVoice(chat.id, voice, text, parseMode, duration, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
voice = voice,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
duration = duration,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -96,24 +79,11 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VoiceContent> = sendVoice(
|
): ContentMessage<VoiceContent> = sendVoice(
|
||||||
chatId = chatId,
|
chatId, voice.fileId, text, parseMode, voice.duration, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
voice = voice.fileId,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
duration = voice.duration,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -129,24 +99,10 @@ public suspend fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VoiceContent> = sendVoice(
|
): ContentMessage<VoiceContent> = sendVoice(chat.id, voice, text, parseMode, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
voice = voice,
|
|
||||||
text = text,
|
|
||||||
parseMode = parseMode,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -162,7 +118,6 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -176,7 +131,6 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
duration = duration,
|
duration = duration,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -196,24 +150,10 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VoiceContent> = sendVoice(
|
): ContentMessage<VoiceContent> = sendVoice(chat.id, voice, entities, duration, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
voice = voice,
|
|
||||||
entities = entities,
|
|
||||||
duration = duration,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -227,23 +167,11 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VoiceContent> = sendVoice(
|
): ContentMessage<VoiceContent> = sendVoice(
|
||||||
chatId = chatId,
|
chatId, voice.fileId, entities, voice.duration, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup
|
||||||
voice = voice.fileId,
|
|
||||||
entities = entities,
|
|
||||||
duration = voice.duration,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
/**
|
/**
|
||||||
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
* @param replyMarkup Some of [KeyboardMarkup]. See [dev.inmo.tgbotapi.extensions.utils.types.buttons.replyKeyboard] or
|
||||||
@ -257,20 +185,7 @@ public suspend inline fun TelegramBot.sendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<VoiceContent> = sendVoice(
|
): ContentMessage<VoiceContent> = sendVoice(chat.id, voice, entities, threadId, businessConnectionId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chat.id,
|
|
||||||
voice = voice,
|
|
||||||
entities = entities,
|
|
||||||
threadId = threadId,
|
|
||||||
businessConnectionId = businessConnectionId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
@ -37,38 +37,11 @@ public suspend fun TelegramBot.sendInvoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
): ContentMessage<InvoiceContent> = execute(
|
): ContentMessage<InvoiceContent> = execute(
|
||||||
SendInvoice(
|
SendInvoice(chatId, title, description, payload, providerToken, currency, prices, maxTipAmount, suggestedTipAmounts ?.sorted(), startParameter, providerData, requireName, requirePhoneNumber, requireEmail, requireShippingAddress, shouldSendPhoneNumberToProvider, shouldSendEmailToProvider, priceDependOnShipAddress, threadId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
title = title,
|
|
||||||
description = description,
|
|
||||||
payload = payload,
|
|
||||||
providerToken = providerToken,
|
|
||||||
currency = currency,
|
|
||||||
prices = prices,
|
|
||||||
maxTipAmount = maxTipAmount,
|
|
||||||
suggestedTipAmounts = suggestedTipAmounts ?.sorted(),
|
|
||||||
startParameter = startParameter,
|
|
||||||
providerData = providerData,
|
|
||||||
requireName = requireName,
|
|
||||||
requirePhoneNumber = requirePhoneNumber,
|
|
||||||
requireEmail = requireEmail,
|
|
||||||
requireShippingAddress = requireShippingAddress,
|
|
||||||
shouldSendPhoneNumberToProvider = shouldSendPhoneNumberToProvider,
|
|
||||||
shouldSendEmailToProvider = shouldSendEmailToProvider,
|
|
||||||
priceDependOnShipAddress = priceDependOnShipAddress,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -96,37 +69,10 @@ public suspend fun TelegramBot.sendInvoice(
|
|||||||
priceDependOnShipAddress: Boolean = false,
|
priceDependOnShipAddress: Boolean = false,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
): ContentMessage<InvoiceContent> = sendInvoice(
|
): ContentMessage<InvoiceContent> = sendInvoice(user.id, title, description, payload, providerToken, currency, prices, maxTipAmount, suggestedTipAmounts, startParameter, providerData, requireName, requirePhoneNumber, requireEmail, requireShippingAddress, shouldSendPhoneNumberToProvider, shouldSendEmailToProvider, priceDependOnShipAddress, null, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = user.id,
|
|
||||||
title = title,
|
|
||||||
description = description,
|
|
||||||
payload = payload,
|
|
||||||
providerToken = providerToken,
|
|
||||||
currency = currency,
|
|
||||||
prices = prices,
|
|
||||||
maxTipAmount = maxTipAmount,
|
|
||||||
suggestedTipAmounts = suggestedTipAmounts,
|
|
||||||
startParameter = startParameter,
|
|
||||||
providerData = providerData,
|
|
||||||
requireName = requireName,
|
|
||||||
requirePhoneNumber = requirePhoneNumber,
|
|
||||||
requireEmail = requireEmail,
|
|
||||||
requireShippingAddress = requireShippingAddress,
|
|
||||||
shouldSendPhoneNumberToProvider = shouldSendPhoneNumberToProvider,
|
|
||||||
shouldSendEmailToProvider = shouldSendEmailToProvider,
|
|
||||||
priceDependOnShipAddress = priceDependOnShipAddress,
|
|
||||||
threadId = null,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -144,27 +90,11 @@ public suspend fun TelegramBot.sendInvoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
): ContentMessage<InvoiceContent> = execute(
|
): ContentMessage<InvoiceContent> = execute(
|
||||||
SendInvoice(
|
SendInvoice(chatId, title, description, payload, price, startParameter, providerData, threadId, disableNotification, protectContent, effectId, replyParameters, replyMarkup)
|
||||||
chatId = chatId,
|
|
||||||
title = title,
|
|
||||||
description = description,
|
|
||||||
payload = payload,
|
|
||||||
price = price,
|
|
||||||
startParameter = startParameter,
|
|
||||||
providerData = providerData,
|
|
||||||
threadId = threadId,
|
|
||||||
disableNotification = disableNotification,
|
|
||||||
protectContent = protectContent,
|
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
|
||||||
replyParameters = replyParameters,
|
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -181,7 +111,6 @@ public suspend fun TelegramBot.sendInvoice(
|
|||||||
providerData: String? = null,
|
providerData: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
@ -196,7 +125,6 @@ public suspend fun TelegramBot.sendInvoice(
|
|||||||
threadId = null,
|
threadId = null,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -29,31 +29,29 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
question = question,
|
question,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
explanation = explanation,
|
explanation,
|
||||||
questionParseMode = questionParseMode,
|
questionParseMode,
|
||||||
explanationParseMode = explanationParseMode,
|
explanationParseMode,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
openPeriod = openPeriod,
|
openPeriod,
|
||||||
closeDate = closeDate,
|
closeDate,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -72,30 +70,28 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionEntities = questionEntities,
|
questionEntities,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
explanation = explanation,
|
explanation,
|
||||||
explanationParseMode = explanationParseMode,
|
explanationParseMode,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
openPeriod = openPeriod,
|
openPeriod,
|
||||||
closeDate = closeDate,
|
closeDate,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -114,30 +110,28 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
question = question,
|
question,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
questionParseMode = questionParseMode,
|
questionParseMode,
|
||||||
explanationTextSources = explanationTextSources,
|
explanationTextSources,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
openPeriod = openPeriod,
|
openPeriod,
|
||||||
closeDate = closeDate,
|
closeDate,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -156,29 +150,27 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionEntities = questionEntities,
|
questionEntities,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
explanationTextSources = explanationTextSources,
|
explanationTextSources,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
openPeriod = openPeriod,
|
openPeriod,
|
||||||
closeDate = closeDate,
|
closeDate,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -197,30 +189,28 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
question = question,
|
question,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
closeInfo = closeInfo,
|
closeInfo,
|
||||||
explanation = explanation,
|
explanation,
|
||||||
questionParseMode = questionParseMode,
|
questionParseMode,
|
||||||
explanationParseMode = explanationParseMode,
|
explanationParseMode,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -238,29 +228,27 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionEntities = questionEntities,
|
questionEntities,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
closeInfo = closeInfo,
|
closeInfo,
|
||||||
explanation = explanation,
|
explanation,
|
||||||
explanationParseMode = explanationParseMode,
|
explanationParseMode,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -278,29 +266,27 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
question = question,
|
question,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
closeInfo = closeInfo,
|
closeInfo,
|
||||||
questionParseMode = questionParseMode,
|
questionParseMode,
|
||||||
explanationTextSources = explanationTextSources,
|
explanationTextSources,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -317,27 +303,25 @@ public suspend fun TelegramBot.sendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionEntities = questionEntities,
|
questionEntities,
|
||||||
options = options,
|
options,
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
closeInfo = closeInfo,
|
closeInfo,
|
||||||
explanationTextSources = explanationTextSources,
|
explanationTextSources,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -27,29 +27,27 @@ public suspend fun TelegramBot.sendRegularPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendRegularPoll(
|
SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
question = question,
|
question,
|
||||||
options = options,
|
options,
|
||||||
questionParseMode = questionParseMode,
|
questionParseMode,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
allowMultipleAnswers = allowMultipleAnswers,
|
allowMultipleAnswers,
|
||||||
openPeriod = openPeriod,
|
openPeriod,
|
||||||
closeDate = closeDate,
|
closeDate,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -66,28 +64,26 @@ public suspend fun TelegramBot.sendRegularPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendRegularPoll(
|
SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionEntities = questionEntities,
|
questionEntities,
|
||||||
options = options,
|
options,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
allowMultipleAnswers = allowMultipleAnswers,
|
allowMultipleAnswers,
|
||||||
openPeriod = openPeriod,
|
openPeriod,
|
||||||
closeDate = closeDate,
|
closeDate,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -104,28 +100,26 @@ public suspend fun TelegramBot.sendRegularPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendRegularPoll(
|
SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
question = question,
|
question,
|
||||||
options = options,
|
options,
|
||||||
closeInfo = closeInfo,
|
closeInfo,
|
||||||
questionParseMode = questionParseMode,
|
questionParseMode,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
allowMultipleAnswers = allowMultipleAnswers,
|
allowMultipleAnswers,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -141,26 +135,24 @@ public suspend fun TelegramBot.sendRegularPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): ContentMessage<PollContent> = execute(
|
): ContentMessage<PollContent> = execute(
|
||||||
SendRegularPoll(
|
SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionTextSources = questionEntities,
|
questionEntities,
|
||||||
options = options,
|
options,
|
||||||
closeInfo = closeInfo,
|
closeInfo,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
allowMultipleAnswers = allowMultipleAnswers,
|
allowMultipleAnswers,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -1512,11 +1512,11 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/Subconte
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/extensions/EnablePrivacyPolicyCommandKt {
|
public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/extensions/EnablePrivacyPolicyCommandKt {
|
||||||
public static final field DefaultKTgBotAPIPrivacyCommand Ljava/lang/String;
|
public static final field DefaultKTgBotAPIPrivacyCommand Ljava/lang/String;
|
||||||
public static final fun onCommandPrivacy (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun onCommandPrivacy (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun onCommandPrivacy (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/util/List;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun onCommandPrivacy (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/util/List;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static final fun onCommandPrivacy (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
public static final fun onCommandPrivacy (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
||||||
public static synthetic fun onCommandPrivacy$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun onCommandPrivacy$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/ParseMode;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun onCommandPrivacy$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/util/List;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun onCommandPrivacy$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ljava/util/List;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
public static synthetic fun onCommandPrivacy$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
public static synthetic fun onCommandPrivacy$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;ZLdev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function3;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,14 +50,12 @@ suspend fun <BC : BehaviourContext> BC.onCommandPrivacy(
|
|||||||
requireOnlyCommandInMessage: Boolean = true,
|
requireOnlyCommandInMessage: Boolean = true,
|
||||||
initialFilter: CommonMessageFilter<TextContent>? = CommonMessageFilterExcludeMediaGroups,
|
initialFilter: CommonMessageFilter<TextContent>? = CommonMessageFilterExcludeMediaGroups,
|
||||||
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, TextMessage, Update>? = null,
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, TextMessage, Update>? = null,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
markerFactory: MarkerFactory<in TextMessage, Any>? = null,
|
markerFactory: MarkerFactory<in TextMessage, Any>? = null,
|
||||||
) = onCommandPrivacy(requireOnlyCommandInMessage, initialFilter, subcontextUpdatesFilter, markerFactory) {
|
) = onCommandPrivacy(requireOnlyCommandInMessage, initialFilter, subcontextUpdatesFilter, markerFactory) {
|
||||||
execute(
|
execute(
|
||||||
SendTextMessage(
|
SendTextMessage(
|
||||||
it.chat.id,
|
it.chat.id,
|
||||||
textSources,
|
textSources,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = ReplyParameters(it.metaInfo)
|
replyParameters = ReplyParameters(it.metaInfo)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -75,7 +73,6 @@ suspend fun <BC : BehaviourContext> BC.onCommandPrivacy(
|
|||||||
requireOnlyCommandInMessage: Boolean = true,
|
requireOnlyCommandInMessage: Boolean = true,
|
||||||
initialFilter: CommonMessageFilter<TextContent>? = CommonMessageFilterExcludeMediaGroups,
|
initialFilter: CommonMessageFilter<TextContent>? = CommonMessageFilterExcludeMediaGroups,
|
||||||
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, TextMessage, Update>? = null,
|
subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, TextMessage, Update>? = null,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
markerFactory: MarkerFactory<in TextMessage, Any>? = null,
|
markerFactory: MarkerFactory<in TextMessage, Any>? = null,
|
||||||
) = onCommandPrivacy(requireOnlyCommandInMessage, initialFilter, subcontextUpdatesFilter, markerFactory) {
|
) = onCommandPrivacy(requireOnlyCommandInMessage, initialFilter, subcontextUpdatesFilter, markerFactory) {
|
||||||
execute(
|
execute(
|
||||||
@ -83,7 +80,6 @@ suspend fun <BC : BehaviourContext> BC.onCommandPrivacy(
|
|||||||
it.chat.id,
|
it.chat.id,
|
||||||
text,
|
text,
|
||||||
parseMode,
|
parseMode,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = ReplyParameters(it.metaInfo)
|
replyParameters = ReplyParameters(it.metaInfo)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@
|
|||||||
package dev.inmo.tgbotapi.abstracts.types
|
|
||||||
|
|
||||||
interface AllowPaidBroadcast {
|
|
||||||
val allowPaidBroadcast: Boolean
|
|
||||||
}
|
|
@ -24,74 +24,16 @@ import kotlinx.serialization.*
|
|||||||
|
|
||||||
const val OrderChangingDeprecationWarn = "The order of parameters in this factory will be changed soon. To avoid unexpected behaviour, swap message id and target chat id parameters"
|
const val OrderChangingDeprecationWarn = "The order of parameters in this factory will be changed soon. To avoid unexpected behaviour, swap message id and target chat id parameters"
|
||||||
|
|
||||||
//fun CopyMessage(
|
|
||||||
// toChatId: ChatIdentifier,
|
|
||||||
// fromChatId: ChatIdentifier,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// text: String? = null,
|
|
||||||
// parseMode: ParseMode? = null,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChatId.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//) = CopyMessage(
|
|
||||||
// toChatId = toChatId,
|
|
||||||
// fromChatId = fromChatId,
|
|
||||||
// messageId = messageId,
|
|
||||||
// text = text,
|
|
||||||
// parseMode = parseMode,
|
|
||||||
// rawEntities = null,
|
|
||||||
// showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
// threadId = threadId,
|
|
||||||
// disableNotification = disableNotification,
|
|
||||||
// protectContent = protectContent,
|
|
||||||
// allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
// replyParameters = replyParameters,
|
|
||||||
// replyMarkup = replyMarkup
|
|
||||||
//)
|
|
||||||
//
|
|
||||||
//fun CopyMessage(
|
|
||||||
// toChatId: ChatIdentifier,
|
|
||||||
// fromChatId: ChatIdentifier,
|
|
||||||
// messageId: MessageId,
|
|
||||||
// entities: List<TextSource>,
|
|
||||||
// showCaptionAboveMedia: Boolean = false,
|
|
||||||
// threadId: MessageThreadId? = toChatId.threadId,
|
|
||||||
// disableNotification: Boolean = false,
|
|
||||||
// protectContent: Boolean = false,
|
|
||||||
// allowPaidBroadcast: Boolean = false,
|
|
||||||
// replyParameters: ReplyParameters? = null,
|
|
||||||
// replyMarkup: KeyboardMarkup? = null
|
|
||||||
//) = CopyMessage(
|
|
||||||
// toChatId = toChatId,
|
|
||||||
// fromChatId = fromChatId,
|
|
||||||
// messageId = messageId,
|
|
||||||
// text = entities.makeString(),
|
|
||||||
// parseMode = null,
|
|
||||||
// rawEntities = entities.toRawMessageEntities(),
|
|
||||||
// showCaptionAboveMedia = showCaptionAboveMedia,
|
|
||||||
// threadId = threadId,
|
|
||||||
// disableNotification = disableNotification,
|
|
||||||
// protectContent = protectContent,
|
|
||||||
// allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
// replyParameters = replyParameters,
|
|
||||||
// replyMarkup = replyMarkup
|
|
||||||
//)
|
|
||||||
|
|
||||||
fun CopyMessage(
|
fun CopyMessage(
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
fromChatId: ChatIdentifier,
|
fromChatId: ChatIdentifier,
|
||||||
messageId: MessageId,
|
messageId: MessageId,
|
||||||
toChatId: ChatIdentifier,
|
|
||||||
text: String? = null,
|
text: String? = null,
|
||||||
parseMode: ParseMode? = null,
|
parseMode: ParseMode? = null,
|
||||||
showCaptionAboveMedia: Boolean = false,
|
showCaptionAboveMedia: Boolean = false,
|
||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = CopyMessage(
|
) = CopyMessage(
|
||||||
@ -105,21 +47,19 @@ fun CopyMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
|
|
||||||
fun CopyMessage(
|
fun CopyMessage(
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
fromChatId: ChatIdentifier,
|
fromChatId: ChatIdentifier,
|
||||||
messageId: MessageId,
|
messageId: MessageId,
|
||||||
toChatId: ChatIdentifier,
|
|
||||||
entities: List<TextSource>,
|
entities: List<TextSource>,
|
||||||
showCaptionAboveMedia: Boolean = false,
|
showCaptionAboveMedia: Boolean = false,
|
||||||
threadId: MessageThreadId? = toChatId.threadId,
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = CopyMessage(
|
) = CopyMessage(
|
||||||
@ -133,7 +73,59 @@ fun CopyMessage(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
replyParameters = replyParameters,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun CopyMessage(
|
||||||
|
fromChatId: ChatIdentifier,
|
||||||
|
messageId: MessageId,
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
|
text: String? = null,
|
||||||
|
parseMode: ParseMode? = null,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
) = CopyMessage(
|
||||||
|
toChatId = toChatId,
|
||||||
|
fromChatId = fromChatId,
|
||||||
|
messageId = messageId,
|
||||||
|
text = text,
|
||||||
|
parseMode = parseMode,
|
||||||
|
rawEntities = null,
|
||||||
|
showCaptionAboveMedia = showCaptionAboveMedia,
|
||||||
|
threadId = threadId,
|
||||||
|
disableNotification = disableNotification,
|
||||||
|
protectContent = protectContent,
|
||||||
|
replyParameters = replyParameters,
|
||||||
|
replyMarkup = replyMarkup
|
||||||
|
)
|
||||||
|
|
||||||
|
fun CopyMessage(
|
||||||
|
fromChatId: ChatIdentifier,
|
||||||
|
messageId: MessageId,
|
||||||
|
toChatId: ChatIdentifier,
|
||||||
|
entities: List<TextSource>,
|
||||||
|
showCaptionAboveMedia: Boolean = false,
|
||||||
|
threadId: MessageThreadId? = toChatId.threadId,
|
||||||
|
disableNotification: Boolean = false,
|
||||||
|
protectContent: Boolean = false,
|
||||||
|
replyParameters: ReplyParameters? = null,
|
||||||
|
replyMarkup: KeyboardMarkup? = null
|
||||||
|
) = CopyMessage(
|
||||||
|
toChatId = toChatId,
|
||||||
|
fromChatId = fromChatId,
|
||||||
|
messageId = messageId,
|
||||||
|
text = entities.makeString(),
|
||||||
|
parseMode = null,
|
||||||
|
rawEntities = entities.toRawMessageEntities(),
|
||||||
|
showCaptionAboveMedia = showCaptionAboveMedia,
|
||||||
|
threadId = threadId,
|
||||||
|
disableNotification = disableNotification,
|
||||||
|
protectContent = protectContent,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
@ -160,8 +152,6 @@ data class CopyMessage internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
override val replyParameters: ReplyParameters? = null,
|
override val replyParameters: ReplyParameters? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
package dev.inmo.tgbotapi.requests.send
|
package dev.inmo.tgbotapi.requests.send
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.abstracts.types.*
|
import dev.inmo.tgbotapi.abstracts.types.DisableNotification
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.MessagesAction
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.OptionallyBusinessConnectionRequest
|
||||||
|
import dev.inmo.tgbotapi.abstracts.types.ProtectContent
|
||||||
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
|
||||||
import dev.inmo.tgbotapi.requests.send.abstracts.OptionallyMessageThreadRequest
|
import dev.inmo.tgbotapi.requests.send.abstracts.OptionallyMessageThreadRequest
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
@ -47,7 +50,7 @@ data class CopyMessages (
|
|||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(removeCaptionField)
|
@SerialName(removeCaptionField)
|
||||||
private val removeCaption: Boolean = false,
|
private val removeCaption: Boolean = false
|
||||||
): SimpleRequest<List<MessageId>>,
|
): SimpleRequest<List<MessageId>>,
|
||||||
MessagesAction,
|
MessagesAction,
|
||||||
ProtectContent,
|
ProtectContent,
|
||||||
|
@ -32,8 +32,6 @@ data class SendContact(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -50,7 +48,6 @@ data class SendContact(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -63,7 +60,6 @@ data class SendContact(
|
|||||||
businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification,
|
disableNotification,
|
||||||
protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast,
|
|
||||||
effectId,
|
effectId,
|
||||||
replyParameters,
|
replyParameters,
|
||||||
replyMarkup
|
replyMarkup
|
||||||
@ -82,7 +78,6 @@ fun Contact.toRequest(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -93,7 +88,6 @@ fun Contact.toRequest(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -31,8 +31,6 @@ data class SendDice(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -33,22 +33,20 @@ fun SendLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = SendLocation.Static(
|
) = SendLocation.Static(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
latitude = latitude,
|
latitude,
|
||||||
longitude = longitude,
|
longitude,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
fun SendStaticLocation(
|
fun SendStaticLocation(
|
||||||
@ -59,7 +57,6 @@ fun SendStaticLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -71,7 +68,6 @@ fun SendStaticLocation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -89,7 +85,6 @@ fun SendLiveLocation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -105,7 +100,6 @@ fun SendLiveLocation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -151,8 +145,6 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -195,8 +187,6 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -243,8 +233,6 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
val disableNotification: Boolean = false,
|
val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
val protectContent: Boolean = false,
|
val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
val effectId: EffectId? = null,
|
val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -268,7 +256,6 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
businessConnectionId = surrogate.businessConnectionId,
|
businessConnectionId = surrogate.businessConnectionId,
|
||||||
disableNotification = surrogate.disableNotification,
|
disableNotification = surrogate.disableNotification,
|
||||||
protectContent = surrogate.protectContent,
|
protectContent = surrogate.protectContent,
|
||||||
allowPaidBroadcast = surrogate.allowPaidBroadcast,
|
|
||||||
effectId = surrogate.effectId,
|
effectId = surrogate.effectId,
|
||||||
replyParameters = surrogate.replyParameters,
|
replyParameters = surrogate.replyParameters,
|
||||||
replyMarkup = surrogate.replyMarkup
|
replyMarkup = surrogate.replyMarkup
|
||||||
@ -285,7 +272,6 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
businessConnectionId = surrogate.businessConnectionId,
|
businessConnectionId = surrogate.businessConnectionId,
|
||||||
disableNotification = surrogate.disableNotification,
|
disableNotification = surrogate.disableNotification,
|
||||||
protectContent = surrogate.protectContent,
|
protectContent = surrogate.protectContent,
|
||||||
allowPaidBroadcast = surrogate.allowPaidBroadcast,
|
|
||||||
effectId = surrogate.effectId,
|
effectId = surrogate.effectId,
|
||||||
replyParameters = surrogate.replyParameters,
|
replyParameters = surrogate.replyParameters,
|
||||||
replyMarkup = surrogate.replyMarkup
|
replyMarkup = surrogate.replyMarkup
|
||||||
@ -307,7 +293,6 @@ sealed interface SendLocation<T : LocationContent> : SendContentMessageRequest<C
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -30,24 +30,22 @@ fun SendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = SendTextMessage(
|
) = SendTextMessage(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
text = text,
|
text,
|
||||||
parseMode = parseMode,
|
parseMode,
|
||||||
rawEntities = null,
|
null,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
linkPreviewOptions,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
fun SendTextMessage(
|
fun SendTextMessage(
|
||||||
@ -58,24 +56,22 @@ fun SendTextMessage(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = SendTextMessage(
|
) = SendTextMessage(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
text = entities.makeString(),
|
entities.makeString(),
|
||||||
parseMode = null,
|
null,
|
||||||
rawEntities = entities.toRawMessageEntities(),
|
entities.toRawMessageEntities(),
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
linkPreviewOptions = linkPreviewOptions,
|
linkPreviewOptions,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
@ -98,8 +94,6 @@ data class SendTextMessage internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -41,8 +41,6 @@ data class SendVenue(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -61,7 +59,6 @@ data class SendVenue(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -79,7 +76,6 @@ data class SendVenue(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -98,19 +94,17 @@ fun Venue.toRequest(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): SendVenue = SendVenue(
|
): SendVenue = SendVenue(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
venue = this,
|
this,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
effectId,
|
||||||
effectId = effectId,
|
replyParameters,
|
||||||
replyParameters = replyParameters,
|
replyMarkup
|
||||||
replyMarkup = replyMarkup
|
|
||||||
)
|
)
|
||||||
|
@ -6,5 +6,4 @@ interface SendMessageRequest<T: Any> : SendChatMessageRequest<T>,
|
|||||||
WithReplyParameters,
|
WithReplyParameters,
|
||||||
DisableNotification,
|
DisableNotification,
|
||||||
ProtectContent,
|
ProtectContent,
|
||||||
AllowPaidBroadcast,
|
|
||||||
OptionallyMessageThreadRequest
|
OptionallyMessageThreadRequest
|
||||||
|
@ -28,8 +28,6 @@ data class SendGame (
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -36,7 +36,6 @@ fun SendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -60,7 +59,6 @@ fun SendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -90,7 +88,6 @@ fun SendAnimation(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -114,7 +111,6 @@ fun SendAnimation(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -165,8 +161,6 @@ data class SendAnimationData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -35,7 +35,6 @@ fun SendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -57,7 +56,6 @@ fun SendAudio(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -85,7 +83,6 @@ fun SendAudio(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -107,7 +104,6 @@ fun SendAudio(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -154,8 +150,6 @@ data class SendAudioData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -40,7 +40,6 @@ fun SendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
@ -60,7 +59,6 @@ fun SendDocument(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup,
|
replyMarkup = replyMarkup,
|
||||||
@ -95,7 +93,6 @@ fun SendDocument(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
@ -115,7 +112,6 @@ fun SendDocument(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup,
|
replyMarkup = replyMarkup,
|
||||||
@ -166,8 +162,6 @@ data class SendDocumentData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -36,7 +36,6 @@ fun <T : MediaGroupPartContent> SendMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
): Request<ContentMessage<MediaGroupContent<T>>> {
|
): Request<ContentMessage<MediaGroupContent<T>>> {
|
||||||
@ -62,7 +61,6 @@ fun <T : MediaGroupPartContent> SendMediaGroup(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters
|
replyParameters = replyParameters
|
||||||
)
|
)
|
||||||
@ -90,7 +88,6 @@ inline fun SendPlaylist(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
) = SendMediaGroup<AudioContent>(
|
) = SendMediaGroup<AudioContent>(
|
||||||
@ -100,7 +97,6 @@ inline fun SendPlaylist(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters
|
replyParameters = replyParameters
|
||||||
)
|
)
|
||||||
@ -118,7 +114,6 @@ inline fun SendDocumentsGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null
|
replyParameters: ReplyParameters? = null
|
||||||
) = SendMediaGroup<DocumentContent>(
|
) = SendMediaGroup<DocumentContent>(
|
||||||
@ -128,7 +123,6 @@ inline fun SendDocumentsGroup(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters
|
replyParameters = replyParameters
|
||||||
)
|
)
|
||||||
@ -147,7 +141,6 @@ inline fun SendVisualMediaGroup(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
) = SendMediaGroup<VisualMediaGroupPartContent>(
|
) = SendMediaGroup<VisualMediaGroupPartContent>(
|
||||||
@ -157,7 +150,6 @@ inline fun SendVisualMediaGroup(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters
|
replyParameters = replyParameters
|
||||||
)
|
)
|
||||||
@ -190,8 +182,6 @@ data class SendMediaGroupData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -34,7 +34,6 @@ fun SendPaidMedia(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): Request<ContentMessage<PaidMediaInfoContent>> {
|
): Request<ContentMessage<PaidMediaInfoContent>> {
|
||||||
@ -51,7 +50,6 @@ fun SendPaidMedia(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
@ -88,7 +86,6 @@ fun SendPaidMedia(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
): Request<ContentMessage<PaidMediaInfoContent>> {
|
): Request<ContentMessage<PaidMediaInfoContent>> {
|
||||||
@ -105,7 +102,6 @@ fun SendPaidMedia(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
@ -160,8 +156,6 @@ data class SendPaidMediaData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
override val replyParameters: ReplyParameters? = null,
|
override val replyParameters: ReplyParameters? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
|
@ -31,7 +31,6 @@ fun SendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -48,7 +47,6 @@ fun SendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -73,7 +71,6 @@ fun SendPhoto(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -90,7 +87,6 @@ fun SendPhoto(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -133,8 +129,6 @@ data class SendPhotoData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -21,7 +21,6 @@ fun SendSticker(
|
|||||||
emoji: String? = null,
|
emoji: String? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -33,7 +32,6 @@ fun SendSticker(
|
|||||||
emoji = emoji,
|
emoji = emoji,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -66,8 +64,6 @@ data class SendStickerByFileId internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -37,7 +37,6 @@ fun SendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -62,7 +61,6 @@ fun SendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -93,7 +91,6 @@ fun SendVideo(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -118,7 +115,6 @@ fun SendVideo(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -171,8 +167,6 @@ data class SendVideoData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -23,7 +23,6 @@ fun SendVideoNote(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -41,7 +40,6 @@ fun SendVideoNote(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -80,8 +78,6 @@ data class SendVideoNoteData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -31,7 +31,6 @@ fun SendVoice(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -49,7 +48,6 @@ fun SendVoice(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -74,7 +72,6 @@ fun SendVoice(
|
|||||||
duration: Long? = null,
|
duration: Long? = null,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -92,7 +89,6 @@ fun SendVoice(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -133,8 +129,6 @@ data class SendVoiceData internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
|
@ -67,8 +67,6 @@ data class SendInvoice(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -113,7 +111,6 @@ data class SendInvoice(
|
|||||||
threadId: MessageThreadId? = chatId.threadId,
|
threadId: MessageThreadId? = chatId.threadId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: InlineKeyboardMarkup? = null
|
replyMarkup: InlineKeyboardMarkup? = null
|
||||||
@ -130,7 +127,6 @@ data class SendInvoice(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -52,7 +52,6 @@ fun SendPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = SendRegularPoll(
|
) = SendRegularPoll(
|
||||||
@ -65,7 +64,6 @@ fun SendPoll(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -81,19 +79,17 @@ fun SendPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = SendRegularPoll(
|
) = SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionEntities = textSources,
|
textSources,
|
||||||
options = options,
|
options,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -109,80 +105,75 @@ fun Poll.createRequest(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
) = when (this) {
|
) = when (this) {
|
||||||
is RegularPoll -> SendRegularPoll(
|
is RegularPoll -> SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionTextSources = textSources,
|
textSources,
|
||||||
options = options.map { it.asInput() },
|
options.map { it.asInput() },
|
||||||
closeInfo = scheduledCloseInfo,
|
scheduledCloseInfo,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
allowMultipleAnswers = allowMultipleAnswers,
|
allowMultipleAnswers,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup
|
||||||
)
|
)
|
||||||
is QuizPoll -> correctOptionId ?.let { correctOptionId ->
|
is QuizPoll -> correctOptionId ?.let { correctOptionId ->
|
||||||
SendQuizPoll(
|
SendQuizPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionEntities = textSources,
|
textSources,
|
||||||
options = options.map { it.asInput() },
|
options.map { it.asInput() },
|
||||||
correctOptionId = correctOptionId,
|
correctOptionId,
|
||||||
closeInfo = scheduledCloseInfo,
|
scheduledCloseInfo,
|
||||||
explanationTextSources = explanationTextSources,
|
explanationTextSources,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup
|
||||||
)
|
)
|
||||||
} ?: SendRegularPoll(
|
} ?: SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionTextSources = textSources,
|
textSources,
|
||||||
options = options.map { it.asInput() },
|
options.map { it.asInput() },
|
||||||
closeInfo = scheduledCloseInfo,
|
scheduledCloseInfo,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
allowMultipleAnswers = false,
|
false,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup
|
||||||
)
|
)
|
||||||
is UnknownPollType -> SendRegularPoll(
|
is UnknownPollType -> SendRegularPoll(
|
||||||
chatId = chatId,
|
chatId,
|
||||||
questionTextSources = textSources,
|
textSources,
|
||||||
options = options.map { it.asInput() },
|
options.map { it.asInput() },
|
||||||
closeInfo = scheduledCloseInfo,
|
scheduledCloseInfo,
|
||||||
isAnonymous = isAnonymous,
|
isAnonymous,
|
||||||
isClosed = isClosed,
|
isClosed,
|
||||||
allowMultipleAnswers = false,
|
false,
|
||||||
threadId = threadId,
|
threadId,
|
||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +54,6 @@ class SendQuizPoll internal constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -88,7 +86,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -110,7 +107,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -131,7 +127,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -153,7 +148,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -174,7 +168,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -196,7 +189,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -216,7 +208,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -238,7 +229,6 @@ class SendQuizPoll internal constructor(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -274,7 +264,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -294,7 +283,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -314,7 +302,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -333,7 +320,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -353,7 +339,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -372,7 +357,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -391,7 +375,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -409,7 +392,6 @@ fun SendQuizPoll(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -49,8 +49,6 @@ class SendRegularPoll private constructor(
|
|||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(protectContentField)
|
@SerialName(protectContentField)
|
||||||
override val protectContent: Boolean = false,
|
override val protectContent: Boolean = false,
|
||||||
@SerialName(allowPaidBroadcastField)
|
|
||||||
override val allowPaidBroadcast: Boolean = false,
|
|
||||||
@SerialName(messageEffectIdField)
|
@SerialName(messageEffectIdField)
|
||||||
override val effectId: EffectId? = null,
|
override val effectId: EffectId? = null,
|
||||||
@SerialName(replyParametersField)
|
@SerialName(replyParametersField)
|
||||||
@ -74,7 +72,6 @@ class SendRegularPoll private constructor(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -93,7 +90,6 @@ class SendRegularPoll private constructor(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -113,7 +109,6 @@ class SendRegularPoll private constructor(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -132,7 +127,6 @@ class SendRegularPoll private constructor(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -161,7 +155,6 @@ fun SendRegularPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -179,7 +172,6 @@ fun SendRegularPoll(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -197,7 +189,6 @@ fun SendRegularPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -214,7 +205,6 @@ fun SendRegularPoll(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -231,7 +221,6 @@ fun SendRegularPoll(
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null,
|
replyMarkup: KeyboardMarkup? = null,
|
||||||
@ -248,7 +237,6 @@ fun SendRegularPoll(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -133,7 +133,6 @@ const val disableWebPagePreviewField = "disable_web_page_preview"
|
|||||||
const val linkPreviewOptionsField = "link_preview_options"
|
const val linkPreviewOptionsField = "link_preview_options"
|
||||||
const val disableNotificationField = "disable_notification"
|
const val disableNotificationField = "disable_notification"
|
||||||
const val protectContentField = "protect_content"
|
const val protectContentField = "protect_content"
|
||||||
const val allowPaidBroadcastField = "allow_paid_broadcast"
|
|
||||||
const val messageEffectIdField = "message_effect_id"
|
const val messageEffectIdField = "message_effect_id"
|
||||||
const val removeCaptionField = "remove_caption"
|
const val removeCaptionField = "remove_caption"
|
||||||
const val replyToMessageIdField = "reply_to_message_id"
|
const val replyToMessageIdField = "reply_to_message_id"
|
||||||
@ -471,7 +470,6 @@ const val valueField = "value"
|
|||||||
const val creatorField = "creator"
|
const val creatorField = "creator"
|
||||||
const val subscriptionPeriodField = "subscription_period"
|
const val subscriptionPeriodField = "subscription_period"
|
||||||
const val subscriptionPriceField = "subscription_price"
|
const val subscriptionPriceField = "subscription_price"
|
||||||
const val copyTextField = "copy_text"
|
|
||||||
|
|
||||||
const val pointField = "point"
|
const val pointField = "point"
|
||||||
const val xShiftField = "x_shift"
|
const val xShiftField = "x_shift"
|
||||||
@ -503,7 +501,6 @@ const val currencyField = "currency"
|
|||||||
const val startParameterField = "start_parameter"
|
const val startParameterField = "start_parameter"
|
||||||
const val totalAmountField = "total_amount"
|
const val totalAmountField = "total_amount"
|
||||||
const val invoicePayloadField = "invoice_payload"
|
const val invoicePayloadField = "invoice_payload"
|
||||||
const val requestCountField = "request_count"
|
|
||||||
const val paidMediaPayloadField = "paid_media_payload"
|
const val paidMediaPayloadField = "paid_media_payload"
|
||||||
const val shippingOptionIdField = "shipping_option_id"
|
const val shippingOptionIdField = "shipping_option_id"
|
||||||
const val shippingQueryIdField = "shipping_query_id"
|
const val shippingQueryIdField = "shipping_query_id"
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
package dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons
|
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
|
||||||
|
|
||||||
@Serializable
|
|
||||||
data class CopyTextButtonData(
|
|
||||||
val text: String,
|
|
||||||
)
|
|
@ -141,16 +141,6 @@ data class URLInlineKeyboardButton(
|
|||||||
val url: String
|
val url: String
|
||||||
) : InlineKeyboardButton
|
) : InlineKeyboardButton
|
||||||
|
|
||||||
/**
|
|
||||||
* `copy_text` button
|
|
||||||
*/
|
|
||||||
@Serializable
|
|
||||||
data class CopyTextButton(
|
|
||||||
override val text: String,
|
|
||||||
@SerialName(copyTextField)
|
|
||||||
val data: CopyTextButtonData
|
|
||||||
) : InlineKeyboardButton
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Button with [WebAppInfo]. Web App will be launched when the button is pressed. The Web App will be able to send a
|
* Button with [WebAppInfo]. Web App will be launched when the button is pressed. The Web App will be able to send a
|
||||||
* `web_app_data` service message. **Available in private chats only**.
|
* `web_app_data` service message. **Available in private chats only**.
|
||||||
|
@ -29,7 +29,6 @@ object InlineKeyboardButtonSerializer : KSerializer<InlineKeyboardButton> {
|
|||||||
json[switchInlineQueryCurrentChatField] != null -> SwitchInlineQueryCurrentChatInlineKeyboardButton.serializer()
|
json[switchInlineQueryCurrentChatField] != null -> SwitchInlineQueryCurrentChatInlineKeyboardButton.serializer()
|
||||||
json[switchInlineQueryChosenChatField] != null -> SwitchInlineQueryChosenChatInlineKeyboardButton.serializer()
|
json[switchInlineQueryChosenChatField] != null -> SwitchInlineQueryChosenChatInlineKeyboardButton.serializer()
|
||||||
json[urlField] != null -> URLInlineKeyboardButton.serializer()
|
json[urlField] != null -> URLInlineKeyboardButton.serializer()
|
||||||
json[copyTextField] != null -> CopyTextButton.serializer()
|
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -51,7 +50,6 @@ object InlineKeyboardButtonSerializer : KSerializer<InlineKeyboardButton> {
|
|||||||
is SwitchInlineQueryCurrentChatInlineKeyboardButton -> SwitchInlineQueryCurrentChatInlineKeyboardButton.serializer().serialize(encoder, value)
|
is SwitchInlineQueryCurrentChatInlineKeyboardButton -> SwitchInlineQueryCurrentChatInlineKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is SwitchInlineQueryChosenChatInlineKeyboardButton -> SwitchInlineQueryChosenChatInlineKeyboardButton.serializer().serialize(encoder, value)
|
is SwitchInlineQueryChosenChatInlineKeyboardButton -> SwitchInlineQueryChosenChatInlineKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is URLInlineKeyboardButton -> URLInlineKeyboardButton.serializer().serialize(encoder, value)
|
is URLInlineKeyboardButton -> URLInlineKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is CopyTextButton -> CopyTextButton.serializer().serialize(encoder, value)
|
|
||||||
is WebAppInlineKeyboardButton -> WebAppInlineKeyboardButton.serializer().serialize(encoder, value)
|
is WebAppInlineKeyboardButton -> WebAppInlineKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is CallbackGameInlineKeyboardButton -> CallbackGameInlineKeyboardButton.serializer().serialize(encoder, value)
|
is CallbackGameInlineKeyboardButton -> CallbackGameInlineKeyboardButton.serializer().serialize(encoder, value)
|
||||||
is UnknownInlineKeyboardButton -> JsonElement.serializer().serialize(encoder, value.rawData)
|
is UnknownInlineKeyboardButton -> JsonElement.serializer().serialize(encoder, value.rawData)
|
||||||
|
@ -36,22 +36,6 @@ inline fun loginInlineButton(
|
|||||||
loginUrl: LoginURL
|
loginUrl: LoginURL
|
||||||
) = LoginURLInlineKeyboardButton(text, loginUrl)
|
) = LoginURLInlineKeyboardButton(text, loginUrl)
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates [CopyTextButton]
|
|
||||||
*/
|
|
||||||
inline fun copyTextButton(
|
|
||||||
text: String,
|
|
||||||
data: CopyTextButtonData
|
|
||||||
) = CopyTextButton(text, data)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates [CopyTextButton]
|
|
||||||
*/
|
|
||||||
inline fun copyTextButton(
|
|
||||||
text: String,
|
|
||||||
data: String
|
|
||||||
) = copyTextButton(text, CopyTextButtonData(data))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
* Creates [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
|||||||
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
|
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
|
||||||
import dev.inmo.tgbotapi.types.files.TelegramMediaFile
|
import dev.inmo.tgbotapi.types.files.TelegramMediaFile
|
||||||
import dev.inmo.tgbotapi.types.media.TelegramFreeMedia
|
import dev.inmo.tgbotapi.types.media.TelegramFreeMedia
|
||||||
|
import dev.inmo.tgbotapi.types.media.TelegramMedia
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.*
|
import dev.inmo.tgbotapi.types.message.abstracts.*
|
||||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
@ -153,7 +154,6 @@ sealed interface ResendableContent {
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyParameters: ReplyParameters? = null,
|
replyParameters: ReplyParameters? = null,
|
||||||
replyMarkup: KeyboardMarkup? = null
|
replyMarkup: KeyboardMarkup? = null
|
||||||
@ -165,7 +165,6 @@ sealed interface ResendableContent {
|
|||||||
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
|
||||||
disableNotification: Boolean = false,
|
disableNotification: Boolean = false,
|
||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
allowPaidBroadcast: Boolean = false,
|
|
||||||
effectId: EffectId? = null,
|
effectId: EffectId? = null,
|
||||||
replyToMessageId: MessageId?,
|
replyToMessageId: MessageId?,
|
||||||
allowSendingWithoutReply: Boolean? = null,
|
allowSendingWithoutReply: Boolean? = null,
|
||||||
@ -176,7 +175,6 @@ sealed interface ResendableContent {
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyToMessageId ?.let {
|
replyParameters = replyToMessageId ?.let {
|
||||||
ReplyParameters(
|
ReplyParameters(
|
||||||
|
@ -28,7 +28,6 @@ data class AnimationContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -46,7 +45,6 @@ data class AnimationContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -25,7 +25,6 @@ data class AudioContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -41,7 +40,6 @@ data class AudioContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -18,7 +18,6 @@ data class ContactContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -29,7 +28,6 @@ data class ContactContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -19,7 +19,6 @@ data class DiceContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -30,7 +29,6 @@ data class DiceContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -28,7 +28,6 @@ data class DocumentContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -41,7 +40,6 @@ data class DocumentContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -19,7 +19,6 @@ data class GameContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -30,7 +29,6 @@ data class GameContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -22,7 +22,6 @@ data class GiveawayContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
|
@ -19,7 +19,6 @@ data class GiveawayPublicResultsContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
|
@ -18,7 +18,6 @@ data class InvoiceContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
|
@ -3,6 +3,7 @@ package dev.inmo.tgbotapi.types.message.content
|
|||||||
import dev.inmo.tgbotapi.requests.abstracts.Request
|
import dev.inmo.tgbotapi.requests.abstracts.Request
|
||||||
import dev.inmo.tgbotapi.requests.send.SendLiveLocation
|
import dev.inmo.tgbotapi.requests.send.SendLiveLocation
|
||||||
import dev.inmo.tgbotapi.requests.send.SendStaticLocation
|
import dev.inmo.tgbotapi.requests.send.SendStaticLocation
|
||||||
|
import dev.inmo.tgbotapi.requests.send.abstracts.SendMessageRequest
|
||||||
import dev.inmo.tgbotapi.types.*
|
import dev.inmo.tgbotapi.types.*
|
||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
|
||||||
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
|
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
|
||||||
@ -100,7 +101,6 @@ data class LiveLocationContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -116,7 +116,6 @@ data class LiveLocationContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
@ -137,7 +136,6 @@ data class StaticLocationContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -149,7 +147,6 @@ data class StaticLocationContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -37,7 +37,6 @@ data class MediaGroupContent<T : MediaGroupPartContent>(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -48,7 +47,6 @@ data class MediaGroupContent<T : MediaGroupPartContent>(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
)
|
)
|
||||||
|
@ -29,7 +29,6 @@ data class PaidMediaInfoContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -52,7 +51,6 @@ data class PaidMediaInfoContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
)
|
)
|
||||||
|
@ -30,7 +30,6 @@ data class PhotoContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -44,7 +43,6 @@ data class PhotoContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -19,7 +19,6 @@ data class PollContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -29,7 +28,6 @@ data class PollContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -20,7 +20,6 @@ data class StickerContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -31,7 +30,6 @@ data class StickerContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -22,7 +22,6 @@ data class StoryContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
|
@ -23,7 +23,6 @@ data class TextContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -35,7 +34,6 @@ data class TextContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -19,7 +19,6 @@ data class VenueContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -30,7 +29,6 @@ data class VenueContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -27,7 +27,6 @@ data class VideoContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -46,7 +45,6 @@ data class VideoContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -20,7 +20,6 @@ data class VideoNoteContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -34,7 +33,6 @@ data class VideoNoteContent(
|
|||||||
businessConnectionId = businessConnectionId,
|
businessConnectionId = businessConnectionId,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -24,7 +24,6 @@ data class VoiceContent(
|
|||||||
businessConnectionId: BusinessConnectionId?,
|
businessConnectionId: BusinessConnectionId?,
|
||||||
disableNotification: Boolean,
|
disableNotification: Boolean,
|
||||||
protectContent: Boolean,
|
protectContent: Boolean,
|
||||||
allowPaidBroadcast: Boolean,
|
|
||||||
effectId: EffectId?,
|
effectId: EffectId?,
|
||||||
replyParameters: ReplyParameters?,
|
replyParameters: ReplyParameters?,
|
||||||
replyMarkup: KeyboardMarkup?
|
replyMarkup: KeyboardMarkup?
|
||||||
@ -37,7 +36,6 @@ data class VoiceContent(
|
|||||||
duration = media.duration,
|
duration = media.duration,
|
||||||
disableNotification = disableNotification,
|
disableNotification = disableNotification,
|
||||||
protectContent = protectContent,
|
protectContent = protectContent,
|
||||||
allowPaidBroadcast = allowPaidBroadcast,
|
|
||||||
effectId = effectId,
|
effectId = effectId,
|
||||||
replyParameters = replyParameters,
|
replyParameters = replyParameters,
|
||||||
replyMarkup = replyMarkup
|
replyMarkup = replyMarkup
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.inmo.tgbotapi.types.message.textsources
|
package dev.inmo.tgbotapi.types.message.textsources
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.Username
|
|
||||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||||
import dev.inmo.tgbotapi.utils.extensions.makeString
|
import dev.inmo.tgbotapi.utils.extensions.makeString
|
||||||
import dev.inmo.tgbotapi.utils.internal.*
|
import dev.inmo.tgbotapi.utils.internal.*
|
||||||
@ -14,12 +13,6 @@ data class CashTagTextSource @RiskFeature(DirectInvocationOfTextSourceConstructo
|
|||||||
override val source: String,
|
override val source: String,
|
||||||
override val subsources: TextSourcesList
|
override val subsources: TextSourcesList
|
||||||
) : MultilevelTextSource {
|
) : MultilevelTextSource {
|
||||||
val username: Username? by lazy {
|
|
||||||
val potentialUsername = source.dropWhile { it != '@' }
|
|
||||||
if (potentialUsername.isEmpty()) return@lazy null
|
|
||||||
|
|
||||||
Username(potentialUsername)
|
|
||||||
}
|
|
||||||
override val markdown: String by lazy { source.cashTagMarkdown() }
|
override val markdown: String by lazy { source.cashTagMarkdown() }
|
||||||
override val markdownV2: String by lazy { cashTagMarkdownV2() }
|
override val markdownV2: String by lazy { cashTagMarkdownV2() }
|
||||||
override val html: String by lazy { cashTagHTML() }
|
override val html: String by lazy { cashTagHTML() }
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.inmo.tgbotapi.types.message.textsources
|
package dev.inmo.tgbotapi.types.message.textsources
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.Username
|
|
||||||
import dev.inmo.tgbotapi.utils.RiskFeature
|
import dev.inmo.tgbotapi.utils.RiskFeature
|
||||||
import dev.inmo.tgbotapi.utils.extensions.makeString
|
import dev.inmo.tgbotapi.utils.extensions.makeString
|
||||||
import dev.inmo.tgbotapi.utils.internal.*
|
import dev.inmo.tgbotapi.utils.internal.*
|
||||||
@ -14,13 +13,6 @@ data class HashTagTextSource @RiskFeature(DirectInvocationOfTextSourceConstructo
|
|||||||
override val source: String,
|
override val source: String,
|
||||||
override val subsources: TextSourcesList
|
override val subsources: TextSourcesList
|
||||||
) : MultilevelTextSource {
|
) : MultilevelTextSource {
|
||||||
val username: Username? by lazy {
|
|
||||||
val potentialUsername = source.dropWhile { it != '@' }
|
|
||||||
if (potentialUsername.isEmpty()) return@lazy null
|
|
||||||
|
|
||||||
Username(potentialUsername)
|
|
||||||
}
|
|
||||||
|
|
||||||
override val markdown: String by lazy { source.hashTagMarkdown() }
|
override val markdown: String by lazy { source.hashTagMarkdown() }
|
||||||
override val markdownV2: String by lazy { hashTagMarkdownV2() }
|
override val markdownV2: String by lazy { hashTagMarkdownV2() }
|
||||||
override val html: String by lazy { hashTagHTML() }
|
override val html: String by lazy { hashTagHTML() }
|
||||||
|
@ -55,22 +55,6 @@ sealed interface TransactionPartner {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Represents [TransactionPartnerTelegramApi](https://core.telegram.org/bots/api#transactionpartnertelegramapi)
|
|
||||||
*/
|
|
||||||
@Serializable(TransactionPartner.Companion::class)
|
|
||||||
data class TelegramAPI(
|
|
||||||
@SerialName(requestCountField)
|
|
||||||
val requestCount: Int
|
|
||||||
) : TransactionPartner {
|
|
||||||
@EncodeDefault
|
|
||||||
override val type: String = Companion.type
|
|
||||||
|
|
||||||
companion object {
|
|
||||||
const val type: String = "telegram_api"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Serializable(TransactionPartner.Companion::class)
|
@Serializable(TransactionPartner.Companion::class)
|
||||||
data object Ads : TransactionPartner {
|
data object Ads : TransactionPartner {
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
@ -95,8 +79,7 @@ sealed interface TransactionPartner {
|
|||||||
val type: String,
|
val type: String,
|
||||||
val withdrawal_state: RevenueWithdrawalState? = null,
|
val withdrawal_state: RevenueWithdrawalState? = null,
|
||||||
val user: PreviewUser? = null,
|
val user: PreviewUser? = null,
|
||||||
val invoice_payload: InvoicePayload? = null,
|
val invoice_payload: InvoicePayload? = null
|
||||||
val request_count: Int? = null
|
|
||||||
)
|
)
|
||||||
|
|
||||||
override val descriptor: SerialDescriptor
|
override val descriptor: SerialDescriptor
|
||||||
@ -113,9 +96,6 @@ sealed interface TransactionPartner {
|
|||||||
User.type -> User(
|
User.type -> User(
|
||||||
data.user ?: return unknown,
|
data.user ?: return unknown,
|
||||||
)
|
)
|
||||||
TelegramAPI.type -> TelegramAPI(
|
|
||||||
data.request_count ?: return unknown,
|
|
||||||
)
|
|
||||||
Ads.type -> Ads
|
Ads.type -> Ads
|
||||||
Fragment.type -> Fragment(
|
Fragment.type -> Fragment(
|
||||||
data.withdrawal_state ?: return unknown,
|
data.withdrawal_state ?: return unknown,
|
||||||
@ -129,7 +109,6 @@ sealed interface TransactionPartner {
|
|||||||
Other -> Surrogate(value.type)
|
Other -> Surrogate(value.type)
|
||||||
Ads -> Surrogate(value.type)
|
Ads -> Surrogate(value.type)
|
||||||
is User -> Surrogate(value.type, user = value.user)
|
is User -> Surrogate(value.type, user = value.user)
|
||||||
is TelegramAPI -> Surrogate(value.type, request_count = value.requestCount)
|
|
||||||
is Fragment -> Surrogate(
|
is Fragment -> Surrogate(
|
||||||
value.type,
|
value.type,
|
||||||
value.withdrawalState
|
value.withdrawalState
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dev.inmo.tgbotapi.types.MessageEntity
|
package dev.inmo.tgbotapi.types.MessageEntity
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.types.Username
|
|
||||||
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
import dev.inmo.tgbotapi.types.message.RawMessageEntity
|
||||||
import dev.inmo.tgbotapi.types.message.asTextSources
|
import dev.inmo.tgbotapi.types.message.asTextSources
|
||||||
import dev.inmo.tgbotapi.types.message.textsources.*
|
import dev.inmo.tgbotapi.types.message.textsources.*
|
||||||
@ -9,14 +8,14 @@ import dev.inmo.tgbotapi.utils.extensions.makeSourceString
|
|||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
import kotlin.test.assertTrue
|
import kotlin.test.assertTrue
|
||||||
|
|
||||||
const val testText = "It (is?) is simple hello world with #tag@sample and @mention. Start of blockquote: Block quotation started\n" +
|
const val testText = "It (is?) is simple hello world with #tag and @mention. Start of blockquote: Block quotation started\n" +
|
||||||
"Block quotation continued\n" +
|
"Block quotation continued\n" +
|
||||||
"The last line of the block quotation\n" +
|
"The last line of the block quotation\n" +
|
||||||
". Start of expandable blockquote: Block quotation started\n" +
|
". Start of expandable blockquote: Block quotation started\n" +
|
||||||
"Block quotation continued\n" +
|
"Block quotation continued\n" +
|
||||||
"The last line of the block quotation"
|
"The last line of the block quotation"
|
||||||
const val formattedV2Text = "It \\(is?\\) *_is_ ~__simple__~* ||hello world|| with \\#tag@sample and @mention\\. Start of blockquote: >Block quotation started\n>Block quotation continued\n>The last line of the block quotation\n\\. Start of expandable blockquote: **>Block quotation started\n>Block quotation continued\n>The last line of the block quotation||"
|
const val formattedV2Text = "It \\(is?\\) *_is_ ~__simple__~* ||hello world|| with \\#tag and @mention\\. Start of blockquote: >Block quotation started\n>Block quotation continued\n>The last line of the block quotation\n\\. Start of expandable blockquote: **>Block quotation started\n>Block quotation continued\n>The last line of the block quotation||"
|
||||||
const val formattedHtmlText = "It (is?) <b><i>is</i> <s><u>simple</u></s></b> <span class=\"tg-spoiler\">hello world</span> with #tag@sample and @mention. Start of blockquote: <blockquote>Block quotation started\nBlock quotation continued\nThe last line of the block quotation</blockquote>\n. Start of expandable blockquote: <blockquote expandable>Block quotation started\nBlock quotation continued\nThe last line of the block quotation</blockquote>"
|
const val formattedHtmlText = "It (is?) <b><i>is</i> <s><u>simple</u></s></b> <span class=\"tg-spoiler\">hello world</span> with #tag and @mention. Start of blockquote: <blockquote>Block quotation started\nBlock quotation continued\nThe last line of the block quotation</blockquote>\n. Start of expandable blockquote: <blockquote expandable>Block quotation started\nBlock quotation continued\nThe last line of the block quotation</blockquote>"
|
||||||
internal val testTextEntities = listOf(
|
internal val testTextEntities = listOf(
|
||||||
RawMessageEntity(
|
RawMessageEntity(
|
||||||
"bold",
|
"bold",
|
||||||
@ -46,21 +45,21 @@ internal val testTextEntities = listOf(
|
|||||||
RawMessageEntity(
|
RawMessageEntity(
|
||||||
"hashtag",
|
"hashtag",
|
||||||
36,
|
36,
|
||||||
11
|
4
|
||||||
),
|
),
|
||||||
RawMessageEntity(
|
RawMessageEntity(
|
||||||
"mention",
|
"mention",
|
||||||
52,
|
45,
|
||||||
8
|
8
|
||||||
),
|
),
|
||||||
RawMessageEntity(
|
RawMessageEntity(
|
||||||
"blockquote",
|
"blockquote",
|
||||||
83,
|
76,
|
||||||
86
|
86
|
||||||
),
|
),
|
||||||
RawMessageEntity(
|
RawMessageEntity(
|
||||||
"expandable_blockquote",
|
"expandable_blockquote",
|
||||||
204,
|
197,
|
||||||
86
|
86
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -72,7 +71,6 @@ fun TextSourcesList.testTextSources() {
|
|||||||
assertTrue (get(3) is SpoilerTextSource)
|
assertTrue (get(3) is SpoilerTextSource)
|
||||||
assertTrue (get(4) is RegularTextSource)
|
assertTrue (get(4) is RegularTextSource)
|
||||||
assertTrue (get(5) is HashTagTextSource)
|
assertTrue (get(5) is HashTagTextSource)
|
||||||
assertEquals(Username("@sample"), (get(5) as HashTagTextSource).username)
|
|
||||||
assertTrue (get(6) is RegularTextSource)
|
assertTrue (get(6) is RegularTextSource)
|
||||||
assertTrue (get(7) is MentionTextSource)
|
assertTrue (get(7) is MentionTextSource)
|
||||||
assertTrue (get(8) is RegularTextSource)
|
assertTrue (get(8) is RegularTextSource)
|
||||||
|
@ -46,7 +46,7 @@ class StringFormattingTests {
|
|||||||
" " +
|
" " +
|
||||||
spoiler("hello world") +
|
spoiler("hello world") +
|
||||||
" with " +
|
" with " +
|
||||||
hashtag("tag@sample") +
|
hashtag("tag") +
|
||||||
" and " +
|
" and " +
|
||||||
mention("mention") +
|
mention("mention") +
|
||||||
". Start of blockquote: " +
|
". Start of blockquote: " +
|
||||||
|
@ -1261,8 +1261,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun contentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;
|
public static final fun contentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;
|
||||||
public static final fun contentOrNull (Ldev/inmo/tgbotapi/types/ReplyInfo;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content;
|
public static final fun contentOrNull (Ldev/inmo/tgbotapi/types/ReplyInfo;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content;
|
||||||
public static final fun contentOrThrow (Ldev/inmo/tgbotapi/types/ReplyInfo;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content;
|
public static final fun contentOrThrow (Ldev/inmo/tgbotapi/types/ReplyInfo;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content;
|
||||||
public static final fun copyTextButtonOrNull (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
|
||||||
public static final fun copyTextButtonOrThrow (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButton;
|
|
||||||
public static final fun createInvoiceLinkOrNull (Ldev/inmo/tgbotapi/abstracts/CommonSendInvoiceData;)Ldev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink;
|
public static final fun createInvoiceLinkOrNull (Ldev/inmo/tgbotapi/abstracts/CommonSendInvoiceData;)Ldev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink;
|
||||||
public static final fun createInvoiceLinkOrThrow (Ldev/inmo/tgbotapi/abstracts/CommonSendInvoiceData;)Ldev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink;
|
public static final fun createInvoiceLinkOrThrow (Ldev/inmo/tgbotapi/abstracts/CommonSendInvoiceData;)Ldev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink;
|
||||||
public static final fun createdOrNull (Ldev/inmo/tgbotapi/types/boosts/ChatBoostSource;)Ldev/inmo/tgbotapi/types/boosts/ChatBoostSource$Giveaway$Created;
|
public static final fun createdOrNull (Ldev/inmo/tgbotapi/types/boosts/ChatBoostSource;)Ldev/inmo/tgbotapi/types/boosts/ChatBoostSource$Giveaway$Created;
|
||||||
@ -1575,7 +1573,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifContactContent (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifContactContent (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifContent (Ldev/inmo/tgbotapi/types/ReplyInfo;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifContent (Ldev/inmo/tgbotapi/types/ReplyInfo;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifCopyTextButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
|
||||||
public static final fun ifCreateInvoiceLink (Ldev/inmo/tgbotapi/abstracts/CommonSendInvoiceData;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifCreateInvoiceLink (Ldev/inmo/tgbotapi/abstracts/CommonSendInvoiceData;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifCreated (Ldev/inmo/tgbotapi/types/boosts/ChatBoostSource;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifCreated (Ldev/inmo/tgbotapi/types/boosts/ChatBoostSource;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifCubeDiceAnimationType (Ldev/inmo/tgbotapi/types/dice/DiceAnimationType;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifCubeDiceAnimationType (Ldev/inmo/tgbotapi/types/dice/DiceAnimationType;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@ -1914,7 +1911,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifSwitchInlineQueryChosenChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSwitchInlineQueryChosenChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifSwitchInlineQueryCurrentChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSwitchInlineQueryCurrentChatInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifSwitchInlineQueryInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifSwitchInlineQueryInlineKeyboardButton (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifTelegramAPI (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
|
||||||
public static final fun ifTelegramFreeMedia (Ldev/inmo/tgbotapi/types/media/TelegramMedia;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifTelegramFreeMedia (Ldev/inmo/tgbotapi/types/media/TelegramMedia;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifTelegramMediaAnimation (Ldev/inmo/tgbotapi/types/media/TelegramMedia;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifTelegramMediaAnimation (Ldev/inmo/tgbotapi/types/media/TelegramMedia;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifTelegramMediaAudio (Ldev/inmo/tgbotapi/types/media/TelegramMedia;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifTelegramMediaAudio (Ldev/inmo/tgbotapi/types/media/TelegramMedia;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
@ -2475,8 +2471,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun switchInlineQueryCurrentChatInlineKeyboardButtonOrThrow (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton;
|
public static final fun switchInlineQueryCurrentChatInlineKeyboardButtonOrThrow (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryCurrentChatInlineKeyboardButton;
|
||||||
public static final fun switchInlineQueryInlineKeyboardButtonOrNull (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryInlineKeyboardButton;
|
public static final fun switchInlineQueryInlineKeyboardButtonOrNull (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryInlineKeyboardButton;
|
||||||
public static final fun switchInlineQueryInlineKeyboardButtonOrThrow (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryInlineKeyboardButton;
|
public static final fun switchInlineQueryInlineKeyboardButtonOrThrow (Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/InlineKeyboardButton;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/SwitchInlineQueryInlineKeyboardButton;
|
||||||
public static final fun telegramAPIOrNull (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner$TelegramAPI;
|
|
||||||
public static final fun telegramAPIOrThrow (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner$TelegramAPI;
|
|
||||||
public static final fun telegramFreeMediaOrNull (Ldev/inmo/tgbotapi/types/media/TelegramMedia;)Ldev/inmo/tgbotapi/types/media/TelegramFreeMedia;
|
public static final fun telegramFreeMediaOrNull (Ldev/inmo/tgbotapi/types/media/TelegramMedia;)Ldev/inmo/tgbotapi/types/media/TelegramFreeMedia;
|
||||||
public static final fun telegramFreeMediaOrThrow (Ldev/inmo/tgbotapi/types/media/TelegramMedia;)Ldev/inmo/tgbotapi/types/media/TelegramFreeMedia;
|
public static final fun telegramFreeMediaOrThrow (Ldev/inmo/tgbotapi/types/media/TelegramMedia;)Ldev/inmo/tgbotapi/types/media/TelegramFreeMedia;
|
||||||
public static final fun telegramMediaAnimationOrNull (Ldev/inmo/tgbotapi/types/media/TelegramMedia;)Ldev/inmo/tgbotapi/types/media/TelegramMediaAnimation;
|
public static final fun telegramMediaAnimationOrNull (Ldev/inmo/tgbotapi/types/media/TelegramMedia;)Ldev/inmo/tgbotapi/types/media/TelegramMediaAnimation;
|
||||||
@ -3376,8 +3370,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/shortcuts/RequestsExecutor
|
|||||||
|
|
||||||
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardBuilderKt {
|
public final class dev/inmo/tgbotapi/extensions/utils/types/buttons/InlineKeyboardBuilderKt {
|
||||||
public static final fun build (Ldev/inmo/tgbotapi/utils/MatrixBuilder;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun build (Ldev/inmo/tgbotapi/utils/MatrixBuilder;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun copyTextButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardButtons/CopyTextButtonData;)Z
|
|
||||||
public static final fun copyTextButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
|
||||||
public static final fun dataButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
public static final fun dataButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;Ljava/lang/String;)Z
|
||||||
public static final fun flatInlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public static final fun flatInlineKeyboard (Lkotlin/jvm/functions/Function1;)Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public static final fun gameButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
public static final fun gameButton (Ldev/inmo/tgbotapi/utils/RowBuilder;Ljava/lang/String;)Z
|
||||||
|
@ -101,7 +101,6 @@ import dev.inmo.tgbotapi.types.boosts.ChatBoostSource
|
|||||||
import dev.inmo.tgbotapi.types.business_connection.BusinessConnection
|
import dev.inmo.tgbotapi.types.business_connection.BusinessConnection
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackDataInlineKeyboardButton
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackDataInlineKeyboardButton
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackGameInlineKeyboardButton
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CallbackGameInlineKeyboardButton
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CopyTextButton
|
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.InlineKeyboardButton
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.InlineKeyboardButton
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.LoginURLInlineKeyboardButton
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.LoginURLInlineKeyboardButton
|
||||||
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.PayInlineKeyboardButton
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.PayInlineKeyboardButton
|
||||||
@ -2206,15 +2205,6 @@ public inline fun <T>
|
|||||||
InlineKeyboardButton.ifURLInlineKeyboardButton(block: (URLInlineKeyboardButton) -> T): T? =
|
InlineKeyboardButton.ifURLInlineKeyboardButton(block: (URLInlineKeyboardButton) -> T): T? =
|
||||||
uRLInlineKeyboardButtonOrNull() ?.let(block)
|
uRLInlineKeyboardButtonOrNull() ?.let(block)
|
||||||
|
|
||||||
public inline fun InlineKeyboardButton.copyTextButtonOrNull(): CopyTextButton? = this as?
|
|
||||||
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CopyTextButton
|
|
||||||
|
|
||||||
public inline fun InlineKeyboardButton.copyTextButtonOrThrow(): CopyTextButton = this as
|
|
||||||
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.CopyTextButton
|
|
||||||
|
|
||||||
public inline fun <T> InlineKeyboardButton.ifCopyTextButton(block: (CopyTextButton) -> T): T? =
|
|
||||||
copyTextButtonOrNull() ?.let(block)
|
|
||||||
|
|
||||||
public inline fun InlineKeyboardButton.webAppInlineKeyboardButtonOrNull():
|
public inline fun InlineKeyboardButton.webAppInlineKeyboardButtonOrNull():
|
||||||
WebAppInlineKeyboardButton? = this as?
|
WebAppInlineKeyboardButton? = this as?
|
||||||
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.WebAppInlineKeyboardButton
|
dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.WebAppInlineKeyboardButton
|
||||||
@ -5348,16 +5338,6 @@ public inline fun TransactionPartner.otherOrThrow(): TransactionPartner.Other =
|
|||||||
public inline fun <T> TransactionPartner.ifOther(block: (TransactionPartner.Other) -> T): T? =
|
public inline fun <T> TransactionPartner.ifOther(block: (TransactionPartner.Other) -> T): T? =
|
||||||
otherOrNull() ?.let(block)
|
otherOrNull() ?.let(block)
|
||||||
|
|
||||||
public inline fun TransactionPartner.telegramAPIOrNull(): TransactionPartner.TelegramAPI? = this as?
|
|
||||||
dev.inmo.tgbotapi.types.payments.stars.TransactionPartner.TelegramAPI
|
|
||||||
|
|
||||||
public inline fun TransactionPartner.telegramAPIOrThrow(): TransactionPartner.TelegramAPI = this as
|
|
||||||
dev.inmo.tgbotapi.types.payments.stars.TransactionPartner.TelegramAPI
|
|
||||||
|
|
||||||
public inline fun <T>
|
|
||||||
TransactionPartner.ifTelegramAPI(block: (TransactionPartner.TelegramAPI) -> T): T? =
|
|
||||||
telegramAPIOrNull() ?.let(block)
|
|
||||||
|
|
||||||
public inline fun TransactionPartner.unknownOrNull(): TransactionPartner.Unknown? = this as?
|
public inline fun TransactionPartner.unknownOrNull(): TransactionPartner.Unknown? = this as?
|
||||||
dev.inmo.tgbotapi.types.payments.stars.TransactionPartner.Unknown
|
dev.inmo.tgbotapi.types.payments.stars.TransactionPartner.Unknown
|
||||||
|
|
||||||
|
@ -92,28 +92,6 @@ inline fun InlineKeyboardRowBuilder.loginButton(
|
|||||||
loginUrl: LoginURL
|
loginUrl: LoginURL
|
||||||
) = add(LoginURLInlineKeyboardButton(text, loginUrl))
|
) = add(LoginURLInlineKeyboardButton(text, loginUrl))
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates [CopyTextButton]
|
|
||||||
*
|
|
||||||
* @see inlineKeyboard
|
|
||||||
* @see InlineKeyboardBuilder.row
|
|
||||||
*/
|
|
||||||
inline fun InlineKeyboardRowBuilder.copyTextButton(
|
|
||||||
text: String,
|
|
||||||
data: CopyTextButtonData
|
|
||||||
) = add(CopyTextButton(text, data))
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates [CopyTextButton]
|
|
||||||
*
|
|
||||||
* @see inlineKeyboard
|
|
||||||
* @see InlineKeyboardBuilder.row
|
|
||||||
*/
|
|
||||||
inline fun InlineKeyboardRowBuilder.copyTextButton(
|
|
||||||
text: String,
|
|
||||||
data: String
|
|
||||||
) = copyTextButton(text, CopyTextButtonData(data))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and put [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
* Creates and put [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user