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

Telegram.Bot.API.Types.SharedUser

Contents

Synopsis

SharedUser

data SharedUser Source #

This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.

Constructors

SharedUser 

Fields

  • sharedUserUserId :: UserId

    Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.

  • sharedUserFirstName :: Maybe Text

    First name of the user, if the name was requested by the bot.

  • sharedUserLastName :: Maybe Text

    Last name of the user, if the name was requested by the bot.

  • sharedUserUsername :: Maybe Text

    Username of the user, if the username was requested by the bot.

  • sharedUserPhoto :: Maybe [PhotoSize]

    Available sizes of the chat photo, if the photo was requested by the bot.3

Instances

Instances details
FromJSON SharedUser Source # 
Instance details

Defined in Telegram.Bot.API.Types.SharedUser

ToJSON SharedUser Source # 
Instance details

Defined in Telegram.Bot.API.Types.SharedUser

Generic SharedUser Source # 
Instance details

Defined in Telegram.Bot.API.Types.SharedUser

Associated Types

type Rep SharedUser :: Type -> Type #

Show SharedUser Source # 
Instance details

Defined in Telegram.Bot.API.Types.SharedUser

type Rep SharedUser Source # 
Instance details

Defined in Telegram.Bot.API.Types.SharedUser

type Rep SharedUser = D1 ('MetaData "SharedUser" "Telegram.Bot.API.Types.SharedUser" "telegram-bot-api-7.3-CA3mRQnnqku1ilrSlViI2K" 'False) (C1 ('MetaCons "SharedUser" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sharedUserUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId) :*: S1 ('MetaSel ('Just "sharedUserFirstName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sharedUserLastName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sharedUserUsername") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sharedUserPhoto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [PhotoSize]))))))