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

Telegram.Bot.API.Methods.SendContact

Contents

Synopsis

sendContact

data SendContactRequest Source #

Request parameters for sendContact.

Constructors

SendContactRequest 

Fields

Instances

Instances details
FromJSON SendContactRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendContact

ToJSON SendContactRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendContact

Generic SendContactRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendContact

Associated Types

type Rep SendContactRequest :: Type -> Type #

type Rep SendContactRequest Source # 
Instance details

Defined in Telegram.Bot.API.Methods.SendContact

type Rep SendContactRequest = D1 ('MetaData "SendContactRequest" "Telegram.Bot.API.Methods.SendContact" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "SendContactRequest" 'PrefixI 'True) (((S1 ('MetaSel ('Just "sendContactChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeChatId) :*: S1 ('MetaSel ('Just "sendContactMessageThreadId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageThreadId))) :*: (S1 ('MetaSel ('Just "sendContactPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "sendContactFirstName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sendContactLastName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) :*: ((S1 ('MetaSel ('Just "sendContactVcard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "sendContactDisableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sendContactProtectContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "sendContactReplyToMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: (S1 ('MetaSel ('Just "sendContactAllowSendingWithoutReply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sendContactReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineKeyboardMarkup)))))))

sendContact :: SendContactRequest -> ClientM (Response Message) Source #

Use this method to send phone contacts. On success, the sent Message is returned.