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.UserShared

Contents

Synopsis

UserShared

data UserShared Source #

This object contains information about the user whose identifier was shared with the bot using a KeyboardButtonRequestUser button.

Constructors

UserShared 

Fields

  • userSharedRequestId :: RequestId

    Identifier of the request.

  • userSharedUserId :: 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 a 64-bit integer or double-precision float type are safe for storing this identifier. 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.

Instances

Instances details
FromJSON UserShared Source # 
Instance details

Defined in Telegram.Bot.API.Types.UserShared

ToJSON UserShared Source # 
Instance details

Defined in Telegram.Bot.API.Types.UserShared

Generic UserShared Source # 
Instance details

Defined in Telegram.Bot.API.Types.UserShared

Associated Types

type Rep UserShared :: Type -> Type #

Show UserShared Source # 
Instance details

Defined in Telegram.Bot.API.Types.UserShared

type Rep UserShared Source # 
Instance details

Defined in Telegram.Bot.API.Types.UserShared

type Rep UserShared = D1 ('MetaData "UserShared" "Telegram.Bot.API.Types.UserShared" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "UserShared" 'PrefixI 'True) (S1 ('MetaSel ('Just "userSharedRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestId) :*: S1 ('MetaSel ('Just "userSharedUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserId)))