mention

infix fun String.mention(parseMode: ParseMode): String
infix fun Pair<String, UserId>.mention(parseMode: ParseMode): String


Deprecated

Replaced in core module

Replace with

import dev.inmo.tgbotapi.utils.mention
mention(parts)

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


Deprecated

Replaced in core module

Replace with

import dev.inmo.tgbotapi.utils.mention
mention(init)

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


inline fun EntitiesBuilder.mention(whoToMention: String): EntitiesBuilder

Deprecated

Replaced in core module

Replace with

import dev.inmo.tgbotapi.utils.mention
mention(whoToMention)

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


inline fun EntitiesBuilder.mention(user: User, vararg parts: TextSource): EntitiesBuilder

Deprecated

Replaced in core module

Replace with

import dev.inmo.tgbotapi.utils.mention
mention(user, parts)

Deprecated

Replaced in core module

Replace with

import dev.inmo.tgbotapi.utils.mention
mention(text, user)

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