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

Contents

Synopsis

ForceReply

data ForceReply Source #

Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.

Constructors

ForceReply 

Fields

  • forceReplyForceReply :: Bool

    Shows reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply'

  • forceReplyInputFieldPlaceholder :: Maybe Text

    The placeholder to be shown in the input field when the reply is active; 1-64 characters.

  • forceReplySelective :: Maybe Bool

    Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Instances

Instances details
FromJSON ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types.ForceReply

ToJSON ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types.ForceReply

Generic ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types.ForceReply

Associated Types

type Rep ForceReply :: Type -> Type #

Show ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types.ForceReply

type Rep ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types.ForceReply

type Rep ForceReply = D1 ('MetaData "ForceReply" "Telegram.Bot.API.Types.ForceReply" "telegram-bot-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "ForceReply" 'PrefixI 'True) (S1 ('MetaSel ('Just "forceReplyForceReply") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "forceReplyInputFieldPlaceholder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "forceReplySelective") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))