telegram-bot-simple-0.5.2: Easy to use library for building Telegram bots.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Types

Synopsis

Documentation

type RequiredQueryParam = QueryParam' '[Required, Strict] Source #

newtype Seconds Source #

Constructors

Seconds Int 

Instances

Instances details
Eq Seconds Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

(==) :: Seconds -> Seconds -> Bool #

(/=) :: Seconds -> Seconds -> Bool #

Num Seconds Source # 
Instance details

Defined in Telegram.Bot.API.Types

Show Seconds Source # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Seconds Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Seconds

parseJSONList :: Value -> Parser [Seconds]

ToJSON Seconds Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Seconds -> Value

toEncoding :: Seconds -> Encoding

toJSONList :: [Seconds] -> Value

toEncodingList :: [Seconds] -> Encoding

Available types

User

data User Source #

This object represents a Telegram user or bot.

https://core.telegram.org/bots/api#user

Constructors

User 

Fields

Instances

Instances details
Show User Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

FromJSON User Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser User

parseJSONList :: Value -> Parser [User]

ToJSON User Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: User -> Value

toEncoding :: User -> Encoding

toJSONList :: [User] -> Value

toEncodingList :: [User] -> Encoding

type Rep User Source # 
Instance details

Defined in Telegram.Bot.API.Types

newtype UserId Source #

Unique identifier for this user or bot.

Constructors

UserId Integer 

Instances

Instances details
Eq UserId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

(==) :: UserId -> UserId -> Bool #

(/=) :: UserId -> UserId -> Bool #

Show UserId Source # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON UserId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser UserId

parseJSONList :: Value -> Parser [UserId]

ToJSON UserId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: UserId -> Value

toEncoding :: UserId -> Encoding

toJSONList :: [UserId] -> Value

toEncodingList :: [UserId] -> Encoding

ToHttpApiData UserId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Chat

data Chat Source #

This object represents a chat.

https://core.telegram.org/bots/api#chat

Constructors

Chat 

Fields

Instances

Instances details
Show Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Chat -> ShowS #

show :: Chat -> String #

showList :: [Chat] -> ShowS #

Generic Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Chat :: Type -> Type #

Methods

from :: Chat -> Rep Chat x #

to :: Rep Chat x -> Chat #

FromJSON Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Chat

parseJSONList :: Value -> Parser [Chat]

ToJSON Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Chat -> Value

toEncoding :: Chat -> Encoding

toJSONList :: [Chat] -> Value

toEncodingList :: [Chat] -> Encoding

