telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.MessageEntity

Synopsis

MessageEntity

data MessageEntity Source #

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

Constructors

MessageEntity 

Fields

Instances

Instances details
FromJSON MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

ToJSON MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

Generic MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

Associated Types

type Rep MessageEntity :: Type -> Type #

Show MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

type Rep MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

type Rep MessageEntity = D1 ('MetaData "MessageEntity" "Telegram.Bot.API.Types.MessageEntity" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "MessageEntity" 'PrefixI 'True) ((S1 ('MetaSel ('Just "messageEntityType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageEntityType) :*: (S1 ('MetaSel ('Just "messageEntityOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "messageEntityLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "messageEntityUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageEntityUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User))) :*: (S1 ('MetaSel ('Just "messageEntityLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageEntityCustomEmojiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

data MessageEntityType Source #

Type of the entity. Can be mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), underline (underlined text), strikethrough, code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames), cashtag, phone_number

Instances

Instances details
FromJSON MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

ToJSON MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

Generic MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

Associated Types

type Rep MessageEntityType :: Type -> Type #

Show MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

Eq MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

type Rep MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types.MessageEntity

type Rep MessageEntityType = D1 ('MetaData "MessageEntityType" "Telegram.Bot.API.Types.MessageEntity" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) ((((C1 ('MetaCons "MessageEntityMention" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityHashtag" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MessageEntityBotCommand" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityUrl" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MessageEntityEmail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityBold" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MessageEntityItalic" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityUnderline" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "MessageEntityStrikethrough" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityCode" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MessageEntityPre" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityTextLink" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MessageEntityTextMention" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityCashtag" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MessageEntityPhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MessageEntitySpoiler" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageEntityCustomEmoji" 'PrefixI 'False) (U1 :: Type -> Type))))))