Layer 227
MessageEntity
Abstract type representing one of 25 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.MessageEntity interface.
Use any of the following constructors:
InputMessageEntityMentionName
Message entity that can be used to create a user user mention: received mentions use the message Ent
MessageEntityBankCard
Indicates a credit card number
MessageEntityBlockquote
Message entity representing a block quote.
MessageEntityBold
Message entity representing bold text.
MessageEntityBotCommand
Message entity representing a bot /command
MessageEntityCashtag
Message entity representing a $cashtag.
MessageEntityCode
Message entity representing a codeblock.
MessageEntityCustomEmoji
Represents a custom emoji. Note that this entity must wrap exactly one regular emoji (the one contai
MessageEntityDiffDelete
Represents an diff deletion: render it by simply underlining the specified section and coloring it i
MessageEntityDiffInsert
Represents an diff addition: render it by simply underlining the specified section and coloring it i
MessageEntityDiffReplace
Represents an diff replacement, render it as follows:
MessageEntityEmail
Message entity representing an email@example. com.
MessageEntityFormattedDate
Represents a specific point in time, rendered as specified here
MessageEntityHashtag
#hashtag message entity
MessageEntityItalic
Message entity representing italic text.
MessageEntityMention
Message entity mentioning a user by @username; message Entity Mention Name can also be used to mention
MessageEntityMentionName
Message entity representing a user mention: for creating a mention use input Message Entity Mention Nam
MessageEntityPhone
Message entity representing a phone number.
MessageEntityPre
Message entity representing a preformatted codeblock, allowing the user to specify a programming la
MessageEntitySpoiler
Message entity representing a spoiler
MessageEntityStrike
Message entity representing strikethrough text.
MessageEntityTextUrl
Message entity representing a text url: for in-text urls like https://google. com use message Entity U
MessageEntityUnderline
Message entity representing underlined text.
MessageEntityUnknown
Unknown message entity
MessageEntityUrl
Message entity representing an in-text url: https://google. com; for text urls, use message Entity Te
Gogram Example
// MessageEntity is an interface type // You can use any of the following constructors: var _ tg.MessageEntity = &tg.InputMessageEntityMentionName{} var _ tg.MessageEntity = &tg.MessageEntityBankCard{} var _ tg.MessageEntity = &tg.MessageEntityBlockquote{} var _ tg.MessageEntity = &tg.MessageEntityBold{} var _ tg.MessageEntity = &tg.MessageEntityBotCommand{} // ... and 20 more constructors