type Rep Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Chat = D1 ('MetaData "Chat" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Chat" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "chatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatId) :*: S1 ('MetaSel ('Just "chatType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatType)) :*: (S1 ('MetaSel ('Just "chatTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "chatUsername") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "chatFirstName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "chatLastName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "chatPhoto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatPhoto))) :*: (S1 ('MetaSel ('Just "chatBio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "chatHasPrivateForwards") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "chatInviteLink") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "chatPinnedMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Message))) :*: (S1 ('MetaSel ('Just "chatPermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatPermissions)) :*: (S1 ('MetaSel ('Just "chatSlowModeDelay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "chatMessageAutoDeleteTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe POSIXTime))))) :*: ((S1 ('MetaSel ('Just "chatHasProtectedContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatStickerSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "chatCanSetStickerSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatLinkedChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatId)) :*: S1 ('MetaSel ('Just "chatLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatLocation))))))))

newtype ChatId Source #

Unique identifier for this chat.

Constructors

ChatId Integer 

Instances

Instances details
Eq ChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

(==) :: ChatId -> ChatId -> Bool #

(/=) :: ChatId -> ChatId -> Bool #

Show ChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ChatId

parseJSONList :: Value -> Parser [ChatId]

ToJSON ChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ChatId -> Value

toEncoding :: ChatId -> Encoding

toJSONList :: [ChatId] -> Value

toEncodingList :: [ChatId] -> Encoding

Hashable ChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

hashWithSalt :: Int -> ChatId -> Int

hash :: ChatId -> Int

ToHttpApiData ChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

data ChatType Source #

Type of chat.

Instances

Instances details
Show ChatType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatType :: Type -> Type #

Methods

from :: ChatType -> Rep ChatType x #

to :: Rep ChatType x -> ChatType #

FromJSON ChatType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ChatType

parseJSONList :: Value -> Parser [ChatType]

ToJSON ChatType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ChatType -> Value

toEncoding :: ChatType -> Encoding

toJSONList :: [ChatType] -> Value

toEncodingList :: [ChatType] -> Encoding

type Rep ChatType Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatType = D1 ('MetaData "ChatType" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) ((C1 ('MetaCons "ChatTypePrivate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatTypeGroup" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ChatTypeSupergroup" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatTypeChannel" 'PrefixI 'False) (U1 :: Type -> Type)))

Message

data Message Source #

This object represents a message.

Constructors

Message 

Fields

Instances

Instances details
Show Message Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Message Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

FromJSON Message Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Message

parseJSONList :: Value -> Parser [Message]

ToJSON Message Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Message -> Value

toEncoding :: Message -> Encoding

toJSONList :: [Message] -> Value

toEncodingList :: [Message] -> Encoding

type Rep Message Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Message = D1 ('MetaData "Message" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Message" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "messageMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: (S1 ('MetaSel ('Just "messageFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Just "messageSenderChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Chat)))) :*: ((S1 ('MetaSel ('Just "messageDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime) :*: S1 ('MetaSel ('Just "messageChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Chat)) :*: (S1 ('MetaSel ('Just "messageForwardFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Just "messageForwardFromChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Chat))))) :*: ((S1 ('MetaSel ('Just "messageForwardFromMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: (S1 ('MetaSel ('Just "messageForwardSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageForwardSenderName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "messageForwardDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe POSIXTime)) :*: S1 ('MetaSel ('Just "messageIsAutomaticForward") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "messageReplyToMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Message)) :*: S1 ('MetaSel ('Just "messageViaBot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User)))))) :*: (((S1 ('MetaSel ('Just "messageEditDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe POSIXTime)) :*: (S1 ('MetaSel ('Just "messageHasProtectedContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "messageMediaGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MediaGroupId)))) :*: ((S1 ('MetaSel ('Just "messageAuthorSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "messageEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: S1 ('MetaSel ('Just "messageAnimation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Animation))))) :*: (((S1 ('MetaSel ('Just "messageAudio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Audio)) :*: S1 ('MetaSel ('Just "messageDocument") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Document))) :*: (S1 ('MetaSel ('Just "messagePhoto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [PhotoSize])) :*: S1 ('MetaSel ('Just "messageSticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Sticker)))) :*: ((S1 ('MetaSel ('Just "messageVideo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Video)) :*: S1 ('MetaSel ('Just "messageVideoNote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe VideoNote))) :*: (S1 ('MetaSel ('Just "messageVoice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Voice)) :*: S1 ('MetaSel ('Just "messageCaption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))) :*: ((((S1 ('MetaSel ('Just "messageCaptionEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: (S1 ('MetaSel ('Just "messageContact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Contact)) :*: S1 ('MetaSel ('Just "messageDice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Dice)))) :*: ((S1 ('MetaSel ('Just "messageGame") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Game)) :*: S1 ('MetaSel ('Just "messagePoll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Poll))) :*: (S1 ('MetaSel ('Just "messageVenue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Venue)) :*: S1 ('MetaSel ('Just "messageLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Location))))) :*: (((S1 ('MetaSel ('Just "messageNewChatMembers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [User])) :*: S1 ('MetaSel ('Just "messageLeftChatMember") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User))) :*: (S1 ('MetaSel ('Just "messageNewChatTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageNewChatPhoto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [PhotoSize])))) :*: ((S1 ('MetaSel ('Just "messageDeleteChatPhoto") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "messageGroupChatCreated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "messageSupergroupChatCreated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "messageChannelChatCreated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "messageAutoDeleteTimerChanged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageAutoDeleteTimerChanged)) :*: (S1 ('MetaSel ('Just "messageMigrateToChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatId)) :*: S1 ('MetaSel ('Just "messageMigrateFromChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatId)))) :*: ((S1 ('MetaSel ('Just "messagePinnedMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Message)) :*: S1 ('MetaSel ('Just "messageInvoice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Invoice))) :*: (S1 ('MetaSel ('Just "messageSuccessfulPayment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SuccessfulPayment)) :*: S1 ('MetaSel ('Just "messageConnectedWebsite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "messagePassportData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PassportData)) :*: S1 ('MetaSel ('Just "messageProximityAlertTriggered") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ProximityAlertTriggered))) :*: (S1 ('MetaSel ('Just "messageVideoChatScheduled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe VideoChatScheduled)) :*: S1 ('MetaSel ('Just "messageVideoChatStarted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe VideoChatStarted)))) :*: ((S1 ('MetaSel ('Just "messageVideoChatEnded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe VideoChatEnded)) :*: S1 ('MetaSel ('Just "messageVideoChatParticipantsInvited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe VideoChatParticipantsInvited))) :*: (S1 ('MetaSel ('Just "messageWebAppData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WebAppData)) :*: S1 ('MetaSel ('Just "messageReplyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineKeyboardMarkup)))))))))

newtype MessageId Source #

Unique message identifier inside this chat.

Constructors

MessageId Integer 

Instances

Instances details
Eq MessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Show MessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON MessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser MessageId

parseJSONList :: Value -> Parser [MessageId]

ToJSON MessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: MessageId -> Value

toEncoding :: MessageId -> Encoding

toJSONList :: [MessageId] -> Value

toEncodingList :: [MessageId] -> Encoding

Hashable MessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

ToHttpApiData MessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

newtype MediaGroupId Source #

The unique identifier of a media message group a message belongs to.

Constructors

MediaGroupId Text 

Instances

Instances details
Eq MediaGroupId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Show MediaGroupId Source # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON MediaGroupId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser MediaGroupId

parseJSONList :: Value -> Parser [MediaGroupId]

ToJSON MediaGroupId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: MediaGroupId -> Value

toEncoding :: MediaGroupId -> Encoding

toJSONList :: [MediaGroupId] -> Value

toEncodingList :: [MediaGroupId] -> Encoding

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
Show MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep MessageEntity :: Type -> Type #

FromJSON MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser MessageEntity

parseJSONList :: Value -> Parser [MessageEntity]

ToJSON MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: MessageEntity -> Value

toEncoding :: MessageEntity -> Encoding

toJSONList :: [MessageEntity] -> Value

toEncodingList :: [MessageEntity] -> Encoding

type Rep MessageEntity Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageEntity = D1 ('MetaData "MessageEntity" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" '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))))))

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
Eq MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Show MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep MessageEntityType :: Type -> Type #

FromJSON MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser MessageEntityType

parseJSONList :: Value -> Parser [MessageEntityType]

ToJSON MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageEntityType Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageEntityType = D1 ('MetaData "MessageEntityType" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" '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)))))

PhotoSize

data PhotoSize Source #

This object represents one size of a photo or a file / sticker thumbnail.

Constructors

PhotoSize 

Fields

Instances

Instances details
Show PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PhotoSize :: Type -> Type #

FromJSON PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PhotoSize

parseJSONList :: Value -> Parser [PhotoSize]

ToJSON PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: PhotoSize -> Value

toEncoding :: PhotoSize -> Encoding

toJSONList :: [PhotoSize] -> Value

toEncodingList :: [PhotoSize] -> Encoding

type Rep PhotoSize Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PhotoSize = D1 ('MetaData "PhotoSize" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PhotoSize" 'PrefixI 'True) ((S1 ('MetaSel ('Just "photoSizeFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "photoSizeFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "photoSizeWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "photoSizeHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "photoSizeFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))))

newtype FileId Source #

Unique identifier for this file.

Constructors

FileId Text 

Instances

Instances details
Eq FileId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

(==) :: FileId -> FileId -> Bool #

(/=) :: FileId -> FileId -> Bool #

Show FileId Source # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON FileId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser FileId

parseJSONList :: Value -> Parser [FileId]

ToJSON FileId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: FileId -> Value

toEncoding :: FileId -> Encoding

toJSONList :: [FileId] -> Value

toEncodingList :: [FileId] -> Encoding

ToHttpApiData FileId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Animation

data Animation Source #

This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).

Constructors

Animation 

Fields

Instances

Instances details
Show Animation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Animation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Animation :: Type -> Type #

FromJSON Animation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Animation

parseJSONList :: Value -> Parser [Animation]

ToJSON Animation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Animation -> Value

toEncoding :: Animation -> Encoding

toJSONList :: [Animation] -> Value

toEncodingList :: [Animation] -> Encoding

type Rep Animation Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Animation = D1 ('MetaData "Animation" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Animation" 'PrefixI 'True) (((S1 ('MetaSel ('Just "animationFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "animationFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "animationWidth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "animationHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "animationDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds) :*: S1 ('MetaSel ('Just "animationThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhotoSize))) :*: (S1 ('MetaSel ('Just "animationFileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "animationMimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "animationFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))))))

Audio

data Audio Source #

This object represents an audio file to be treated as music by the Telegram clients.

Constructors

Audio 

Fields

Instances

Instances details
Show Audio Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Audio -> ShowS #

show :: Audio -> String #

showList :: [Audio] -> ShowS #

Generic Audio Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Audio :: Type -> Type #

Methods

from :: Audio -> Rep Audio x #

to :: Rep Audio x -> Audio #

FromJSON Audio Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Audio

parseJSONList :: Value -> Parser [Audio]

ToJSON Audio Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Audio -> Value

toEncoding :: Audio -> Encoding

toJSONList :: [Audio] -> Value

toEncodingList :: [Audio] -> Encoding

type Rep Audio Source # 
Instance details

Defined in Telegram.Bot.API.Types

Document

data Document Source #

This object represents a general file (as opposed to photos, voice messages and audio files).

Constructors

Document 

Fields

Instances

Instances details
Show Document Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Document Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Document :: Type -> Type #

Methods

from :: Document -> Rep Document x #

to :: Rep Document x -> Document #

FromJSON Document Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Document

parseJSONList :: Value -> Parser [Document]

ToJSON Document Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Document -> Value

toEncoding :: Document -> Encoding

toJSONList :: [Document] -> Value

toEncodingList :: [Document] -> Encoding

type Rep Document Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Document = D1 ('MetaData "Document" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Document" 'PrefixI 'True) ((S1 ('MetaSel ('Just "documentFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: (S1 ('MetaSel ('Just "documentFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "documentThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhotoSize)))) :*: (S1 ('MetaSel ('Just "documentFileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "documentMimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "documentFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))))

Video

data Video Source #

This object represents a video file.

Constructors

Video 

Fields

Instances

Instances details
Show Video Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Video -> ShowS #

show :: Video -> String #

showList :: [Video] -> ShowS #

Generic Video Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Video :: Type -> Type #

Methods

from :: Video -> Rep Video x #

to :: Rep Video x -> Video #

FromJSON Video Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Video

parseJSONList :: Value -> Parser [Video]

ToJSON Video Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Video -> Value

toEncoding :: Video -> Encoding

toJSONList :: [Video] -> Value

toEncodingList :: [Video] -> Encoding

type Rep Video Source # 
Instance details

Defined in Telegram.Bot.API.Types

VideoNote

data VideoNote Source #

This object represents a video message (available in Telegram apps as of v.4.0).

Constructors

VideoNote 

Fields

Instances

Instances details
Show VideoNote Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic VideoNote Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep VideoNote :: Type -> Type #

FromJSON VideoNote Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser VideoNote

parseJSONList :: Value -> Parser [VideoNote]

ToJSON VideoNote Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: VideoNote -> Value

toEncoding :: VideoNote -> Encoding

toJSONList :: [VideoNote] -> Value

toEncodingList :: [VideoNote] -> Encoding

type Rep VideoNote Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoNote = D1 ('MetaData "VideoNote" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "VideoNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "videoNoteFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: (S1 ('MetaSel ('Just "videoNoteFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "videoNoteLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "videoNoteDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds) :*: (S1 ('MetaSel ('Just "videoNoteThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhotoSize)) :*: S1 ('MetaSel ('Just "videoNoteFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))))

Voice

data Voice Source #

This object represents a voice note.

Constructors

Voice 

Fields

Instances

Instances details
Show Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Voice -> ShowS #

show :: Voice -> String #

showList :: [Voice] -> ShowS #

Generic Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Voice :: Type -> Type #

Methods

from :: Voice -> Rep Voice x #

to :: Rep Voice x -> Voice #

FromJSON Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Voice

parseJSONList :: Value -> Parser [Voice]

ToJSON Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Voice -> Value

toEncoding :: Voice -> Encoding

toJSONList :: [Voice] -> Value

toEncodingList :: [Voice] -> Encoding

type Rep Voice Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Voice = D1 ('MetaData "Voice" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Voice" 'PrefixI 'True) ((S1 ('MetaSel ('Just "voiceFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "voiceFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "voiceDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds) :*: (S1 ('MetaSel ('Just "voiceMimeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "voiceFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))))

Contact

data Contact Source #

This object represents a phone contact.

Constructors

Contact 

Fields

Instances

Instances details
Show Contact Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Contact Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Contact :: Type -> Type #

Methods

from :: Contact -> Rep Contact x #

to :: Rep Contact x -> Contact #

FromJSON Contact Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Contact

parseJSONList :: Value -> Parser [Contact]

ToJSON Contact Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Contact -> Value

toEncoding :: Contact -> Encoding

toJSONList :: [Contact] -> Value

toEncodingList :: [Contact] -> Encoding

type Rep Contact Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Contact = D1 ('MetaData "Contact" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Contact" 'PrefixI 'True) ((S1 ('MetaSel ('Just "contactPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "contactFirstName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "contactLastName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "contactUserId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UserId)) :*: S1 ('MetaSel ('Just "contactVcard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

Dice

data Dice Source #

This object represents an animated emoji that displays a random value.

Constructors

Dice 

Fields

  • diceEmoji :: Text

    Emoji on which the dice throw animation is based.

  • diceValue :: Int

    Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji

Instances

Instances details
Show Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Dice -> ShowS #

show :: Dice -> String #

showList :: [Dice] -> ShowS #

Generic Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Dice :: Type -> Type #

Methods

from :: Dice -> Rep Dice x #

to :: Rep Dice x -> Dice #

FromJSON Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Dice

parseJSONList :: Value -> Parser [Dice]

ToJSON Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Dice -> Value

toEncoding :: Dice -> Encoding

toJSONList :: [Dice] -> Value

toEncodingList :: [Dice] -> Encoding

type Rep Dice Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Dice = D1 ('MetaData "Dice" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Dice" 'PrefixI 'True) (S1 ('MetaSel ('Just "diceEmoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "diceValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

PollOption

data PollOption Source #

This object contains information about one answer option in a poll.

Constructors

PollOption 

Fields

Instances

Instances details
Show PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PollOption :: Type -> Type #

FromJSON PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PollOption

parseJSONList :: Value -> Parser [PollOption]

ToJSON PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: PollOption -> Value

toEncoding :: PollOption -> Encoding

toJSONList :: [PollOption] -> Value

toEncodingList :: [PollOption] -> Encoding

type Rep PollOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PollOption = D1 ('MetaData "PollOption" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PollOption" 'PrefixI 'True) (S1 ('MetaSel ('Just "pollOptionText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "pollOptionVoterCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

PollAnswer

data PollAnswer Source #

This object represents an answer of a user in a non-anonymous poll.

Constructors

PollAnswer 

Fields

Instances

Instances details
Show PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PollAnswer :: Type -> Type #

type Rep PollAnswer Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PollAnswer = D1 ('MetaData "PollAnswer" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PollAnswer" 'PrefixI 'True) (S1 ('MetaSel ('Just "pollAnswerPollId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PollId) :*: (S1 ('MetaSel ('Just "pollAnswerUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: S1 ('MetaSel ('Just "pollAnswerOptionIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Int]))))

newtype PollId Source #

Unique poll identifier.

Constructors

PollId Text 

Instances

Instances details
Eq PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

(==) :: PollId -> PollId -> Bool #

(/=) :: PollId -> PollId -> Bool #

Show PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PollId

parseJSONList :: Value -> Parser [PollId]

ToJSON PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: PollId -> Value

toEncoding :: PollId -> Encoding

toJSONList :: [PollId] -> Value

toEncodingList :: [PollId] -> Encoding

Poll

data Poll Source #

Constructors

Poll 

Fields

Instances

Instances details
Show Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Poll -> ShowS #

show :: Poll -> String #

showList :: [Poll] -> ShowS #

Generic Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Poll :: Type -> Type #

Methods

from :: Poll -> Rep Poll x #

to :: Rep Poll x -> Poll #

FromJSON Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Poll

parseJSONList :: Value -> Parser [Poll]

ToJSON Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Poll -> Value

toEncoding :: Poll -> Encoding

toJSONList :: [Poll] -> Value

toEncodingList :: [Poll] -> Encoding

type Rep Poll Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Poll = D1 ('MetaData "Poll" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Poll" 'PrefixI 'True) (((S1 ('MetaSel ('Just "pollId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PollId) :*: (S1 ('MetaSel ('Just "pollQuestion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "pollOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PollOption]))) :*: (S1 ('MetaSel ('Just "pollTotalVoterCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "pollIsClosed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "pollIsAnonymous") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "pollType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PollType) :*: (S1 ('MetaSel ('Just "pollAllowsMultipleAnswers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "pollCorrectOptionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "pollExplanation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pollExplanationEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity]))) :*: (S1 ('MetaSel ('Just "pollOpenPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seconds)) :*: S1 ('MetaSel ('Just "pollCloseData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe POSIXTime)))))))

Location

data Location Source #

This object represents a point on the map.

Constructors

Location 

Fields

Instances

Instances details
Show Location Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Location Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Location :: Type -> Type #

Methods

from :: Location -> Rep Location x #

to :: Rep Location x -> Location #

FromJSON Location Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Location

parseJSONList :: Value -> Parser [Location]

ToJSON Location Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Location -> Value

toEncoding :: Location -> Encoding

toJSONList :: [Location] -> Value

toEncodingList :: [Location] -> Encoding

type Rep Location Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Location = D1 ('MetaData "Location" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Location" 'PrefixI 'True) ((S1 ('MetaSel ('Just "locationLongitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float) :*: (S1 ('MetaSel ('Just "locationLatitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float) :*: S1 ('MetaSel ('Just "locationHorizontalAccuracy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Float)))) :*: (S1 ('MetaSel ('Just "locationLivePeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seconds)) :*: (S1 ('MetaSel ('Just "locationHeading") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "locationProximityAlertRadius") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))))

Venue

data Venue Source #

This object represents a venue.

Constructors

Venue 

Fields

Instances

Instances details
Show Venue Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Venue -> ShowS #

show :: Venue -> String #

showList :: [Venue] -> ShowS #

Generic Venue Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Venue :: Type -> Type #

Methods

from :: Venue -> Rep Venue x #

to :: Rep Venue x -> Venue #

FromJSON Venue Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Venue

parseJSONList :: Value -> Parser [Venue]

ToJSON Venue Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Venue -> Value

toEncoding :: Venue -> Encoding

toJSONList :: [Venue] -> Value

toEncodingList :: [Venue] -> Encoding

type Rep Venue Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Venue = D1 ('MetaData "Venue" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Venue" 'PrefixI 'True) ((S1 ('MetaSel ('Just "venueLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: (S1 ('MetaSel ('Just "venueTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "venueAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "venueFoursquareId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "venueFoursquareType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "venueGooglePlaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "venueGooglePlaceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

ProximityAlertTriggered

data ProximityAlertTriggered Source #

This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.

Constructors

ProximityAlertTriggered 

Fields

Instances

Instances details
Show ProximityAlertTriggered Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ProximityAlertTriggered Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ProximityAlertTriggered :: Type -> Type #

FromJSON ProximityAlertTriggered Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ProximityAlertTriggered

parseJSONList :: Value -> Parser [ProximityAlertTriggered]

ToJSON ProximityAlertTriggered Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ProximityAlertTriggered Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ProximityAlertTriggered = D1 ('MetaData "ProximityAlertTriggered" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ProximityAlertTriggered" 'PrefixI 'True) (S1 ('MetaSel ('Just "proximityAlertTriggeredTraveler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: (S1 ('MetaSel ('Just "proximityAlertTriggeredWatcher") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: S1 ('MetaSel ('Just "proximityAlertTriggeredDistance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))

MessageAutoDeleteTimerChanged

data MessageAutoDeleteTimerChanged Source #

This object represents a service message about a change in auto-delete timer settings.

Constructors

MessageAutoDeleteTimerChanged 

Fields

Instances

Instances details
Show MessageAutoDeleteTimerChanged Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic MessageAutoDeleteTimerChanged Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep MessageAutoDeleteTimerChanged :: Type -> Type #

FromJSON MessageAutoDeleteTimerChanged Source # 
Instance details

Defined in Telegram.Bot.API.Types

ToJSON MessageAutoDeleteTimerChanged Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageAutoDeleteTimerChanged Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageAutoDeleteTimerChanged = D1 ('MetaData "MessageAutoDeleteTimerChanged" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "MessageAutoDeleteTimerChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageAutoDeleteTimerChangedMessageAutoDeleteTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds)))

VideoChatScheduled

data VideoChatScheduled Source #

This object represents a service message about a video chat scheduled in the chat.

Constructors

VideoChatScheduled 

Fields

Instances

Instances details
Show VideoChatScheduled Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic VideoChatScheduled Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep VideoChatScheduled :: Type -> Type #

FromJSON VideoChatScheduled Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser VideoChatScheduled

parseJSONList :: Value -> Parser [VideoChatScheduled]

ToJSON VideoChatScheduled Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoChatScheduled Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoChatScheduled = D1 ('MetaData "VideoChatScheduled" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "VideoChatScheduled" 'PrefixI 'True) (S1 ('MetaSel ('Just "videoChatScheduledStartDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime)))

VideoChatStarted

data VideoChatStarted Source #

This object represents a service message about a video chat started in the chat. Currently holds no information.

Constructors

VideoChatStarted 

Instances

Instances details
Show VideoChatStarted Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic VideoChatStarted Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep VideoChatStarted :: Type -> Type #

FromJSON VideoChatStarted Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser VideoChatStarted

parseJSONList :: Value -> Parser [VideoChatStarted]

ToJSON VideoChatStarted Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoChatStarted Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoChatStarted = D1 ('MetaData "VideoChatStarted" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "VideoChatStarted" 'PrefixI 'False) (U1 :: Type -> Type))

VideoChatEnded

data VideoChatEnded Source #

This object represents a service message about a video chat ended in the chat.

Constructors

VideoChatEnded 

Fields

Instances

Instances details
Show VideoChatEnded Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic VideoChatEnded Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep VideoChatEnded :: Type -> Type #

FromJSON VideoChatEnded Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser VideoChatEnded

parseJSONList :: Value -> Parser [VideoChatEnded]

ToJSON VideoChatEnded Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: VideoChatEnded -> Value

toEncoding :: VideoChatEnded -> Encoding

toJSONList :: [VideoChatEnded] -> Value

toEncodingList :: [VideoChatEnded] -> Encoding

type Rep VideoChatEnded Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoChatEnded = D1 ('MetaData "VideoChatEnded" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "VideoChatEnded" 'PrefixI 'True) (S1 ('MetaSel ('Just "videoChatEndedDuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Seconds)))

VideoChatParticipantsInvited

data VideoChatParticipantsInvited Source #

Constructors

VideoChatParticipantsInvited 

Fields

Instances

Instances details
Show VideoChatParticipantsInvited Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic VideoChatParticipantsInvited Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep VideoChatParticipantsInvited :: Type -> Type #

FromJSON VideoChatParticipantsInvited Source # 
Instance details

Defined in Telegram.Bot.API.Types

ToJSON VideoChatParticipantsInvited Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoChatParticipantsInvited Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoChatParticipantsInvited = D1 ('MetaData "VideoChatParticipantsInvited" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "VideoChatParticipantsInvited" 'PrefixI 'True) (S1 ('MetaSel ('Just "videoChatParticipantsInvitedUsers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [User]))))

UserProfilePhotos

data UserProfilePhotos Source #

This object represent a user's profile pictures.

Constructors

UserProfilePhotos 

Fields

Instances

Instances details
Show UserProfilePhotos Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic UserProfilePhotos Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep UserProfilePhotos :: Type -> Type #

FromJSON UserProfilePhotos Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser UserProfilePhotos

parseJSONList :: Value -> Parser [UserProfilePhotos]

ToJSON UserProfilePhotos Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep UserProfilePhotos Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep UserProfilePhotos = D1 ('MetaData "UserProfilePhotos" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "UserProfilePhotos" 'PrefixI 'True) (S1 ('MetaSel ('Just "userProfilePhotosTotalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "userProfilePhotosPhotos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[PhotoSize]])))

WebAppData

data WebAppData Source #

Constructors

WebAppData 

Fields

  • webAppDataData :: Text

    The data. Be aware that a bad client can send arbitrary data in this field.

  • webAppDataButtonText :: Text

    Text of the web_app keyboard button, from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.

Instances

Instances details
Show WebAppData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic WebAppData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep WebAppData :: Type -> Type #

FromJSON WebAppData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser WebAppData

parseJSONList :: Value -> Parser [WebAppData]

ToJSON WebAppData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: WebAppData -> Value

toEncoding :: WebAppData -> Encoding

toJSONList :: [WebAppData] -> Value

toEncodingList :: [WebAppData] -> Encoding

type Rep WebAppData Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep WebAppData = D1 ('MetaData "WebAppData" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "WebAppData" 'PrefixI 'True) (S1 ('MetaSel ('Just "webAppDataData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "webAppDataButtonText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

File

data File Source #

This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.

Constructors

File 

Fields

Instances

Instances details
Show File Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #

Generic File Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep File :: Type -> Type #

Methods

from :: File -> Rep File x #

to :: Rep File x -> File #

FromJSON File Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser File

parseJSONList :: Value -> Parser [File]

ToJSON File Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: File -> Value

toEncoding :: File -> Encoding

toJSONList :: [File] -> Value

toEncodingList :: [File] -> Encoding

type Rep File Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep File = D1 ('MetaData "File" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "File" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fileFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "fileFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "fileFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "fileFilePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))

data InputFile Source #

Instances

Instances details
ToJSON InputFile Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: InputFile -> Value

toEncoding :: InputFile -> Encoding

toJSONList :: [InputFile] -> Value

toEncodingList :: [InputFile] -> Encoding

ReplyKeyboardMarkup

data ReplyKeyboardMarkup Source #

This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).

Constructors

ReplyKeyboardMarkup 

Fields

  • replyKeyboardMarkupKeyboard :: [[KeyboardButton]]

    Array of button rows, each represented by an Array of KeyboardButton objects

  • replyKeyboardMarkupResizeKeyboard :: Maybe Bool

    Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.

  • replyKeyboardMarkupOneTimeKeyboard :: Maybe Bool

    Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again. Defaults to false.

  • replyKeyboardMarkupInputFieldSelector :: Maybe Text

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

  • replyKeyboardMarkupSelective :: Maybe Bool

    Use this parameter if you want to show the keyboard to 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.

    Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.

Instances

Instances details
Show ReplyKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ReplyKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ReplyKeyboardMarkup :: Type -> Type #

FromJSON ReplyKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ReplyKeyboardMarkup

parseJSONList :: Value -> Parser [ReplyKeyboardMarkup]

ToJSON ReplyKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardMarkup = D1 ('MetaData "ReplyKeyboardMarkup" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ReplyKeyboardMarkup" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyKeyboardMarkupKeyboard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[KeyboardButton]]) :*: S1 ('MetaSel ('Just "replyKeyboardMarkupResizeKeyboard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "replyKeyboardMarkupOneTimeKeyboard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "replyKeyboardMarkupInputFieldSelector") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "replyKeyboardMarkupSelective") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))

KeyboardButton

newtype WebAppInfo Source #

Constructors

WebAppInfo 

Fields

Instances

Instances details
Show WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep WebAppInfo :: Type -> Type #

FromJSON WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser WebAppInfo

parseJSONList :: Value -> Parser [WebAppInfo]

ToJSON WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: WebAppInfo -> Value

toEncoding :: WebAppInfo -> Encoding

toJSONList :: [WebAppInfo] -> Value

toEncodingList :: [WebAppInfo] -> Encoding

type Rep WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep WebAppInfo = D1 ('MetaData "WebAppInfo" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'True) (C1 ('MetaCons "WebAppInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "webAppInfoUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data KeyboardButton Source #

This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive.

Constructors

KeyboardButton 

Fields

Instances

Instances details
Show KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

IsString KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep KeyboardButton :: Type -> Type #

FromJSON KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser KeyboardButton

parseJSONList :: Value -> Parser [KeyboardButton]

ToJSON KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: KeyboardButton -> Value

toEncoding :: KeyboardButton -> Encoding

toJSONList :: [KeyboardButton] -> Value

toEncodingList :: [KeyboardButton] -> Encoding

type Rep KeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep KeyboardButton = D1 ('MetaData "KeyboardButton" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "KeyboardButton" 'PrefixI 'True) ((S1 ('MetaSel ('Just "keyboardButtonText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "keyboardButtonRequestContact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "keyboardButtonRequestLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "keyboardButtonRequestPoll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PollType)) :*: S1 ('MetaSel ('Just "keyboardButtonWebApp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WebAppInfo))))))

MenuButton

data MenuButton Source #

This object describes the bot's menu button in a private chat. If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.

Constructors

MenuButtonCommands

Represents a menu button, which opens the bot's list of commands.

MenuButtonWebApp

Represents a menu button, which launches a Web App.

MenuButtonDefault

Describes that no specific value for the menu button was set.

Instances

Instances details
Generic MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep MenuButton :: Type -> Type #

FromJSON MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser MenuButton

parseJSONList :: Value -> Parser [MenuButton]

ToJSON MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: MenuButton -> Value

toEncoding :: MenuButton -> Encoding

toJSONList :: [MenuButton] -> Value

toEncodingList :: [MenuButton] -> Encoding

type Rep MenuButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MenuButton = D1 ('MetaData "MenuButton" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "MenuButtonCommands" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MenuButtonWebApp" 'PrefixI 'True) (S1 ('MetaSel ('Just "menuButtonWebAppText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "menuButtonWebAppWebApp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WebAppInfo)) :+: C1 ('MetaCons "MenuButtonDefault" 'PrefixI 'False) (U1 :: Type -> Type)))

PollType

data PollType Source #

Instances

Instances details
Show PollType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PollType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PollType :: Type -> Type #

Methods

from :: PollType -> Rep PollType x #

to :: Rep PollType x -> PollType #

FromJSON PollType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PollType

parseJSONList :: Value -> Parser [PollType]

ToJSON PollType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: PollType -> Value

toEncoding :: PollType -> Encoding

toJSONList :: [PollType] -> Value

toEncodingList :: [PollType] -> Encoding

type Rep PollType Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PollType = D1 ('MetaData "PollType" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PollTypeQuiz" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PollTypeRegular" 'PrefixI 'False) (U1 :: Type -> Type))

ReplyKeyboardRemove

data ReplyKeyboardRemove Source #

Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard.

By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).

Constructors

ReplyKeyboardRemove 

Fields

  • replyKeyboardRemoveRemoveKeyboard :: Bool

    Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)

  • replyKeyboardRemoveSelective :: Maybe Bool

    Use this parameter if you want to remove the keyboard for 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.

    Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet.

Instances

Instances details
Show ReplyKeyboardRemove Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ReplyKeyboardRemove Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ReplyKeyboardRemove :: Type -> Type #

FromJSON ReplyKeyboardRemove Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ReplyKeyboardRemove

parseJSONList :: Value -> Parser [ReplyKeyboardRemove]

ToJSON ReplyKeyboardRemove Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardRemove Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardRemove = D1 ('MetaData "ReplyKeyboardRemove" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ReplyKeyboardRemove" 'PrefixI 'True) (S1 ('MetaSel ('Just "replyKeyboardRemoveRemoveKeyboard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "replyKeyboardRemoveSelective") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))

InlineKeyboardMarkup

data InlineKeyboardMarkup Source #

This object represents an inline keyboard that appears right next to the message it belongs to.

  • *Note**: This will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.

Constructors

InlineKeyboardMarkup 

Fields

Instances

Instances details
Show InlineKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic InlineKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep InlineKeyboardMarkup :: Type -> Type #

FromJSON InlineKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser InlineKeyboardMarkup

parseJSONList :: Value -> Parser [InlineKeyboardMarkup]

ToJSON InlineKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep InlineKeyboardMarkup Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep InlineKeyboardMarkup = D1 ('MetaData "InlineKeyboardMarkup" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "InlineKeyboardMarkup" 'PrefixI 'True) (S1 ('MetaSel ('Just "inlineKeyboardMarkupInlineKeyboard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[InlineKeyboardButton]])))

InlineKeyboardButton

data InlineKeyboardButton Source #

This object represents one button of an inline keyboard. You must use exactly one of the optional fields.

Constructors

InlineKeyboardButton 

Fields

Instances

Instances details
Show InlineKeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic InlineKeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep InlineKeyboardButton :: Type -> Type #

FromJSON InlineKeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser InlineKeyboardButton

parseJSONList :: Value -> Parser [InlineKeyboardButton]

ToJSON InlineKeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep InlineKeyboardButton Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep InlineKeyboardButton = D1 ('MetaData "InlineKeyboardButton" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "InlineKeyboardButton" 'PrefixI 'True) (((S1 ('MetaSel ('Just "inlineKeyboardButtonText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "inlineKeyboardButtonUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "inlineKeyboardButtonCallbackData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "inlineKeyboardButtonWebApp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe WebAppInfo)))) :*: ((S1 ('MetaSel ('Just "inlineKeyboardButtonSwitchInlineQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "inlineKeyboardButtonSwitchInlineQueryCurrentChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "inlineKeyboardButtonCallbackGame") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe CallbackGame)) :*: S1 ('MetaSel ('Just "inlineKeyboardButtonPay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))

LoginUrl

data LoginUrl Source #

This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:

https://core.telegram.org/file/811140015/1734/8VZFkwWXalM.97872/6127fa62d8a0bf2b3c

Telegram apps support these buttons as of version 5.7.

Constructors

LoginUrl 

Fields

  • loginUrlUrl :: Text

    An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.

    • *NOTE**: You **must** always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
  • loginUrlForwardText :: Maybe Text

    New text of the button in forwarded messages.

  • loginUrlBotUsername :: Maybe Text

    Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.

  • loginUrlRequestWriteAccess :: Maybe Bool

    Pass True to request the permission for your bot to send messages to the user.

Instances

Instances details
Show LoginUrl Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic LoginUrl Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep LoginUrl :: Type -> Type #

Methods

from :: LoginUrl -> Rep LoginUrl x #

to :: Rep LoginUrl x -> LoginUrl #

type Rep LoginUrl Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep LoginUrl = D1 ('MetaData "LoginUrl" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "LoginUrl" 'PrefixI 'True) ((S1 ('MetaSel ('Just "loginUrlUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "loginUrlForwardText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "loginUrlBotUsername") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "loginUrlRequestWriteAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))

CallbackQuery

data CallbackQuery Source #

This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.

Constructors

CallbackQuery 

Fields

Instances

Instances details
Show CallbackQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic CallbackQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep CallbackQuery :: Type -> Type #

FromJSON CallbackQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser CallbackQuery

parseJSONList :: Value -> Parser [CallbackQuery]

ToJSON CallbackQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: CallbackQuery -> Value

toEncoding :: CallbackQuery -> Encoding

toJSONList :: [CallbackQuery] -> Value

toEncodingList :: [CallbackQuery] -> Encoding

type Rep CallbackQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep CallbackQuery = D1 ('MetaData "CallbackQuery" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "CallbackQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "callbackQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallbackQueryId) :*: (S1 ('MetaSel ('Just "callbackQueryFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: S1 ('MetaSel ('Just "callbackQueryMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Message)))) :*: ((S1 ('MetaSel ('Just "callbackQueryInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MessageId)) :*: S1 ('MetaSel ('Just "callbackQueryChatInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "callbackQueryData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "callbackQueryGameShortName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

newtype CallbackQueryId Source #

Constructors

CallbackQueryId Text 

Instances

Instances details
Eq CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Show CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep CallbackQueryId :: Type -> Type #

FromJSON CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser CallbackQueryId

parseJSONList :: Value -> Parser [CallbackQueryId]

ToJSON CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: CallbackQueryId -> Value

toEncoding :: CallbackQueryId -> Encoding

toJSONList :: [CallbackQueryId] -> Value

toEncodingList :: [CallbackQueryId] -> Encoding

type Rep CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep CallbackQueryId = D1 ('MetaData "CallbackQueryId" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'True) (C1 ('MetaCons "CallbackQueryId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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
Show ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ForceReply :: Type -> Type #

FromJSON ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ForceReply

parseJSONList :: Value -> Parser [ForceReply]

ToJSON ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ForceReply -> Value

toEncoding :: ForceReply -> Encoding

toJSONList :: [ForceReply] -> Value

toEncodingList :: [ForceReply] -> Encoding

type Rep ForceReply Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ForceReply = D1 ('MetaData "ForceReply" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" '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)))))

Chat photo

data ChatPhoto Source #

Chat photo. Returned only in getChat.

Constructors

ChatPhoto 

Fields

  • chatPhotoSmallFileId :: FileId

    Unique file identifier of small (160x160) chat photo. This file_id can be used only for photo download.

  • chatPhotoSmallFileUniqueId :: FileId

    Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

  • chatPhotoBigFileId :: FileId

    Unique file identifier of big (640x640) chat photo. This file_id can be used only for photo download.

  • chatPhotoBigFileUniqueId :: FileId

    Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

Instances

Instances details
Show ChatPhoto Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatPhoto Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatPhoto :: Type -> Type #

FromJSON ChatPhoto Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ChatPhoto

parseJSONList :: Value -> Parser [ChatPhoto]

ToJSON ChatPhoto Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ChatPhoto -> Value

toEncoding :: ChatPhoto -> Encoding

toJSONList :: [ChatPhoto] -> Value

toEncodingList :: [ChatPhoto] -> Encoding

type Rep ChatPhoto Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatPhoto = D1 ('MetaData "ChatPhoto" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ChatPhoto" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chatPhotoSmallFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "chatPhotoSmallFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "chatPhotoBigFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "chatPhotoBigFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId))))

ChatInviteLink

data ChatInviteLink Source #

Represents an invite link for a chat.

Constructors

ChatInviteLink 

Fields

Instances

ChatAdministratorRights

data ChatAdministratorRights Source #

Represents the rights of an administrator in a chat.

Constructors

ChatAdministratorRights 

Fields

Instances

Instances details
Show ChatAdministratorRights Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatAdministratorRights Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatAdministratorRights :: Type -> Type #

FromJSON ChatAdministratorRights Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ChatAdministratorRights

parseJSONList :: Value -> Parser [ChatAdministratorRights]

ToJSON ChatAdministratorRights Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatAdministratorRights Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatAdministratorRights = D1 ('MetaData "ChatAdministratorRights" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ChatAdministratorRights" 'PrefixI 'True) (((S1 ('MetaSel ('Just "chatAdministratorRightsIsAnonymous") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "chatAdministratorRightsCanManageChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "chatAdministratorRightsCanDeleteMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "chatAdministratorRightsCanManageVideoChats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "chatAdministratorRightsCanRestrictMembers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "chatAdministratorRightsCanPromoteMembers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "chatAdministratorRightsCanChangeInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "chatAdministratorRightsCanInviteUsers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "chatAdministratorRightsCanPostMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatAdministratorRightsCanEditMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatAdministratorRightsCanPinMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))))

ChatMember

data ChatMember Source #

This object contains information about one member of a chat.

Constructors

ChatMember 

Fields

Instances

Instances details
Show ChatMember Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatMember Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatMember :: Type -> Type #

FromJSON ChatMember Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ChatMember

parseJSONList :: Value -> Parser [ChatMember]

ToJSON ChatMember Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ChatMember -> Value

toEncoding :: ChatMember -> Encoding

toJSONList :: [ChatMember] -> Value

toEncodingList :: [ChatMember] -> Encoding

type Rep ChatMember Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatMember = D1 ('MetaData "ChatMember" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ChatMember" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "chatMemberUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: S1 ('MetaSel ('Just "chatMemberStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "chatMemberUntilDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe POSIXTime)) :*: (S1 ('MetaSel ('Just "chatMemberIsAnonymous") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatMemberCustomTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "chatMemberCanBeEdited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatMemberCanManageChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatMemberCanDeleteMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "chatMemberCanManageVideoChats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatMemberCanRestrictMembers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatMemberCanPromoteMembers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "chatMemberCanChangeInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatMemberCanPostMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "chatMemberCanEditMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatMemberCanInviteUsers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatMemberCanPinMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "chatMemberIsMember") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatMemberCanSendMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatMemberCanSendMediaMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "chatMemberCanSendPolls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "chatMemberCanSendOtherMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatMemberCanAddWebPagePreviews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))))

ChatMemberUpdated

data ChatMemberUpdated Source #

This object represents changes in the status of a chat member.

Constructors

ChatMemberUpdated 

Fields

Instances

Instances details
Show ChatMemberUpdated Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatMemberUpdated Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatMemberUpdated :: Type -> Type #

type Rep ChatMemberUpdated Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatMemberUpdated = D1 ('MetaData "ChatMemberUpdated" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ChatMemberUpdated" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chatMemberUpdatedChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Chat) :*: (S1 ('MetaSel ('Just "chatMemberUpdatedFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: S1 ('MetaSel ('Just "chatMemberUpdatedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime))) :*: (S1 ('MetaSel ('Just "chatMemberUpdatedOldChatMember") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMember) :*: (S1 ('MetaSel ('Just "chatMemberUpdatedNewChatMember") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMember) :*: S1 ('MetaSel ('Just "chatMemberUpdatedInviteLink") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatInviteLink))))))

ChatJoinRequest

data ChatJoinRequest Source #

Represents a join request sent to a chat.

Constructors

ChatJoinRequest 

Fields

Instances

Instances details
Show ChatJoinRequest Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatJoinRequest Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatJoinRequest :: Type -> Type #

type Rep ChatJoinRequest Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatJoinRequest = D1 ('MetaData "ChatJoinRequest" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ChatJoinRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chatJoinRequestChat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Chat) :*: S1 ('MetaSel ('Just "chatJoinRequestFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User)) :*: (S1 ('MetaSel ('Just "chatJoinRequestDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime) :*: (S1 ('MetaSel ('Just "chatJoinRequestBio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "chatJoinRequestInviteLink") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatInviteLink))))))

ChatPermissions

data ChatPermissions Source #

Describes actions that a non-administrator user is allowed to take in a chat.

Constructors

ChatPermissions 

Fields

Instances

Instances details
Show ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatPermissions :: Type -> Type #

FromJSON ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ChatPermissions

parseJSONList :: Value -> Parser [ChatPermissions]

ToJSON ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ChatPermissions -> Value

toEncoding :: ChatPermissions -> Encoding

toJSONList :: [ChatPermissions] -> Value

toEncodingList :: [ChatPermissions] -> Encoding

type Rep ChatPermissions Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatPermissions = D1 ('MetaData "ChatPermissions" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ChatPermissions" 'PrefixI 'True) (((S1 ('MetaSel ('Just "chatPermissionsCanSendMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanSendMediaMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "chatPermissionsCanSendPolls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanSendOtherMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "chatPermissionsCanAddWebPagePreviews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanChangeInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "chatPermissionsCanInviteUsers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "chatPermissionsCanPinMessages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))

ChatLocation

data ChatLocation Source #

Represents a location to which a chat is connected.

Constructors

ChatLocation 

Fields

Instances

Instances details
Show ChatLocation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatLocation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatLocation :: Type -> Type #

FromJSON ChatLocation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ChatLocation

parseJSONList :: Value -> Parser [ChatLocation]

ToJSON ChatLocation Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ChatLocation -> Value

toEncoding :: ChatLocation -> Encoding

toJSONList :: [ChatLocation] -> Value

toEncodingList :: [ChatLocation] -> Encoding

type Rep ChatLocation Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatLocation = D1 ('MetaData "ChatLocation" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ChatLocation" 'PrefixI 'True) (S1 ('MetaSel ('Just "chatLocationLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: S1 ('MetaSel ('Just "chatLocationAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ResponseParameters

data ResponseParameters Source #

Contains information about why a request was unsuccessful.

Constructors

ResponseParameters 

Fields

  • responseParametersMigrateToChatId :: Maybe ChatId

    The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

  • responseParametersRetryAfter :: Maybe Seconds

    In case of exceeding flood control, the number of seconds left to wait before the request can be repeated

Instances

Instances details
Show ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ResponseParameters :: Type -> Type #

FromJSON ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ResponseParameters

parseJSONList :: Value -> Parser [ResponseParameters]

ToJSON ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ResponseParameters Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ResponseParameters = D1 ('MetaData "ResponseParameters" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ResponseParameters" 'PrefixI 'True) (S1 ('MetaSel ('Just "responseParametersMigrateToChatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ChatId)) :*: S1 ('MetaSel ('Just "responseParametersRetryAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Seconds))))

Stickers

Sticker

data Sticker Source #

This object represents a sticker.

Constructors

Sticker 

Fields

Instances

Instances details
Show Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Sticker :: Type -> Type #

Methods

from :: Sticker -> Rep Sticker x #

to :: Rep Sticker x -> Sticker #

FromJSON Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Sticker

parseJSONList :: Value -> Parser [Sticker]

ToJSON Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Sticker -> Value

toEncoding :: Sticker -> Encoding

toJSONList :: [Sticker] -> Value

toEncodingList :: [Sticker] -> Encoding

type Rep Sticker Source # 
Instance details

Defined in Telegram.Bot.API.Types

StickerSet

data StickerSet Source #

This object represents a sticker set.

Constructors

StickerSet 

Fields

Instances

Instances details
Show StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep StickerSet :: Type -> Type #

FromJSON StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser StickerSet

parseJSONList :: Value -> Parser [StickerSet]

ToJSON StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: StickerSet -> Value

toEncoding :: StickerSet -> Encoding

toJSONList :: [StickerSet] -> Value

toEncodingList :: [StickerSet] -> Encoding

type Rep StickerSet Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep StickerSet = D1 ('MetaData "StickerSet" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "StickerSet" 'PrefixI 'True) ((S1 ('MetaSel ('Just "stickerSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "stickerSetTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "stickerSetIsAnimated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "stickerSetIsVideo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stickerSetContainsMasks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "stickerSetStickers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Sticker]) :*: S1 ('MetaSel ('Just "stickerSetThumb") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PhotoSize))))))

MaskPosition

data MaskPosition Source #

This object describes the position on faces where a mask should be placed by default.

Constructors

MaskPosition 

Fields

  • maskPositionPoint :: Text

    The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.

  • maskPositionXShift :: Float

    Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.

  • maskPositionYShift :: Float

    Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.

  • maskPositionScale :: Float

    Mask scaling coefficient. For example, 2.0 means double size.

Instances

Instances details
Show MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep MaskPosition :: Type -> Type #

FromJSON MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser MaskPosition

parseJSONList :: Value -> Parser [MaskPosition]

ToJSON MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: MaskPosition -> Value

toEncoding :: MaskPosition -> Encoding

toJSONList :: [MaskPosition] -> Value

toEncodingList :: [MaskPosition] -> Encoding

type Rep MaskPosition Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MaskPosition = D1 ('MetaData "MaskPosition" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "MaskPosition" 'PrefixI 'True) ((S1 ('MetaSel ('Just "maskPositionPoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "maskPositionXShift") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)) :*: (S1 ('MetaSel ('Just "maskPositionYShift") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float) :*: S1 ('MetaSel ('Just "maskPositionScale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float))))

Payments

LabeledPrice

data LabeledPrice Source #

This object represents a portion of the price for goods or services.

Constructors

LabelPrice 

Fields

  • labeledPriceLabel :: Text

    Portion label.

  • labeledPriceAmount :: Int

    Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Instances

Instances details
Show LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep LabeledPrice :: Type -> Type #

FromJSON LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser LabeledPrice

parseJSONList :: Value -> Parser [LabeledPrice]

ToJSON LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: LabeledPrice -> Value

toEncoding :: LabeledPrice -> Encoding

toJSONList :: [LabeledPrice] -> Value

toEncodingList :: [LabeledPrice] -> Encoding

type Rep LabeledPrice Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep LabeledPrice = D1 ('MetaData "LabeledPrice" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "LabelPrice" 'PrefixI 'True) (S1 ('MetaSel ('Just "labeledPriceLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "labeledPriceAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

Invoice

data Invoice Source #

This object contains basic information about an invoice.

Constructors

Invoice 

Fields

  • invoiceTitle :: Text

    Product name.

  • invoiceDescription :: Text

    Product description.

  • invoiceStartParameter :: Text

    Unique bot deep-linking parameter that can be used to generate this invoice.

  • invoiceCurrency :: Text

    Three-letter ISO 4217 currency code.

  • invoiceTotalAmount :: Int

    Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Instances

Instances details
Show Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Invoice :: Type -> Type #

Methods

from :: Invoice -> Rep Invoice x #

to :: Rep Invoice x -> Invoice #

FromJSON Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Invoice

parseJSONList :: Value -> Parser [Invoice]

ToJSON Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Invoice -> Value

toEncoding :: Invoice -> Encoding

toJSONList :: [Invoice] -> Value

toEncodingList :: [Invoice] -> Encoding

type Rep Invoice Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Invoice = D1 ('MetaData "Invoice" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "Invoice" 'PrefixI 'True) ((S1 ('MetaSel ('Just "invoiceTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "invoiceDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "invoiceStartParameter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "invoiceCurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "invoiceTotalAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))))

ShippingAddress

data ShippingAddress Source #

This object represents a shipping address.

Constructors

ShippingAddress 

Fields

Instances

Instances details
Show ShippingAddress Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ShippingAddress Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ShippingAddress :: Type -> Type #

FromJSON ShippingAddress Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ShippingAddress

parseJSONList :: Value -> Parser [ShippingAddress]

ToJSON ShippingAddress Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ShippingAddress -> Value

toEncoding :: ShippingAddress -> Encoding

toJSONList :: [ShippingAddress] -> Value

toEncodingList :: [ShippingAddress] -> Encoding

type Rep ShippingAddress Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ShippingAddress = D1 ('MetaData "ShippingAddress" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ShippingAddress" 'PrefixI 'True) ((S1 ('MetaSel ('Just "shippingAddressCountryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "shippingAddressState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "shippingAddressCity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "shippingAddressStreetLine1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "shippingAddressStreetLine2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "shippingAddressPostCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

OrderInfo

data OrderInfo Source #

This object represents information about an order.

Constructors

OrderInfo 

Fields

Instances

Instances details
Show OrderInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic OrderInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep OrderInfo :: Type -> Type #

FromJSON OrderInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser OrderInfo

parseJSONList :: Value -> Parser [OrderInfo]

ToJSON OrderInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: OrderInfo -> Value

toEncoding :: OrderInfo -> Encoding

toJSONList :: [OrderInfo] -> Value

toEncodingList :: [OrderInfo] -> Encoding

type Rep OrderInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep OrderInfo = D1 ('MetaData "OrderInfo" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "OrderInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "orderInfoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "orderInfoPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "orderInfoEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "orderInfoShippingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ShippingAddress)))))

ShippingOption

data ShippingOption Source #

This object represents one shipping option.

Constructors

ShippingOption 

Fields

Instances

Instances details
Show ShippingOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ShippingOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ShippingOption :: Type -> Type #

FromJSON ShippingOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ShippingOption

parseJSONList :: Value -> Parser [ShippingOption]

ToJSON ShippingOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ShippingOption -> Value

toEncoding :: ShippingOption -> Encoding

toJSONList :: [ShippingOption] -> Value

toEncodingList :: [ShippingOption] -> Encoding

type Rep ShippingOption Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ShippingOption = D1 ('MetaData "ShippingOption" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ShippingOption" 'PrefixI 'True) (S1 ('MetaSel ('Just "shippingOptionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShippingOptionId) :*: (S1 ('MetaSel ('Just "shippingOptionTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "shippingOptionPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [LabeledPrice]))))

newtype ShippingOptionId Source #

Constructors

ShippingOptionId Text 

Instances

Instances details
Eq ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Show ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ShippingOptionId :: Type -> Type #

FromJSON ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ShippingOptionId

parseJSONList :: Value -> Parser [ShippingOptionId]

ToJSON ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ShippingOptionId = D1 ('MetaData "ShippingOptionId" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'True) (C1 ('MetaCons "ShippingOptionId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

SuccessfulPayment

data SuccessfulPayment Source #

This object contains basic information about a successful payment.

Constructors

SuccessfulPayment 

Fields

Instances

Instances details
Show SuccessfulPayment Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic SuccessfulPayment Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep SuccessfulPayment :: Type -> Type #

FromJSON SuccessfulPayment Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser SuccessfulPayment

parseJSONList :: Value -> Parser [SuccessfulPayment]

ToJSON SuccessfulPayment Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep SuccessfulPayment Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep SuccessfulPayment = D1 ('MetaData "SuccessfulPayment" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "SuccessfulPayment" 'PrefixI 'True) ((S1 ('MetaSel ('Just "successfulPaymentCurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "successfulPaymentTotalAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "successfulPaymentInvoicePayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "successfulPaymentShippingOptionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ShippingOptionId)) :*: S1 ('MetaSel ('Just "successfulPaymentOrderInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe OrderInfo))) :*: (S1 ('MetaSel ('Just "successfulPaymentTelegramPaymentChargeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "successfulPaymentProviderPaymentChargeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

ShippingQuery

data ShippingQuery Source #

This object contains information about an incoming shipping query.

Constructors

ShippingQuery 

Fields

Instances

Instances details
Show ShippingQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ShippingQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ShippingQuery :: Type -> Type #

FromJSON ShippingQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser ShippingQuery

parseJSONList :: Value -> Parser [ShippingQuery]

ToJSON ShippingQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: ShippingQuery -> Value

toEncoding :: ShippingQuery -> Encoding

toJSONList :: [ShippingQuery] -> Value

toEncodingList :: [ShippingQuery] -> Encoding

type Rep ShippingQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ShippingQuery = D1 ('MetaData "ShippingQuery" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "ShippingQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "shippingQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "shippingQueryFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User)) :*: (S1 ('MetaSel ('Just "shippingQueryInvoicePayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "shippingQueryShippingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShippingAddress))))

PreCheckoutQuery

data PreCheckoutQuery Source #

This object contains information about an incoming pre-checkout query.

Constructors

PreCheckoutQuery 

Fields

Instances

Instances details
Show PreCheckoutQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PreCheckoutQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PreCheckoutQuery :: Type -> Type #

FromJSON PreCheckoutQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PreCheckoutQuery

parseJSONList :: Value -> Parser [PreCheckoutQuery]

ToJSON PreCheckoutQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PreCheckoutQuery Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PreCheckoutQuery = D1 ('MetaData "PreCheckoutQuery" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PreCheckoutQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "preCheckoutQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "preCheckoutQueryFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: S1 ('MetaSel ('Just "preCheckoutQueryCurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "preCheckoutQueryTotalAmount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "preCheckoutQueryInvoicePayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "preCheckoutQueryShippingOptionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ShippingOptionId)) :*: S1 ('MetaSel ('Just "preCheckoutQueryOrderInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe OrderInfo))))))

Telegram Passport

PassportData

data PassportData Source #

Contains information about Telegram Passport data shared with the bot by the user.

Constructors

PassportData 

Fields

Instances

Instances details
Show PassportData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PassportData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PassportData :: Type -> Type #

FromJSON PassportData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PassportData

parseJSONList :: Value -> Parser [PassportData]

ToJSON PassportData Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: PassportData -> Value

toEncoding :: PassportData -> Encoding

toJSONList :: [PassportData] -> Value

toEncodingList :: [PassportData] -> Encoding

type Rep PassportData Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportData = D1 ('MetaData "PassportData" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PassportData" 'PrefixI 'True) (S1 ('MetaSel ('Just "passportDataData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [EncryptedPassportElement]) :*: S1 ('MetaSel ('Just "passportDataCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EncryptedCredentials)))

PassportFile

data PassportFile Source #

This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.

Constructors

PassportFile 

Fields

Instances

Instances details
Show PassportFile Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PassportFile Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PassportFile :: Type -> Type #

FromJSON PassportFile Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PassportFile

parseJSONList :: Value -> Parser [PassportFile]

ToJSON PassportFile Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: PassportFile -> Value

toEncoding :: PassportFile -> Encoding

toJSONList :: [PassportFile] -> Value

toEncodingList :: [PassportFile] -> Encoding

type Rep PassportFile Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportFile = D1 ('MetaData "PassportFile" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PassportFile" 'PrefixI 'True) ((S1 ('MetaSel ('Just "passportFileFileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId) :*: S1 ('MetaSel ('Just "passportFileFileUniqueId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileId)) :*: (S1 ('MetaSel ('Just "passportFileFileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "passportFileFileDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime))))

EncryptedPassportElement

data EncryptedPassportElement Source #

Contains information about documents or other Telegram Passport elements shared with the bot by the user.

Constructors

EncryptedPassportElement 

Fields

  • encryptedPassportElementType :: PassportElementType

    One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.

  • encryptedPassportElementData :: Maybe Text

    Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.

  • encryptedPassportElementPhoneNumber :: Maybe Text

    User's verified phone number, available only for “phone_number” type.

  • encryptedPassportElementEmail :: Maybe Text

    User's verified email address, available only for “email” type.

  • encryptedPassportElementFiles :: Maybe [PassportFile]

    Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.

  • encryptedPassportElementFrontSide :: Maybe PassportFile

    Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.

  • encryptedPassportElementReverseSide :: Maybe PassportFile

    Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.

  • encryptedPassportElementSelfie :: Maybe PassportFile

    Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.

  • encryptedPassportElementTranslation :: Maybe [PassportFile]

    Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.

  • encryptedPassportElementHash :: Text

    Base64-encoded element hash for using in PassportElementErrorUnspecified.

Instances

Instances details
Show EncryptedPassportElement Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic EncryptedPassportElement Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep EncryptedPassportElement :: Type -> Type #

FromJSON EncryptedPassportElement Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser EncryptedPassportElement

parseJSONList :: Value -> Parser [EncryptedPassportElement]

ToJSON EncryptedPassportElement Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep EncryptedPassportElement Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep EncryptedPassportElement = D1 ('MetaData "EncryptedPassportElement" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "EncryptedPassportElement" 'PrefixI 'True) (((S1 ('MetaSel ('Just "encryptedPassportElementType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PassportElementType) :*: S1 ('MetaSel ('Just "encryptedPassportElementData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "encryptedPassportElementPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "encryptedPassportElementEmail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "encryptedPassportElementFiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [PassportFile]))))) :*: ((S1 ('MetaSel ('Just "encryptedPassportElementFrontSide") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PassportFile)) :*: S1 ('MetaSel ('Just "encryptedPassportElementReverseSide") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PassportFile))) :*: (S1 ('MetaSel ('Just "encryptedPassportElementSelfie") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe PassportFile)) :*: (S1 ('MetaSel ('Just "encryptedPassportElementTranslation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [PassportFile])) :*: S1 ('MetaSel ('Just "encryptedPassportElementHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))))

data PassportElementType Source #

One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.

Instances

Instances details
Show PassportElementType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PassportElementType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PassportElementType :: Type -> Type #

FromJSON PassportElementType Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PassportElementType

parseJSONList :: Value -> Parser [PassportElementType]

ToJSON PassportElementType Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportElementType Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportElementType = D1 ('MetaData "PassportElementType" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (((C1 ('MetaCons "PassportElementTypePersonalDetails" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportElementTypePassport" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeDriverLicense" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "PassportElementTypeIdentityCard" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportElementTypeInternalPassport" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeAddress" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PassportElementTypeUtilityBill" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportElementTypeBankStatement" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeRentalAgreement" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PassportElementTypePassportRegistration" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeTemporaryRegistration" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PassportElementTypePhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeEmail" 'PrefixI 'False) (U1 :: Type -> Type)))))

EncryptedCredentials

data EncryptedCredentials Source #

Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

Constructors

EncryptedCredentials 

Fields

Instances

Instances details
Show EncryptedCredentials Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic EncryptedCredentials Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep EncryptedCredentials :: Type -> Type #

FromJSON EncryptedCredentials Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser EncryptedCredentials

parseJSONList :: Value -> Parser [EncryptedCredentials]

ToJSON EncryptedCredentials Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep EncryptedCredentials Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep EncryptedCredentials = D1 ('MetaData "EncryptedCredentials" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "EncryptedCredentials" 'PrefixI 'True) (S1 ('MetaSel ('Just "encryptedCredentialsData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "encryptedCredentialsHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "encryptedCredentialsSecret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

PassportElementError

data PassportErrorSource Source #

Instances

Instances details
Show PassportErrorSource Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PassportErrorSource Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PassportErrorSource :: Type -> Type #

FromJSON PassportErrorSource Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PassportErrorSource

parseJSONList :: Value -> Parser [PassportErrorSource]

ToJSON PassportErrorSource Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportErrorSource Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportErrorSource = D1 ('MetaData "PassportErrorSource" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (((C1 ('MetaCons "PassportErrorSourceData" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportErrorSourceFrontSide" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PassportErrorSourceReverseSide" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportErrorSourceSelfie" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PassportErrorSourceFile" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportErrorSourceFiles" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PassportErrorSourceTranslationFile" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportErrorSourceTranslationFiles" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportErrorSourceUnspecified" 'PrefixI 'False) (U1 :: Type -> Type)))))

data PassportElementError Source #

Constructors

PassportElementError 

Fields

Instances

Instances details
Show PassportElementError Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PassportElementError Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PassportElementError :: Type -> Type #

FromJSON PassportElementError Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser PassportElementError

parseJSONList :: Value -> Parser [PassportElementError]

ToJSON PassportElementError Source # 
Instance details

Defined in Telegram.Bot.API.Types

ToHttpApiData PassportElementError Source # 
Instance details

Defined in Telegram.Bot.API.Types

ToHttpApiData [PassportElementError] Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportElementError Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PassportElementError = D1 ('MetaData "PassportElementError" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "PassportElementError" 'PrefixI 'True) (((S1 ('MetaSel ('Just "passportElementErroSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PassportErrorSource) :*: S1 ('MetaSel ('Just "passportElementErrorType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PassportElementType)) :*: (S1 ('MetaSel ('Just "passportElementErrorName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "passportElementErrorHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "passportElementErrorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "passportElementErrorFileHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "passportElementErrorFileHashes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "passportElementErrorElementHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

Games

Game

data Game Source #

This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.

Constructors

Game 

Fields

  • gameTitle :: Text

    Title of the game.

  • gameDescription :: Text

    Description of the game.

  • gamePhoto :: [PhotoSize]

    Photo that will be displayed in the game message in chats.

  • gameText :: Maybe Text

    Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.

  • gameTextEntities :: Maybe [MessageEntity]

    Special entities that appear in text, such as usernames, URLs, bot commands, etc.

  • gameAnimation :: Maybe Animation

    Animation that will be displayed in the game message in chats. Upload via BotFather.

Instances

Instances details
Show Game Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Game -> ShowS #

show :: Game -> String #

showList :: [Game] -> ShowS #

Generic Game Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep Game :: Type -> Type #

Methods

from :: Game -> Rep Game x #

to :: Rep Game x -> Game #

FromJSON Game Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser Game

parseJSONList :: Value -> Parser [Game]

ToJSON Game Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: Game -> Value

toEncoding :: Game -> Encoding

toJSONList :: [Game] -> Value

toEncodingList :: [Game] -> Encoding

type Rep Game Source # 
Instance details

Defined in Telegram.Bot.API.Types

CallbackGame

newtype CallbackGame Source #

A placeholder, currently holds no information. Use BotFather to set up your game.

Constructors

CallbackGame Object 

Instances

Instances details
Show CallbackGame Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic CallbackGame Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep CallbackGame :: Type -> Type #

FromJSON CallbackGame Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser CallbackGame

parseJSONList :: Value -> Parser [CallbackGame]

ToJSON CallbackGame Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: CallbackGame -> Value

toEncoding :: CallbackGame -> Encoding

toJSONList :: [CallbackGame] -> Value

toEncodingList :: [CallbackGame] -> Encoding

type Rep CallbackGame Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep CallbackGame = D1 ('MetaData "CallbackGame" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'True) (C1 ('MetaCons "CallbackGame" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Object)))

GameHighScore

data GameHighScore Source #

This object represents one row of the high scores table for a game.

Constructors

GameHighScore 

Fields

Instances

Instances details
Show GameHighScore Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic GameHighScore Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep GameHighScore :: Type -> Type #

type Rep GameHighScore Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep GameHighScore = D1 ('MetaData "GameHighScore" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "GameHighScore" 'PrefixI 'True) (S1 ('MetaSel ('Just "gameHighScorePosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "gameHighScoreUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User) :*: S1 ('MetaSel ('Just "gameHighScoreScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))

CopyMessageId

data CopyMessageId Source #

This object represents result of copyMessage request.

Constructors

CopyMessageId 

Fields

Instances

Instances details
Show CopyMessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic CopyMessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep CopyMessageId :: Type -> Type #

FromJSON CopyMessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser CopyMessageId

parseJSONList :: Value -> Parser [CopyMessageId]

ToJSON CopyMessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: CopyMessageId -> Value

toEncoding :: CopyMessageId -> Encoding

toJSONList :: [CopyMessageId] -> Value

toEncodingList :: [CopyMessageId] -> Encoding

type Rep CopyMessageId Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep CopyMessageId = D1 ('MetaData "CopyMessageId" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "CopyMessageId" 'PrefixI 'True) (S1 ('MetaSel ('Just "copyMessageIdMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId)))

data SomeChatId Source #

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

Constructors

SomeChatId ChatId

Unique chat ID.

SomeChatUsername Text

Username of the target channel.

Instances

Instances details
Generic SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep SomeChatId :: Type -> Type #

FromJSON SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser SomeChatId

parseJSONList :: Value -> Parser [SomeChatId]

ToJSON SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: SomeChatId -> Value

toEncoding :: SomeChatId -> Encoding

toJSONList :: [SomeChatId] -> Value

toEncodingList :: [SomeChatId] -> Encoding

ToHttpApiData SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep SomeChatId = D1 ('MetaData "SomeChatId" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "SomeChatId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatId)) :+: C1 ('MetaCons "SomeChatUsername" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data BotCommand Source #

This object represents a bot command.

Constructors

BotCommand 

Fields

Instances

Instances details
Show BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types

Generic BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep BotCommand :: Type -> Type #

FromJSON BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser BotCommand

parseJSONList :: Value -> Parser [BotCommand]

ToJSON BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: BotCommand -> Value

toEncoding :: BotCommand -> Encoding

toJSONList :: [BotCommand] -> Value

toEncodingList :: [BotCommand] -> Encoding

type Rep BotCommand Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep BotCommand = D1 ('MetaData "BotCommand" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "BotCommand" 'PrefixI 'True) (S1 ('MetaSel ('Just "botCommandCommand") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "botCommandDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data BotCommandScope Source #

Constructors

BotCommandScopeDefault

Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.

BotCommandScopeAllPrivateChats

Represents the scope of bot commands, covering all private chats.

BotCommandScopeAllGroupChats

Represents the scope of bot commands, covering all group and supergroup chats.

BotCommandScopeAllChatAdministrators

Represents the scope of bot commands, covering all group and supergroup chat administrators.

BotCommandScopeChat SomeChatId

Represents the scope of bot commands, covering a specific chat.

BotCommandScopeChatAdministrators SomeChatId

Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.

BotCommandScopeChatMember SomeChatId UserId

Represents the scope of bot commands, covering a specific member of a group or supergroup chat.

Instances

Instances details
FromJSON BotCommandScope Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

parseJSON :: Value -> Parser BotCommandScope

parseJSONList :: Value -> Parser [BotCommandScope]

ToJSON BotCommandScope Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: BotCommandScope -> Value

toEncoding :: BotCommandScope -> Encoding

toJSONList :: [BotCommandScope] -> Value

toEncodingList :: [BotCommandScope] -> Encoding

addType :: Text -> [Pair] -> [Pair] Source #

data InputMediaGeneric Source #

Generic fields for all InputMedia structures

Constructors

InputMediaGeneric 

Fields

Instances

Instances details
Generic InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep InputMediaGeneric :: Type -> Type #

ToJSON InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types

ToMultipart Tmp InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toMultipart :: InputMediaGeneric -> MultipartData Tmp

type Rep InputMediaGeneric Source # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep InputMediaGeneric = D1 ('MetaData "InputMediaGeneric" "Telegram.Bot.API.Types" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "InputMediaGeneric" 'PrefixI 'True) ((S1 ('MetaSel ('Just "inputMediaGenericMedia") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: S1 ('MetaSel ('Just "inputMediaGenericCaption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "inputMediaGenericParseMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "inputMediaGenericCaptionEntities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [MessageEntity])))))

data InputMediaGenericThumb Source #

Constructors

InputMediaGenericThumb 

Fields

  • inputMediaGenericGeneric :: InputMediaGeneric
     
  • inputMediaGenericThumb :: Maybe InputFile

    Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipartform-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach:file_attach_name” if the thumbnail was uploaded using multipartform-data under file_attach_name.

Instances

Instances details
ToJSON InputMediaGenericThumb Source # 
Instance details

Defined in Telegram.Bot.API.Types

ToMultipart Tmp InputMediaGenericThumb Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toMultipart :: InputMediaGenericThumb -> MultipartData Tmp

data InputMedia Source #

Constructors

InputMediaPhoto InputMediaGeneric

Represents a photo to be sent.

InputMediaVideo

Represents a video to be sent.

Fields

InputMediaAnimation

Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.

InputMediaAudio

Represents an audio file to be treated as music to be sent.

Fields

InputMediaDocument

Represents a general file to be sent.

Fields

Instances

Instances details
ToJSON InputMedia Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toJSON :: InputMedia -> Value

toEncoding :: InputMedia -> Encoding

toJSONList :: [InputMedia] -> Value

toEncodingList :: [InputMedia] -> Encoding

ToMultipart Tmp InputMedia Source # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

toMultipart :: InputMedia -> MultipartData Tmp

makeFile :: Text -> InputFile -> MultipartData Tmp -> MultipartData Tmp Source #

Multipart file helper