Package-level declarations

Types

Link copied to clipboard

This builder can be used to provide building of TextSources List

Functions

Link copied to clipboard
inline fun EntitiesBuilder.bold(vararg parts: TextSource): EntitiesBuilder

Add bold using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.bold

Add bold using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.bold. Will reuse separator config from buildEntities

infix fun String.bold(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.bold with new line at the end

Version of EntitiesBuilder.bold with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Add botCommand using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.botCommand

Link copied to clipboard

Version of EntitiesBuilder.botCommand with new line at the end

Link copied to clipboard
inline fun buildEntities(separator: TextSource? = null, init: EntitiesBuilderBody): TextSourcesList
inline fun buildEntities(separator: String, init: EntitiesBuilderBody): List<TextSource>
Link copied to clipboard

Add cashTag using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.cashTag

Add cashTag using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.cashTag. Will reuse separator config from buildEntities

Link copied to clipboard
infix fun String.cashtag(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.cashTag with new line at the end

Version of EntitiesBuilder.cashTag with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Add code using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.code

infix fun String.code(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.code with new line at the end

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.command(parseMode: ParseMode): String
fun String.command(adapt: String.() -> String): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun createFormattedText(entities: TextSourcesList, partLength: Int = textLength.last, mode: ParseMode = defaultParseMode): List<String>
Link copied to clipboard
fun createHtmlText(entities: TextSourcesList, partLength: Int = textLength.last): List<String>
Link copied to clipboard
fun createMarkdownText(entities: TextSourcesList, partLength: Int = textLength.last): List<String>
Link copied to clipboard
fun createMarkdownV2Text(entities: TextSourcesList, partLength: Int = textLength.last): List<String>
Link copied to clipboard
inline fun EntitiesBuilder.customEmoji(customEmojiId: CustomEmojiId, vararg parts: TextSource): EntitiesBuilder

Add customEmoji using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.customEmoji

Add customEmoji using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.customEmoji. Will reuse separator config from buildEntities

Link copied to clipboard
inline fun EntitiesBuilder.customEmojiln(customEmojiId: CustomEmojiId, vararg parts: TextSource): EntitiesBuilder

Version of EntitiesBuilder.customEmoji with new line at the end

Version of EntitiesBuilder.customEmoji with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
inline fun EntitiesBuilder.email(vararg parts: TextSource): EntitiesBuilder
inline fun EntitiesBuilder.email(emailAddress: String): EntitiesBuilder

Add email using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.email

Add email using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.email. Will reuse separator config from buildEntities

infix fun String.email(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
inline fun EntitiesBuilder.emailln(emailAddress: String): EntitiesBuilder

Version of EntitiesBuilder.email with new line at the end

Version of EntitiesBuilder.email with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.hashTag(parseMode: ParseMode): String
Link copied to clipboard

Add hashtag using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.hashtag

Add hashtag using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.hashtag. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.hashtag with new line at the end

Version of EntitiesBuilder.hashtag with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Add italic using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.italic

Add italic using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.italic. Will reuse separator config from buildEntities

infix fun String.italic(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.italic with new line at the end

Version of EntitiesBuilder.italic with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun Username.link(threadId: MessageThreadId?): String
infix fun Pair<String, String>.link(parseMode: ParseMode): String

Add link using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.link

Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.link with new line at the end

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun makeChatLink(identifier: Identifier, threadId: MessageThreadId? = null): String
Link copied to clipboard
inline fun makeDeepLink(username: Username, startParameter: String): String
Link copied to clipboard
inline fun makeLink(username: Username, threadId: MessageThreadId? = null): String
Link copied to clipboard
fun makeLinkToMessage(username: Username, messageId: MessageId, threadId: MessageThreadId? = null): String
fun makeLinkToMessage(chatId: Identifier, messageId: MessageId, threadId: MessageThreadId? = null): String
fun makeLinkToMessage(username: String, messageId: MessageId, threadId: MessageThreadId? = null): String

fun makeLinkToMessage(chat: Chat, messageId: MessageId): String?

Link which can be used as by any user to get access to Message. Returns null in case when there are no known way to build link (for PrivateChats, for example)

Link copied to clipboard
inline fun makeTelegramDeepLink(username: Username, startParameter: String): String
inline fun makeTelegramDeepLink(username: String, startParameter: String): String
Link copied to clipboard
inline fun makeTelegramStartattach(username: Username, data: String? = null): String
inline fun makeTelegramStartattach(username: String, data: String? = null): String
Link copied to clipboard
fun makeUserLink(userId: UserId): String
Link copied to clipboard
Link copied to clipboard
fun makeUsernameLink(username: String, threadId: MessageThreadId? = null): String
Link copied to clipboard
fun makeUsernameStartattachLink(username: String, data: String? = null): String
Link copied to clipboard
inline fun EntitiesBuilder.mention(whoToMention: String): EntitiesBuilder

Add mention using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.mention

Add mention using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.mention. Will reuse separator config from buildEntities

infix fun Pair<String, UserId>.mention(parseMode: ParseMode): String
infix fun String.mention(parseMode: ParseMode): String
inline fun EntitiesBuilder.mention(user: User, vararg parts: TextSource): EntitiesBuilder
Link copied to clipboard
Link copied to clipboard
inline fun EntitiesBuilder.mentionln(whoToMention: String): EntitiesBuilder
inline fun EntitiesBuilder.mentionln(user: User, vararg parts: TextSource): EntitiesBuilder

Version of EntitiesBuilder.mention with new line at the end

Version of EntitiesBuilder.mention with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun EntitiesBuilder.phone(vararg parts: TextSource): EntitiesBuilder

Add phone using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.phone

Add phone using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.phone. Will reuse separator config from buildEntities

infix fun String.phone(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.phone with new line at the end

Version of EntitiesBuilder.phone with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.pre(parseMode: ParseMode): String
fun String.pre(parseMode: ParseMode, language: String? = null): String

inline fun EntitiesBuilder.pre(code: String, language: String?): EntitiesBuilder

Add pre using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.pre

Link copied to clipboard
fun String.preHTML(language: String? = null): String
Link copied to clipboard
inline fun EntitiesBuilder.preln(code: String, language: String?): List<TextSource>

Version of EntitiesBuilder.pre with new line at the end

Link copied to clipboard
fun String.preMarkdown(language: String? = null): String
Link copied to clipboard
fun String.preMarkdownV2(language: String? = null): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Add spoiler using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.spoiler

Add spoiler using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.spoiler. Will reuse separator config from buildEntities

Link copied to clipboard

Version of EntitiesBuilder.spoiler with new line at the end

Version of EntitiesBuilder.spoiler with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard

Add strikethrough using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.strikethrough

Add strikethrough using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.strikethrough. Will reuse separator config from buildEntities

infix fun String.strikethrough(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.strikethrough with new line at the end

Version of EntitiesBuilder.strikethrough with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard

Crutch for support of strikethrough in default markdown. Simply add modifier, but it will not look like correct

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Add underline using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.underline

Add underline using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.underline. Will reuse separator config from buildEntities

infix fun String.underline(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Version of EntitiesBuilder.underline with new line at the end

Version of EntitiesBuilder.underline with new line at the end. Will reuse separator config from buildEntities

Link copied to clipboard

Crutch for support of underline in default markdown. Simply add modifier, but it will not look like correct

Link copied to clipboard

Properties

Link copied to clipboard

Link which can be used as by any user to get access to Chat. Returns null in case when there are no known way to build link

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Link which can be used as by any user to get access to Chat. Returns null in case when there are no known way to build link

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard