telegramium.bots.high.messageentities.MessageEntityFormat
See theMessageEntityFormat companion object
sealed abstract class MessageEntityFormat extends Product, Serializable
Base class for different types of message entity formats that mirror the ones used by Telegram. Each format corresponds to a specific type of content in a message, such as mentions, hashtags, URLs, and more.
These formats can be used to wrap different parts of a message, which can then be composed to create a complete message. The benefits of this approach:
- It automatically calculates the text offsets and lengths that are required by the Telegram Bot API.
- It allows for generating the plain text of a message from the same source, simplifying the future message and formatting changes.
Note: This lower-level API is not typically used directly. Instead, most users should work with the MessageEntities
API, which provides a higher-level, more user-friendly interface to the same functionality.
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
- Known subtypes
-
class Blockquoteclass Boldclass BotCommandclass Cashtagclass Codeclass CustomEmojiclass Emailclass Hashtagclass Italicclass Mentionclass PhoneNumberclass Plainclass Preclass Spoilerclass Strikethroughclass TextLinkclass TextMentionclass Underlineclass Url
Members list
In this article