1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-06-18 01:05:21 +00:00

implement guest mode and make HUGE CHANGES IN MESSAGES HIERARCHY

This commit is contained in:
2026-05-17 23:20:10 +06:00
parent d47641c39a
commit 236939eab8
148 changed files with 1888 additions and 1335 deletions

View File

@@ -0,0 +1,17 @@
package dev.inmo.tgbotapi.extensions.api.answers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.answers.AnswerGuestQuery
import dev.inmo.tgbotapi.types.GuestQueryId
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult
import dev.inmo.tgbotapi.types.guest.SentGuestMessage
public suspend fun TelegramBot.answerGuestQuery(
guestQueryId: GuestQueryId,
result: InlineQueryResult
): SentGuestMessage = execute(AnswerGuestQuery(guestQueryId, result))
public suspend fun TelegramBot.answer(
guestQueryId: GuestQueryId,
result: InlineQueryResult
): SentGuestMessage = execute(AnswerGuestQuery(guestQueryId, result))

View File

@@ -30,7 +30,7 @@ import dev.inmo.tgbotapi.types.games.Game
import dev.inmo.tgbotapi.types.location.*
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.*
import dev.inmo.tgbotapi.types.payments.LabeledPrice
import dev.inmo.tgbotapi.types.payments.abstracts.Currency
@@ -67,7 +67,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chatId = replyInChatId,
phoneNumber = phoneNumber,
firstName = firstName,
@@ -105,7 +105,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chatId = replyInChatId,
contact = contact,
threadId = replyInThreadId,
@@ -144,7 +144,7 @@ public suspend inline fun TelegramBot.replyWithDice(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<DiceContent> = sendDice(
): ChatContentMessage<DiceContent> = sendDice(
chatId = replyInChatId,
animationType = animationType,
threadId = replyInThreadId,
@@ -180,7 +180,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<DiceContent> = replyWithDice(
): ChatContentMessage<DiceContent> = replyWithDice(
toChatId = toChatId,
toMessageId = toMessageId,
animationType = animationType,
@@ -219,7 +219,7 @@ public suspend inline fun TelegramBot.replyWithChecklist(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ChecklistContent> = sendChecklist(
): ChatContentMessage<ChecklistContent> = sendChecklist(
chatId = replyInChatId,
checklist = checklist,
businessConnectionId = replyInBusinessConnectionId,
@@ -247,7 +247,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ChecklistContent> = sendChecklist(
): ChatContentMessage<ChecklistContent> = sendChecklist(
chatId = replyInChatId,
checklist = checklist,
businessConnectionId = replyInBusinessConnectionId,
@@ -283,7 +283,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = replyInChatId,
latitude = latitude,
longitude = longitude,
@@ -320,7 +320,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = replyInChatId,
location = location,
threadId = replyInThreadId,
@@ -361,7 +361,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = replyInChatId,
text = text,
parseMode = parseMode,
@@ -400,7 +400,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = replyInChatId,
entities = entities,
linkPreviewOptions = linkPreviewOptions,
@@ -439,7 +439,7 @@ public suspend fun TelegramBot.reply(
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = reply(
): ChatContentMessage<TextContent> = reply(
toChatId = toChatId,
toMessageId = toMessageId,
entities = buildEntities(separator, builderBody),
@@ -482,7 +482,7 @@ public suspend fun TelegramBot.reply(
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = reply(
): ChatContentMessage<TextContent> = reply(
toChatId = toChatId,
toMessageId = toMessageId,
entities = buildEntities(separator, builderBody),
@@ -533,7 +533,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = replyInChatId,
latitude = latitude,
longitude = longitude,
@@ -578,7 +578,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = replyInChatId,
latitude = location.latitude,
longitude = location.longitude,
@@ -617,7 +617,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = replyInChatId,
venue = venue,
threadId = replyInThreadId,
@@ -652,7 +652,7 @@ public suspend inline fun TelegramBot.replyWithGame(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = sendGame(
): ChatContentMessage<GameContent> = sendGame(
chatId = replyInChatId,
gameShortName = gameShortName,
threadId = replyInThreadId,
@@ -684,7 +684,7 @@ public suspend inline fun TelegramBot.replyWithGame(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = sendGame(
): ChatContentMessage<GameContent> = sendGame(
chatId = replyInChatId,
gameShortName = game.title,
threadId = replyInThreadId,
@@ -716,7 +716,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = replyWithGame(
): ChatContentMessage<GameContent> = replyWithGame(
toChatId = toChatId,
toMessageId = toMessageId,
game = game,
@@ -763,7 +763,7 @@ public suspend inline fun TelegramBot.replyWithAnimation(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = replyInChatId,
animation = animation,
thumb = thumb,
@@ -810,7 +810,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = replyInChatId,
animation = animation,
text = text,
@@ -856,7 +856,7 @@ public suspend inline fun TelegramBot.replyWithAnimation(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = replyInChatId,
animation = animation,
thumb = thumb,
@@ -901,7 +901,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = replyInChatId,
animation = animation,
entities = entities,
@@ -948,7 +948,7 @@ public suspend inline fun TelegramBot.replyWithAudio(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = replyInChatId,
audio = audio,
thumb = thumb,
@@ -989,7 +989,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = replyInChatId,
audio = audio,
text = text,
@@ -1029,7 +1029,7 @@ public suspend inline fun TelegramBot.replyWithAudio(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = replyInChatId,
audio = audio,
thumb = thumb,
@@ -1068,7 +1068,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = replyInChatId,
audio = audio,
entities = entities,
@@ -1109,7 +1109,7 @@ public suspend inline fun TelegramBot.replyWithDocument(
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = replyInChatId,
document = document,
thumb = thumb,
@@ -1148,7 +1148,7 @@ public suspend inline fun TelegramBot.reply(
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = replyInChatId,
document = document,
text = text,
@@ -1186,7 +1186,7 @@ public suspend inline fun TelegramBot.replyWithDocument(
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = replyInChatId,
document = document,
thumb = thumb,
@@ -1223,7 +1223,7 @@ public suspend inline fun TelegramBot.reply(
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = replyInChatId,
document = document,
entities = entities,
@@ -1260,7 +1260,7 @@ public suspend inline fun TelegramBot.replyWithMediaGroup(
allowSendingWithoutReply: Boolean? = null,
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chatId = replyInChatId,
media = media,
threadId = replyInThreadId,
@@ -1290,7 +1290,7 @@ public suspend inline fun TelegramBot.replyWithPlaylist(
allowSendingWithoutReply: Boolean? = null,
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chatId = replyInChatId,
media = media,
threadId = replyInThreadId,
@@ -1320,7 +1320,7 @@ public suspend inline fun TelegramBot.replyWithDocuments(
allowSendingWithoutReply: Boolean? = null,
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chatId = replyInChatId,
media = media,
threadId = replyInThreadId,
@@ -1350,7 +1350,7 @@ public suspend inline fun TelegramBot.replyWithGallery(
allowSendingWithoutReply: Boolean? = null,
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chatId = replyInChatId,
media = media,
threadId = replyInThreadId,
@@ -1388,7 +1388,7 @@ public suspend inline fun TelegramBot.replyWithPhoto(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = replyInChatId,
fileId = fileId,
text = text,
@@ -1428,7 +1428,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = replyInChatId,
photo = photo,
text = text,
@@ -1468,7 +1468,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = replyInChatId,
photoSize = photoSize,
text = text,
@@ -1508,7 +1508,7 @@ public suspend inline fun TelegramBot.replyWithPhoto(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = replyInChatId,
fileId = fileId,
entities = entities,
@@ -1546,7 +1546,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = replyInChatId,
photo = photo,
entities = entities,
@@ -1584,7 +1584,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = replyInChatId,
photoSize = photoSize,
entities = entities,
@@ -1623,7 +1623,7 @@ public suspend inline fun TelegramBot.replyWithSticker(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = sendSticker(
): ChatContentMessage<StickerContent> = sendSticker(
chatId = replyInChatId,
sticker = sticker,
threadId = replyInThreadId,
@@ -1657,7 +1657,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = sendSticker(
): ChatContentMessage<StickerContent> = sendSticker(
chatId = replyInChatId,
sticker = sticker,
threadId = replyInThreadId,
@@ -1701,7 +1701,7 @@ public suspend inline fun TelegramBot.replyWithVideo(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = replyInChatId,
video = video,
thumb = thumb,
@@ -1745,7 +1745,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = replyInChatId,
video = video,
text = text,
@@ -1788,7 +1788,7 @@ public suspend inline fun TelegramBot.replyWithVideo(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = replyInChatId,
video = video,
thumb = thumb,
@@ -1830,7 +1830,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = replyInChatId,
video = video,
entities = entities,
@@ -1873,7 +1873,7 @@ public suspend inline fun TelegramBot.replyWithLivePhoto(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = replyInChatId,
livePhoto = livePhoto,
photo = photo,
@@ -1914,7 +1914,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = replyInChatId,
livePhoto = livePhoto,
text = text,
@@ -1954,7 +1954,7 @@ public suspend inline fun TelegramBot.replyWithLivePhoto(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = replyInChatId,
livePhoto = livePhoto,
photo = photo,
@@ -1993,7 +1993,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = replyInChatId,
livePhoto = livePhoto,
entities = entities,
@@ -2034,7 +2034,7 @@ public suspend inline fun TelegramBot.replyWithVideoNote(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = sendVideoNote(
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
chatId = replyInChatId,
videoNote = videoNote,
thumb = thumb,
@@ -2069,7 +2069,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = sendVideoNote(
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
chatId = replyInChatId,
videoNote = videoNote,
threadId = replyInThreadId,
@@ -2107,7 +2107,7 @@ public suspend inline fun TelegramBot.replyWithVoice(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = replyInChatId,
voice = voice,
text = text,
@@ -2144,7 +2144,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = replyInChatId,
voice = voice,
text = text,
@@ -2181,7 +2181,7 @@ public suspend inline fun TelegramBot.replyWithVoice(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = replyInChatId,
voice = voice,
entities = entities,
@@ -2216,7 +2216,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = replyInChatId,
voice = voice,
entities = entities,
@@ -2271,7 +2271,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<InvoiceContent> = sendInvoice(
): ChatContentMessage<InvoiceContent> = sendInvoice(
chatId = replyInChatId,
title = title,
description = description,
@@ -2327,7 +2327,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = replyInChatId,
question = question,
options = options,
@@ -2372,7 +2372,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = replyInChatId,
question = question,
options = options,
@@ -2416,7 +2416,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = replyInChatId,
questionEntities = questionTextSources,
options = options,
@@ -2459,7 +2459,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = replyInChatId,
questionEntities = questionTextSources,
options = options,
@@ -2506,7 +2506,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
question = question,
options = options,
@@ -2560,7 +2560,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
question = question,
options = options,
@@ -2611,7 +2611,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
questionEntities = questionTextSources,
options = options,
@@ -2663,7 +2663,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
questionEntities = questionTextSources,
options = options,
@@ -2713,7 +2713,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
question = question,
options = options,
@@ -2765,7 +2765,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
question = question,
options = options,
@@ -2814,7 +2814,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
questionEntities = questionTextSources,
options = options,
@@ -2864,7 +2864,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = replyInChatId,
questionEntities = questionTextSources,
options = options,
@@ -2910,7 +2910,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = when (poll) {
): ChatContentMessage<PollContent> = when (poll) {
is RegularPoll -> reply(
toChatId = toChatId,
toMessageId = toMessageId,
@@ -2982,7 +2982,7 @@ public suspend inline fun TelegramBot.reply(
checklistTaskId: ChecklistTaskId? = null,
pollOptionId: PollOptionPersistentId? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = when (poll) {
): ChatContentMessage<PollContent> = when (poll) {
is RegularPoll -> reply(
toChatId = toChatId,
toMessageId = toMessageId,

View File

@@ -0,0 +1,16 @@
package dev.inmo.tgbotapi.extensions.api.send
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.extensions.api.answers.answer
import dev.inmo.tgbotapi.types.InlineQueries.InlineQueryResult.abstracts.InlineQueryResult
import dev.inmo.tgbotapi.types.guest.SentGuestMessage
import dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.GuestMessage
public suspend fun TelegramBot.reply(
message: GuestMessage,
queryResult: InlineQueryResult
): SentGuestMessage = answer(
message.guestQueryId,
queryResult
)

View File

@@ -5,7 +5,7 @@ import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.MessageContent
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
@@ -26,7 +26,7 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
suggestedPostParameters: SuggestedPostParameters? = null
): ContentMessage<T> = execute(
): ChatContentMessage<T> = execute(
content.createResend(
chatId = chatId,
messageThreadId = messageThreadId,
@@ -40,7 +40,7 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
replyMarkup = replyMarkup,
suggestedPostParameters = suggestedPostParameters,
)
) as ContentMessage<T>
) as ChatContentMessage<T>
/**
* This method will send [content] to the [chat] as is
@@ -57,7 +57,7 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
effectId: EffectId? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<T> = resend(
): ChatContentMessage<T> = resend(
chatId = chat.id,
content = content,
messageThreadId = messageThreadId,
@@ -78,7 +78,7 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
*/
public suspend inline fun <T : MessageContent> TelegramBot.resend(
chatId: ChatIdentifier,
message: ContentMessage<T>,
message: ChatContentMessage<T>,
messageThreadId: MessageThreadId? = chatId.threadId,
directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId,
@@ -88,7 +88,7 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
effectId: EffectId? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<T> = resend(
): ChatContentMessage<T> = resend(
chatId = chatId,
content = message.content,
messageThreadId = messageThreadId,
@@ -109,7 +109,7 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
*/
public suspend inline fun <T : MessageContent> TelegramBot.resend(
chat: Chat,
message: ContentMessage<T>,
message: ChatContentMessage<T>,
messageThreadId: MessageThreadId? = chat.id.threadId,
directMessageThreadId: DirectMessageThreadId? = chat.id.directMessageThreadId,
businessConnectionId: BusinessConnectionId? = chat.id.businessConnectionId,
@@ -119,7 +119,7 @@ public suspend inline fun <T : MessageContent> TelegramBot.resend(
effectId: EffectId? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<T> = resend(
): ChatContentMessage<T> = resend(
chatId = chat.id,
message = message,
messageThreadId = messageThreadId,

View File

@@ -9,7 +9,7 @@ import dev.inmo.tgbotapi.types.ReplyParameters
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.checklists.Checklist
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.ChecklistContent
public suspend fun TelegramBot.sendChecklist(
@@ -21,7 +21,7 @@ public suspend fun TelegramBot.sendChecklist(
effectId: EffectId? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ChecklistContent> = execute(
): ChatContentMessage<ChecklistContent> = execute(
SendChecklist(
chatId = chatId,
checklist = checklist,
@@ -42,7 +42,7 @@ public suspend fun TelegramBot.sendChecklist(
effectId: EffectId? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ChecklistContent> = execute(
): ChatContentMessage<ChecklistContent> = execute(
SendChecklist(
chatId = chatId,
checklist = checklist,

View File

@@ -9,7 +9,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.ContactContent
/**
@@ -31,7 +31,7 @@ public suspend fun TelegramBot.sendContact(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = execute(
): ChatContentMessage<ContactContent> = execute(
SendContact(
chatId = chatId,
phoneNumber = phoneNumber,
@@ -67,7 +67,7 @@ public suspend fun TelegramBot.sendContact(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = execute(
): ChatContentMessage<ContactContent> = execute(
SendContact(
chatId = chatId,
contact = contact,
@@ -103,7 +103,7 @@ public suspend fun TelegramBot.sendContact(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chatId = chat.id,
phoneNumber = phoneNumber,
firstName = firstName,
@@ -137,7 +137,7 @@ public suspend fun TelegramBot.sendContact(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chatId = chat.id,
contact = contact,
threadId = threadId,

View File

@@ -8,7 +8,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.dice.DiceAnimationType
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.DiceContent
/**
@@ -28,7 +28,7 @@ public suspend fun TelegramBot.sendDice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<DiceContent> = execute(
): ChatContentMessage<DiceContent> = execute(
SendDice(
chatId = chatId,
animationType = animationType,
@@ -62,7 +62,7 @@ public suspend fun TelegramBot.sendDice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<DiceContent> = sendDice(
): ChatContentMessage<DiceContent> = sendDice(
chatId = chat.id,
animationType = animationType,
threadId = threadId,

View File

@@ -8,7 +8,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.location.Location
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.LiveLocationContent
import dev.inmo.tgbotapi.types.message.content.LocationContent
@@ -34,7 +34,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = execute(
): ChatContentMessage<LiveLocationContent> = execute(
SendLiveLocation(
chatId = chatId,
latitude = latitude,
@@ -77,7 +77,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLocation(
): ChatContentMessage<LiveLocationContent> = sendLocation(
chatId = chatId,
latitude = location.latitude,
longitude = location.longitude,
@@ -119,7 +119,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLocation(
): ChatContentMessage<LiveLocationContent> = sendLocation(
chatId = chat.id,
latitude = latitude,
longitude = longitude,
@@ -160,7 +160,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLocation(
): ChatContentMessage<LiveLocationContent> = sendLocation(
chatId = chat.id,
latitude = location.latitude,
longitude = location.longitude,
@@ -202,7 +202,7 @@ public suspend fun TelegramBot.sendLiveLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLocation(
): ChatContentMessage<LiveLocationContent> = sendLocation(
chatId = chatId,
latitude = latitude,
longitude = longitude,
@@ -243,7 +243,7 @@ public suspend fun TelegramBot.sendLiveLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLocation(
): ChatContentMessage<LiveLocationContent> = sendLocation(
chatId = chatId,
latitude = location.latitude,
longitude = location.longitude,
@@ -285,7 +285,7 @@ public suspend fun TelegramBot.sendLiveLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLocation(
): ChatContentMessage<LiveLocationContent> = sendLocation(
chatId = chat.id,
latitude = latitude,
longitude = longitude,
@@ -326,7 +326,7 @@ public suspend fun TelegramBot.sendLiveLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLocation(
): ChatContentMessage<LiveLocationContent> = sendLocation(
chatId = chat.id,
latitude = location.latitude,
longitude = location.longitude,

View File

@@ -11,7 +11,7 @@ import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.TextContent
import dev.inmo.tgbotapi.types.message.textsources.TextSource
import dev.inmo.tgbotapi.utils.EntitiesBuilderBody
@@ -36,7 +36,7 @@ public suspend fun TelegramBot.sendMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = execute(
): ChatContentMessage<TextContent> = execute(
SendTextMessage(
chatId = chatId,
text = text,
@@ -74,7 +74,7 @@ public suspend fun TelegramBot.sendTextMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chatId = chatId,
text = text,
parseMode = parseMode,
@@ -110,7 +110,7 @@ public suspend fun TelegramBot.sendTextMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = chat.id,
text = text,
parseMode = parseMode,
@@ -147,7 +147,7 @@ public suspend fun TelegramBot.sendMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chatId = chat.id,
text = text,
parseMode = parseMode,
@@ -182,7 +182,7 @@ public suspend fun TelegramBot.sendMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = execute(
): ChatContentMessage<TextContent> = execute(
SendTextMessage(
chatId = chatId,
entities = entities,
@@ -219,7 +219,7 @@ public suspend fun TelegramBot.sendMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chatId = chatId,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -255,7 +255,7 @@ public suspend fun TelegramBot.sendMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chatId = chatId,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -289,7 +289,7 @@ public suspend fun TelegramBot.sendTextMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chatId = chatId,
entities = entities,
linkPreviewOptions = linkPreviewOptions,
@@ -324,7 +324,7 @@ public suspend fun TelegramBot.sendTextMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = chatId,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -360,7 +360,7 @@ public suspend fun TelegramBot.sendTextMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = chatId,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -394,7 +394,7 @@ public suspend fun TelegramBot.sendMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chatId = chat.id,
entities = entities,
linkPreviewOptions = linkPreviewOptions,
@@ -429,7 +429,7 @@ public suspend fun TelegramBot.sendMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chat = chat,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -465,7 +465,7 @@ public suspend fun TelegramBot.sendMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendMessage(
): ChatContentMessage<TextContent> = sendMessage(
chat = chat,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -500,7 +500,7 @@ public suspend fun TelegramBot.sendTextMessage(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = chat.id,
entities = entities,
linkPreviewOptions = linkPreviewOptions,
@@ -535,7 +535,7 @@ public suspend fun TelegramBot.sendTextMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chat = chat,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -571,7 +571,7 @@ public suspend fun TelegramBot.sendTextMessage(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chat = chat,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,

View File

@@ -10,7 +10,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.location.Location
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.LocationContent
import dev.inmo.tgbotapi.types.message.content.StaticLocationContent
@@ -32,7 +32,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = execute(
): ChatContentMessage<StaticLocationContent> = execute(
SendStaticLocation(
chatId = chatId,
latitude = latitude,
@@ -67,7 +67,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = chatId,
latitude = location.latitude,
longitude = location.longitude,
@@ -101,7 +101,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = chat.id,
latitude = latitude,
longitude = longitude,
@@ -134,7 +134,7 @@ public suspend fun TelegramBot.sendLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = chat.id,
latitude = location.latitude,
longitude = location.longitude,
@@ -168,7 +168,7 @@ public suspend fun TelegramBot.sendStaticLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = chatId,
latitude = latitude,
longitude = longitude,
@@ -201,7 +201,7 @@ public suspend fun TelegramBot.sendStaticLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = chatId,
latitude = location.latitude,
longitude = location.longitude,
@@ -235,7 +235,7 @@ public suspend fun TelegramBot.sendStaticLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = chat.id,
latitude = latitude,
longitude = longitude,
@@ -268,7 +268,7 @@ public suspend fun TelegramBot.sendStaticLocation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendLocation(
): ChatContentMessage<StaticLocationContent> = sendLocation(
chatId = chat.id,
latitude = location.latitude,
longitude = location.longitude,

View File

@@ -10,7 +10,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.location.StaticLocation
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.VenueContent
import dev.inmo.tgbotapi.types.venue.Venue
@@ -38,7 +38,7 @@ public suspend fun TelegramBot.sendVenue(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = execute(
): ChatContentMessage<VenueContent> = execute(
SendVenue(
chatId = chatId,
latitude = latitude,
@@ -86,7 +86,7 @@ public suspend fun TelegramBot.sendVenue(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = chat.id,
latitude = latitude,
longitude = longitude,
@@ -131,7 +131,7 @@ public suspend fun TelegramBot.sendVenue(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = chatId,
latitude = location.latitude,
longitude = location.longitude,
@@ -176,7 +176,7 @@ public suspend fun TelegramBot.sendVenue(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = chat.id,
latitude = location.latitude,
longitude = location.longitude,
@@ -215,7 +215,7 @@ public suspend fun TelegramBot.sendVenue(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = execute(
): ChatContentMessage<VenueContent> = execute(
SendVenue(
chatId = chatId,
venue = venue,
@@ -249,7 +249,7 @@ public suspend fun TelegramBot.sendVenue(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = chat.id,
venue = venue,
threadId = threadId,

View File

@@ -26,7 +26,7 @@ import dev.inmo.tgbotapi.types.location.Location
import dev.inmo.tgbotapi.types.location.StaticLocation
import dev.inmo.tgbotapi.types.media.*
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.*
import dev.inmo.tgbotapi.types.message.textsources.TextSource
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
@@ -78,7 +78,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chatId,
animation = animation,
text = text,
@@ -125,7 +125,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chat = chat,
animation = animation,
text = text,
@@ -171,7 +171,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chatId,
animation = animation,
entities = entities,
@@ -216,7 +216,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chat = chat,
animation = animation,
entities = entities,
@@ -258,7 +258,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chatId,
audio = audio,
text = text,
@@ -297,7 +297,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chat = chat,
audio = audio,
text = text,
@@ -335,7 +335,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chatId,
audio = audio,
entities = entities,
@@ -372,7 +372,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chat = chat,
audio = audio,
entities = entities,
@@ -409,7 +409,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chatId = chatId,
phoneNumber = phoneNumber,
firstName = firstName,
@@ -444,7 +444,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chatId = chatId,
contact = contact,
threadId = threadId,
@@ -479,7 +479,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chat = chat,
phoneNumber = phoneNumber,
firstName = firstName,
@@ -514,7 +514,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ContactContent> = sendContact(
): ChatContentMessage<ContactContent> = sendContact(
chat = chat,
contact = contact,
threadId = threadId,
@@ -547,7 +547,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<DiceContent> = sendDice(
): ChatContentMessage<DiceContent> = sendDice(
chatId = chatId,
animationType = animationType,
threadId = threadId,
@@ -580,7 +580,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<DiceContent> = sendDice(
): ChatContentMessage<DiceContent> = sendDice(
chat = chat,
animationType = animationType,
threadId = threadId,
@@ -605,7 +605,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ChecklistContent> = execute(
): ChatContentMessage<ChecklistContent> = execute(
SendChecklist(
chatId = chatId,
checklist = checklist,
@@ -626,7 +626,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<ChecklistContent> = execute(
): ChatContentMessage<ChecklistContent> = execute(
SendChecklist(
chatId = chatId,
checklist = checklist,
@@ -660,7 +660,7 @@ public suspend fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chatId,
document = document,
text = text,
@@ -699,7 +699,7 @@ public suspend fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chat = chat,
document = document,
text = text,
@@ -737,7 +737,7 @@ public suspend inline fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chatId,
document = document,
entities = entities,
@@ -774,7 +774,7 @@ public suspend inline fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chat = chat,
document = document,
entities = entities,
@@ -809,7 +809,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = sendGame(
): ChatContentMessage<GameContent> = sendGame(
chatId = chatId,
game = game,
threadId = threadId,
@@ -842,7 +842,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = sendGame(
): ChatContentMessage<GameContent> = sendGame(
chat = chat,
game = game,
threadId = threadId,
@@ -890,7 +890,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<InvoiceContent> = sendInvoice(
): ChatContentMessage<InvoiceContent> = sendInvoice(
chatId = chatId,
title = title,
description = description,
@@ -951,7 +951,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<InvoiceContent> = sendInvoice(
): ChatContentMessage<InvoiceContent> = sendInvoice(
user = user,
title = title,
description = description,
@@ -998,7 +998,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendStaticLocation(
): ChatContentMessage<StaticLocationContent> = sendStaticLocation(
chatId = chatId,
latitude = latitude,
longitude = longitude,
@@ -1032,7 +1032,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendStaticLocation(
): ChatContentMessage<StaticLocationContent> = sendStaticLocation(
chatId = chatId,
location = location,
threadId = threadId,
@@ -1066,7 +1066,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendStaticLocation(
): ChatContentMessage<StaticLocationContent> = sendStaticLocation(
chat = chat,
latitude = latitude,
longitude = longitude,
@@ -1100,7 +1100,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StaticLocationContent> = sendStaticLocation(
): ChatContentMessage<StaticLocationContent> = sendStaticLocation(
chat = chat,
location = location,
threadId = threadId,
@@ -1135,7 +1135,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = chatId,
text = text,
parseMode = parseMode,
@@ -1172,7 +1172,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chat = chat,
text = text,
parseMode = parseMode,
@@ -1208,7 +1208,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chatId = chatId,
entities = entities,
linkPreviewOptions = linkPreviewOptions,
@@ -1243,7 +1243,7 @@ public suspend fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = send(
): ChatContentMessage<TextContent> = send(
chatId = chatId,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -1279,7 +1279,7 @@ public suspend fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = send(
): ChatContentMessage<TextContent> = send(
chatId = chatId,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -1315,7 +1315,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<TextContent> = sendTextMessage(
): ChatContentMessage<TextContent> = sendTextMessage(
chat = chat,
entities = entities,
linkPreviewOptions = linkPreviewOptions,
@@ -1482,7 +1482,7 @@ public suspend fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = send(
): ChatContentMessage<TextContent> = send(
chat = chat,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -1518,7 +1518,7 @@ public suspend fun TelegramBot.send(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
builderBody: EntitiesBuilderBody
): ContentMessage<TextContent> = send(
): ChatContentMessage<TextContent> = send(
chat = chat,
entities = buildEntities(separator, builderBody),
linkPreviewOptions = linkPreviewOptions,
@@ -1556,7 +1556,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
photo = photo,
text = text,
@@ -1597,7 +1597,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
): ChatContentMessage<PaidMediaInfoContent> = sendPaidMedia(
chat = chat,
starCount = starCount,
media = media,
@@ -1638,7 +1638,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
): ChatContentMessage<PaidMediaInfoContent> = sendPaidMedia(
chatId = chatId,
starCount = starCount,
media = media,
@@ -1678,7 +1678,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
): ChatContentMessage<PaidMediaInfoContent> = sendPaidMedia(
chat = chat,
starCount = starCount,
media = media,
@@ -1717,7 +1717,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
): ChatContentMessage<PaidMediaInfoContent> = sendPaidMedia(
chatId = chatId,
starCount = starCount,
media = media,
@@ -1757,7 +1757,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chat = chat,
photo = photo,
text = text,
@@ -1798,7 +1798,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
photoSize = photoSize,
text = text,
@@ -1839,7 +1839,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chat = chat,
photoSize = photoSize,
text = text,
@@ -1879,7 +1879,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
photo = photo,
entities = entities,
@@ -1918,7 +1918,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chat = chat,
photo = photo,
entities = entities,
@@ -1957,7 +1957,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
photoSize = photoSize,
entities = entities,
@@ -1996,7 +1996,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chat = chat,
photoSize = photoSize,
entities = entities,
@@ -2038,7 +2038,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = chatId,
question = question,
options = options,
@@ -2082,7 +2082,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = chatId,
questionEntities = questionTextSources,
options = options,
@@ -2127,7 +2127,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = chatId,
question = question,
options = options,
@@ -2172,7 +2172,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = chatId,
questionEntities = questionTextSources,
options = options,
@@ -2216,7 +2216,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = chat.id,
question = question,
options = options,
@@ -2262,7 +2262,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = chat.id,
question = question,
options = options,
@@ -2307,7 +2307,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendRegularPoll(
): ChatContentMessage<PollContent> = sendRegularPoll(
chatId = chat.id,
questionEntities = questionTextSources,
options = options,
@@ -2355,7 +2355,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
question = question,
options = options,
@@ -2408,7 +2408,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
question = question,
options = options,
@@ -2462,7 +2462,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
question = question,
options = options,
@@ -2516,7 +2516,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
question = question,
options = options,
@@ -2568,7 +2568,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
questionEntities = questionTextSources,
options = options,
@@ -2619,7 +2619,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
questionEntities = questionTextSources,
options = options,
@@ -2671,7 +2671,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
questionEntities = questionTextSources,
options = options,
@@ -2723,7 +2723,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
questionEntities = questionTextSources,
options = options,
@@ -2774,7 +2774,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
question = question,
options = options,
@@ -2825,7 +2825,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
question = question,
options = options,
@@ -2877,7 +2877,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
question = question,
options = options,
@@ -2929,7 +2929,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
question = question,
options = options,
@@ -2979,7 +2979,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
questionEntities = questionTextSources,
options = options,
@@ -3028,7 +3028,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
questionEntities = questionTextSources,
options = options,
@@ -3078,7 +3078,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chatId,
questionEntities = questionTextSources,
options = options,
@@ -3128,7 +3128,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = sendQuizPoll(
): ChatContentMessage<PollContent> = sendQuizPoll(
chatId = chat.id,
questionEntities = questionTextSources,
options = options,
@@ -3170,7 +3170,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = sendSticker(
): ChatContentMessage<StickerContent> = sendSticker(
chatId = chatId,
sticker = sticker,
threadId = threadId,
@@ -3205,7 +3205,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = sendSticker(
): ChatContentMessage<StickerContent> = sendSticker(
chat = chat,
sticker = sticker,
threadId = threadId,
@@ -3245,7 +3245,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLiveLocation(
): ChatContentMessage<LiveLocationContent> = sendLiveLocation(
chatId = chatId,
latitude = latitude,
longitude = longitude,
@@ -3287,7 +3287,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLiveLocation(
): ChatContentMessage<LiveLocationContent> = sendLiveLocation(
chatId = chatId,
location = location,
livePeriod = livePeriod,
@@ -3329,7 +3329,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLiveLocation(
): ChatContentMessage<LiveLocationContent> = sendLiveLocation(
chat = chat,
latitude = latitude,
longitude = longitude,
@@ -3371,7 +3371,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LiveLocationContent> = sendLiveLocation(
): ChatContentMessage<LiveLocationContent> = sendLiveLocation(
chat = chat,
location = location,
livePeriod = livePeriod,
@@ -3415,7 +3415,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = chatId,
latitude = latitude,
longitude = longitude,
@@ -3462,7 +3462,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chat = chat,
latitude = latitude,
longitude = longitude,
@@ -3508,7 +3508,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = chatId,
location = location,
title = title,
@@ -3553,7 +3553,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chat = chat,
location = location,
title = title,
@@ -3592,7 +3592,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chatId = chatId,
venue = venue,
threadId = threadId,
@@ -3625,7 +3625,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VenueContent> = sendVenue(
): ChatContentMessage<VenueContent> = sendVenue(
chat = chat,
venue = venue,
threadId = threadId,
@@ -3663,7 +3663,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chatId,
video = video,
text = text,
@@ -3706,7 +3706,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chat = chat,
video = video,
text = text,
@@ -3748,7 +3748,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chatId,
video = video,
entities = entities,
@@ -3789,7 +3789,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chat = chat,
video = video,
entities = entities,
@@ -3830,7 +3830,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chatId,
livePhoto = livePhoto,
text = text,
@@ -3871,7 +3871,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chat = chat,
livePhoto = livePhoto,
text = text,
@@ -3911,7 +3911,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chatId,
livePhoto = livePhoto,
entities = entities,
@@ -3950,7 +3950,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chat = chat,
livePhoto = livePhoto,
entities = entities,
@@ -3986,7 +3986,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = sendVideoNote(
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
chatId = chatId,
videoNote = videoNote,
threadId = threadId,
@@ -4019,7 +4019,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = sendVideoNote(
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
chat = chat,
videoNote = videoNote,
threadId = threadId,
@@ -4054,7 +4054,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chatId,
voice = voice,
text = text,
@@ -4091,7 +4091,7 @@ public suspend fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chat = chat,
voice = voice,
text = text,
@@ -4127,7 +4127,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chatId,
voice = voice,
entities = entities,
@@ -4162,7 +4162,7 @@ public suspend inline fun TelegramBot.send(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chat = chat,
voice = voice,
entities = entities,
@@ -4195,7 +4195,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4226,7 +4226,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chat = chat,
media = media,
threadId = threadId,
@@ -4257,7 +4257,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4288,7 +4288,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chat = chat,
media = media,
threadId = threadId,
@@ -4318,7 +4318,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4348,7 +4348,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chat = chat,
media = media,
threadId = threadId,
@@ -4378,7 +4378,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4408,7 +4408,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chat = chat,
media = media,
threadId = threadId,
@@ -4438,7 +4438,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4468,7 +4468,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chat = chat,
media = media,
threadId = threadId,
@@ -4498,7 +4498,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4528,7 +4528,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chat = chat,
media = media,
threadId = threadId,
@@ -4558,7 +4558,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4588,7 +4588,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chat = chat,
media = media,
threadId = threadId,
@@ -4618,7 +4618,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chatId = chatId,
media = media,
threadId = threadId,
@@ -4648,7 +4648,7 @@ public suspend fun TelegramBot.send(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chat = chat,
media = media,
threadId = threadId,

View File

@@ -8,7 +8,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.games.Game
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.GameContent
/**
@@ -28,7 +28,7 @@ public suspend fun TelegramBot.sendGame(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = execute(
): ChatContentMessage<GameContent> = execute(
SendGame(
chatId = chatId,
gameShortName = gameShortName,
@@ -62,7 +62,7 @@ public suspend fun TelegramBot.sendGame(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = sendGame(
): ChatContentMessage<GameContent> = sendGame(
chatId = chat.id,
gameShortName = gameShortName,
threadId = threadId,
@@ -94,7 +94,7 @@ public suspend fun TelegramBot.sendGame(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = sendGame(
): ChatContentMessage<GameContent> = sendGame(
chatId = chatId,
gameShortName = game.title,
threadId = threadId,
@@ -126,7 +126,7 @@ public suspend fun TelegramBot.sendGame(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<GameContent> = sendGame(
): ChatContentMessage<GameContent> = sendGame(
chatId = chat.id,
gameShortName = game.title,
threadId = threadId,

View File

@@ -13,7 +13,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.AnimationFile
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.AnimationContent
/**
@@ -41,7 +41,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = execute(
): ChatContentMessage<AnimationContent> = execute(
SendAnimation(
chatId = chatId,
animation = animation,
@@ -90,7 +90,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chatId,
animation = animation.fileId,
thumb = animation.thumbnail ?.fileId,
@@ -138,7 +138,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chat.id,
animation = animation,
thumb = thumb,
@@ -185,7 +185,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chat.id,
animation = animation,
text = text,
@@ -232,7 +232,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = execute(
): ChatContentMessage<AnimationContent> = execute(
SendAnimation(
chatId = chatId,
animation = animation,
@@ -279,7 +279,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chatId,
animation = animation.fileId,
thumb = animation.thumbnail ?.fileId,
@@ -325,7 +325,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chat.id,
animation = animation,
thumb = thumb,
@@ -370,7 +370,7 @@ public suspend fun TelegramBot.sendAnimation(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AnimationContent> = sendAnimation(
): ChatContentMessage<AnimationContent> = sendAnimation(
chatId = chat.id,
animation = animation,
entities = entities,

View File

@@ -11,7 +11,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.AudioFile
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.AudioContent
/**
@@ -37,7 +37,7 @@ public suspend fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = execute(
): ChatContentMessage<AudioContent> = execute(
SendAudio(
chatId = chatId,
audio = audio,
@@ -83,7 +83,7 @@ public suspend fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chat.id,
audio = audio,
thumb = thumb,
@@ -124,7 +124,7 @@ public suspend fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chatId,
audio = audio.fileId,
thumb = audio.thumbnail ?.fileId,
@@ -165,7 +165,7 @@ public suspend fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chat.id,
audio = audio,
text = text,
@@ -206,7 +206,7 @@ public suspend inline fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = execute(
): ChatContentMessage<AudioContent> = execute(
SendAudio(
chatId = chatId,
audio = audio,
@@ -250,7 +250,7 @@ public suspend inline fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chat.id,
audio = audio,
thumb = thumb,
@@ -289,7 +289,7 @@ public suspend inline fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chatId,
audio = audio.fileId,
thumb = audio.thumbnail ?.fileId,
@@ -328,7 +328,7 @@ public suspend inline fun TelegramBot.sendAudio(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<AudioContent> = sendAudio(
): ChatContentMessage<AudioContent> = sendAudio(
chatId = chat.id,
audio = audio,
entities = entities,

View File

@@ -11,7 +11,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.DocumentFile
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.DocumentContent
/**
@@ -35,7 +35,7 @@ public suspend fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = execute(
): ChatContentMessage<DocumentContent> = execute(
SendDocument(
chatId = chatId,
document = document,
@@ -77,7 +77,7 @@ public suspend fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chat.id,
document = document,
thumb = thumb,
@@ -116,7 +116,7 @@ public suspend fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chatId,
document = document.fileId,
thumb = document.thumbnail ?.fileId,
@@ -155,7 +155,7 @@ public suspend fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chat.id,
document = document,
text = text,
@@ -193,7 +193,7 @@ public suspend inline fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = execute(
): ChatContentMessage<DocumentContent> = execute(
SendDocument(
chatId = chatId,
document = document,
@@ -233,7 +233,7 @@ public suspend inline fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chat.id,
document = document,
thumb = thumb,
@@ -270,7 +270,7 @@ public suspend inline fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chatId,
document = document.fileId,
thumb = document.thumbnail ?.fileId,
@@ -307,7 +307,7 @@ public suspend inline fun TelegramBot.sendDocument(
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
disableContentTypeDetection: Boolean? = null
): ContentMessage<DocumentContent> = sendDocument(
): ChatContentMessage<DocumentContent> = sendDocument(
chatId = chat.id,
document = document,
entities = entities,

View File

@@ -13,7 +13,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.LivePhotoFile
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.LivePhotoContent
/**
@@ -38,7 +38,7 @@ public suspend fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = execute(
): ChatContentMessage<LivePhotoContent> = execute(
SendLivePhoto(
chatId = chatId,
livePhoto = livePhoto,
@@ -81,7 +81,7 @@ public suspend fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chatId,
livePhoto = livePhoto.fileId,
photo = livePhoto.photo ?.fileId ?: livePhoto.fileId,
@@ -123,7 +123,7 @@ public suspend fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chat.id,
livePhoto = livePhoto,
photo = photo,
@@ -164,7 +164,7 @@ public suspend fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chat.id,
livePhoto = livePhoto,
text = text,
@@ -204,7 +204,7 @@ public suspend inline fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = execute(
): ChatContentMessage<LivePhotoContent> = execute(
SendLivePhoto(
chatId = chatId,
livePhoto = livePhoto,
@@ -245,7 +245,7 @@ public suspend inline fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chatId,
livePhoto = livePhoto.fileId,
photo = livePhoto.photo ?.fileId ?: livePhoto.fileId,
@@ -285,7 +285,7 @@ public suspend inline fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chat.id,
livePhoto = livePhoto,
photo = photo,
@@ -324,7 +324,7 @@ public suspend inline fun TelegramBot.sendLivePhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<LivePhotoContent> = sendLivePhoto(
): ChatContentMessage<LivePhotoContent> = sendLivePhoto(
chatId = chat.id,
livePhoto = livePhoto,
entities = entities,

View File

@@ -6,7 +6,7 @@ import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.media.*
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.*
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.utils.RiskFeature
@@ -28,7 +28,7 @@ public suspend fun TelegramBot.sendMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = execute(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = execute(
SendMediaGroup<MediaGroupPartContent>(
chatId = chatId,
media = media,
@@ -60,7 +60,7 @@ public suspend fun TelegramBot.sendMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chatId = chat.id,
media = media,
threadId = threadId,
@@ -91,7 +91,7 @@ public suspend fun TelegramBot.sendMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chatId = chatId,
media = media.map { it.toMediaGroupMemberTelegramMedia() },
threadId = threadId,
@@ -122,7 +122,7 @@ public suspend fun TelegramBot.sendMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
): ChatContentMessage<MediaGroupContent<MediaGroupPartContent>> = sendMediaGroup(
chatId = chat.id,
media = media,
threadId = threadId,
@@ -151,7 +151,7 @@ public suspend fun TelegramBot.sendPlaylist(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = execute(
): ChatContentMessage<MediaGroupContent<AudioContent>> = execute(
SendPlaylist(
chatId = chatId,
media = media,
@@ -182,7 +182,7 @@ public suspend fun TelegramBot.sendPlaylist(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chatId = chat.id,
media = media,
threadId = threadId,
@@ -212,7 +212,7 @@ public suspend fun TelegramBot.sendPlaylist(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chatId = chatId,
media = media.map { it.toMediaGroupMemberTelegramMedia() },
threadId = threadId,
@@ -242,7 +242,7 @@ public suspend fun TelegramBot.sendPlaylist(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
): ChatContentMessage<MediaGroupContent<AudioContent>> = sendPlaylist(
chatId = chat.id,
media = media,
threadId = threadId,
@@ -271,7 +271,7 @@ public suspend fun TelegramBot.sendDocumentsGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = execute(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = execute(
SendDocumentsGroup(
chatId = chatId,
media = media,
@@ -302,7 +302,7 @@ public suspend fun TelegramBot.sendDocumentsGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chatId = chat.id,
media = media,
threadId = threadId,
@@ -332,7 +332,7 @@ public suspend fun TelegramBot.sendDocumentsGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chatId = chatId,
media = media.map { it.toMediaGroupMemberTelegramMedia() },
threadId = threadId,
@@ -362,7 +362,7 @@ public suspend fun TelegramBot.sendDocumentsGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
): ChatContentMessage<MediaGroupContent<DocumentContent>> = sendDocumentsGroup(
chatId = chat.id,
media = media,
threadId = threadId,
@@ -391,7 +391,7 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = execute(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = execute(
SendVisualMediaGroup(
chatId = chatId,
media = media,
@@ -422,7 +422,7 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chatId = chat.id,
media = media,
threadId = threadId,
@@ -452,7 +452,7 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chatId = chatId,
media = media.map { it.toMediaGroupMemberTelegramMedia() },
threadId = threadId,
@@ -482,7 +482,7 @@ public suspend fun TelegramBot.sendVisualMediaGroup(
effectId: EffectId? = null,
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null
): ContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
): ChatContentMessage<MediaGroupContent<VisualMediaGroupPartContent>> = sendVisualMediaGroup(
chatId = chat.id,
media = media,
threadId = threadId,

View File

@@ -12,7 +12,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.media.TelegramPaidMedia
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.PaidMediaInfoContent
/**
@@ -36,7 +36,7 @@ public suspend fun TelegramBot.sendPaidMedia(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = execute(
): ChatContentMessage<PaidMediaInfoContent> = execute(
SendPaidMedia(
chatId = chatId,
starCount = starCount,
@@ -78,7 +78,7 @@ public suspend fun TelegramBot.sendPaidMedia(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
): ChatContentMessage<PaidMediaInfoContent> = sendPaidMedia(
chatId = chat.id,
starCount = starCount,
media = media,
@@ -118,7 +118,7 @@ public suspend inline fun TelegramBot.sendPaidMedia(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = execute(
): ChatContentMessage<PaidMediaInfoContent> = execute(
SendPaidMedia(
chatId = chatId,
starCount = starCount,
@@ -158,7 +158,7 @@ public suspend inline fun TelegramBot.sendPaidMedia(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PaidMediaInfoContent> = sendPaidMedia(
): ChatContentMessage<PaidMediaInfoContent> = sendPaidMedia(
chatId = chat.id,
starCount = starCount,
media = media,

View File

@@ -13,7 +13,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.*
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.PhotoContent
/**
@@ -37,7 +37,7 @@ public suspend fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = execute(
): ChatContentMessage<PhotoContent> = execute(
SendPhoto(
chatId = chatId,
photo = fileId,
@@ -79,7 +79,7 @@ public suspend fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chat.id,
fileId = fileId,
text = text,
@@ -119,7 +119,7 @@ public suspend fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
fileId = photo.biggest() ?.fileId ?: error("Photo content must not be empty"),
text = text,
@@ -159,7 +159,7 @@ public suspend fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chat.id,
photo = photo,
text = text,
@@ -199,7 +199,7 @@ public suspend fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
fileId = photoSize.fileId,
text = text,
@@ -239,7 +239,7 @@ public suspend fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chat.id,
photoSize = photoSize,
text = text,
@@ -279,7 +279,7 @@ public suspend inline fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = execute(
): ChatContentMessage<PhotoContent> = execute(
SendPhoto(
chatId = chatId,
photo = fileId,
@@ -319,7 +319,7 @@ public suspend inline fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chat.id,
fileId = fileId,
entities = entities,
@@ -357,7 +357,7 @@ public suspend inline fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
fileId = photo.biggest() ?.fileId ?: error("Photo content must not be empty"),
entities = entities,
@@ -395,7 +395,7 @@ public suspend inline fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chat.id,
photo = photo,
entities = entities,
@@ -433,7 +433,7 @@ public suspend inline fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chatId,
fileId = photoSize.fileId,
entities = entities,
@@ -471,7 +471,7 @@ public suspend inline fun TelegramBot.sendPhoto(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PhotoContent> = sendPhoto(
): ChatContentMessage<PhotoContent> = sendPhoto(
chatId = chat.id,
photoSize = photoSize,
entities = entities,

View File

@@ -10,7 +10,7 @@ import dev.inmo.tgbotapi.types.business_connection.BusinessConnectionId
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.Sticker
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.StickerContent
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
@@ -32,7 +32,7 @@ public suspend fun TelegramBot.sendSticker(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = execute(
): ChatContentMessage<StickerContent> = execute(
SendSticker(
chatId = chatId,
sticker = sticker,
@@ -68,7 +68,7 @@ public suspend fun TelegramBot.sendSticker(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = sendSticker(
): ChatContentMessage<StickerContent> = sendSticker(
chatId = chat.id,
sticker = sticker,
threadId = threadId,
@@ -102,7 +102,7 @@ public suspend fun TelegramBot.sendSticker(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = sendSticker(
): ChatContentMessage<StickerContent> = sendSticker(
chatId = chatId,
sticker = sticker.fileId,
threadId = threadId,
@@ -136,7 +136,7 @@ public suspend fun TelegramBot.sendSticker(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<StickerContent> = sendSticker(
): ChatContentMessage<StickerContent> = sendSticker(
chat = chat,
sticker = sticker.fileId,
threadId = threadId,

View File

@@ -13,7 +13,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.VideoFile
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.VideoContent
/**
@@ -44,7 +44,7 @@ public suspend fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = execute(
): ChatContentMessage<VideoContent> = execute(
SendVideo(
chatId = chatId,
video = video,
@@ -94,7 +94,7 @@ public suspend fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chatId,
video = video.fileId,
thumb = video.thumbnail ?.fileId,
@@ -148,7 +148,7 @@ public suspend fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chat.id,
video = video,
thumb = thumb,
@@ -197,7 +197,7 @@ public suspend fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chat.id,
video = video,
text = text,
@@ -244,7 +244,7 @@ public suspend inline fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = execute(
): ChatContentMessage<VideoContent> = execute(
SendVideo(
chatId = chatId,
video = video,
@@ -292,7 +292,7 @@ public suspend inline fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chatId,
video = video.fileId,
thumb = video.thumbnail ?.fileId,
@@ -344,7 +344,7 @@ public suspend inline fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chat.id,
video = video,
thumb = thumb,
@@ -391,7 +391,7 @@ public suspend inline fun TelegramBot.sendVideo(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoContent> = sendVideo(
): ChatContentMessage<VideoContent> = sendVideo(
chatId = chat.id,
video = video,
entities = entities,

View File

@@ -9,7 +9,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.files.VideoNoteFile
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.VideoNoteContent
/**
@@ -32,7 +32,7 @@ public suspend fun TelegramBot.sendVideoNote(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = execute(
): ChatContentMessage<VideoNoteContent> = execute(
SendVideoNote(
chatId = chatId,
videoNote = videoNote,
@@ -69,7 +69,7 @@ public suspend fun TelegramBot.sendVideoNote(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = sendVideoNote(
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
chatId = chatId,
videoNote = videoNote.fileId,
thumb = videoNote.thumbnail ?.fileId,
@@ -107,7 +107,7 @@ public suspend fun TelegramBot.sendVideoNote(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = sendVideoNote(
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
chatId = chat.id,
videoNote = videoNote,
thumb = thumb,
@@ -142,7 +142,7 @@ public suspend fun TelegramBot.sendVideoNote(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VideoNoteContent> = sendVideoNote(
): ChatContentMessage<VideoNoteContent> = sendVideoNote(
chatId = chat.id,
videoNote = videoNote,
threadId = threadId,

View File

@@ -11,7 +11,7 @@ import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.chat.Chat
import dev.inmo.tgbotapi.types.files.VoiceFile
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.VoiceContent
/**
@@ -34,7 +34,7 @@ public suspend fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = execute(
): ChatContentMessage<VoiceContent> = execute(
SendVoice(
chatId = chatId,
voice = voice,
@@ -74,7 +74,7 @@ public suspend fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chat.id,
voice = voice,
text = text,
@@ -111,7 +111,7 @@ public suspend fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chatId,
voice = voice.fileId,
text = text,
@@ -148,7 +148,7 @@ public suspend fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chat.id,
voice = voice,
text = text,
@@ -185,7 +185,7 @@ public suspend inline fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = execute(
): ChatContentMessage<VoiceContent> = execute(
SendVoice(
chatId = chatId,
voice = voice,
@@ -223,7 +223,7 @@ public suspend inline fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chat.id,
voice = voice,
entities = entities,
@@ -258,7 +258,7 @@ public suspend inline fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chatId,
voice = voice.fileId,
entities = entities,
@@ -292,7 +292,7 @@ public suspend inline fun TelegramBot.sendVoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<VoiceContent> = sendVoice(
): ChatContentMessage<VoiceContent> = sendVoice(
chatId = chat.id,
voice = voice,
entities = entities,

View File

@@ -8,7 +8,7 @@ import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.CommonUser
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.InvoiceContent
import dev.inmo.tgbotapi.types.payments.LabeledPrice
import dev.inmo.tgbotapi.types.payments.abstracts.Currency
@@ -45,7 +45,7 @@ public suspend fun TelegramBot.sendInvoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<InvoiceContent> = execute(
): ChatContentMessage<InvoiceContent> = execute(
SendInvoice(
chatId = chatId,
title = title,
@@ -107,7 +107,7 @@ public suspend fun TelegramBot.sendInvoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<InvoiceContent> = sendInvoice(
): ChatContentMessage<InvoiceContent> = sendInvoice(
chatId = user.id,
title = title,
description = description,
@@ -159,7 +159,7 @@ public suspend fun TelegramBot.sendInvoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<InvoiceContent> = execute(
): ChatContentMessage<InvoiceContent> = execute(
SendInvoice(
chatId = chatId,
title = title,
@@ -199,7 +199,7 @@ public suspend fun TelegramBot.sendInvoice(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: InlineKeyboardMarkup? = null
): ContentMessage<InvoiceContent> = sendInvoice(
): ChatContentMessage<InvoiceContent> = sendInvoice(
chatId = user.id,
title = title,
description = description,

View File

@@ -8,7 +8,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.media.InputPollMedia
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.PollContent
import dev.inmo.tgbotapi.types.message.textsources.TextSource
import dev.inmo.tgbotapi.types.polls.InputPollOption
@@ -47,7 +47,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
question = question,
@@ -114,7 +114,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
questionEntities = questionEntities,
@@ -179,7 +179,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
question = question,
@@ -242,7 +242,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
questionEntities = questionEntities,
@@ -306,7 +306,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
question = question,
@@ -371,7 +371,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
questionEntities = questionEntities,
@@ -434,7 +434,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
question = question,
@@ -495,7 +495,7 @@ public suspend fun TelegramBot.sendQuizPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendQuizPoll(
chatId = chatId,
questionEntities = questionEntities,

View File

@@ -8,7 +8,7 @@ import dev.inmo.tgbotapi.types.buttons.KeyboardMarkup
import dev.inmo.tgbotapi.types.media.InputPollMedia
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.message.SuggestedPostParameters
import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage
import dev.inmo.tgbotapi.types.message.abstracts.ChatContentMessage
import dev.inmo.tgbotapi.types.message.content.PollContent
import dev.inmo.tgbotapi.types.message.textsources.TextSource
import dev.inmo.tgbotapi.types.polls.InputPollOption
@@ -44,7 +44,7 @@ public suspend fun TelegramBot.sendRegularPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null,
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendRegularPoll(
chatId = chatId,
question = question,
@@ -105,7 +105,7 @@ public suspend fun TelegramBot.sendRegularPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendRegularPoll(
chatId = chatId,
questionTextSources = questionEntities,
@@ -165,7 +165,7 @@ public suspend fun TelegramBot.sendRegularPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendRegularPoll(
chatId = chatId,
question = question,
@@ -224,7 +224,7 @@ public suspend fun TelegramBot.sendRegularPoll(
suggestedPostParameters: SuggestedPostParameters? = null,
replyParameters: ReplyParameters? = null,
replyMarkup: KeyboardMarkup? = null
): ContentMessage<PollContent> = execute(
): ChatContentMessage<PollContent> = execute(
SendRegularPoll(
chatId = chatId,
questionTextSources = questionEntities,