telegram-bot-simple-0.2.0: Easy to use library for building Telegram bots.

Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.Types

Contents

Synopsis

Documentation

newtype Seconds #

Constructors

Seconds Int32 
Instances
Eq Seconds # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

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

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

Num Seconds # 
Instance details

Defined in Telegram.Bot.API.Types

Show Seconds # 
Instance details

Defined in Telegram.Bot.API.Types

ToJSON Seconds # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Seconds # 
Instance details

Defined in Telegram.Bot.API.Types

Available types

User

data User #

This object represents a Telegram user or bot.

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

Constructors

User 

Fields

Instances
Show User # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User # 
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 #

ToJSON User # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON User # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep User # 
Instance details

Defined in Telegram.Bot.API.Types

newtype UserId #

Unique identifier for this user or bot.

Constructors

UserId Int32 
Instances
Eq UserId # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

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

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

Show UserId # 
Instance details

Defined in Telegram.Bot.API.Types

ToJSON UserId # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON UserId # 
Instance details

Defined in Telegram.Bot.API.Types

Chat

data Chat #

This object represents a chat.

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

Constructors

Chat 

Fields

Instances
Show Chat # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Chat -> ShowS #

show :: Chat -> String #

showList :: [Chat] -> ShowS #

Generic Chat # 
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 #

ToJSON Chat # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Chat # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Chat # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Chat = D1 (MetaData "Chat" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 "chatAllMembersAreAdministrators") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "chatPhoto") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ChatPhoto)) :*: 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 "chatStickerSetName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "chatCanSetStickerSet") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))))))

newtype ChatId #

Unique identifier for this chat.

Constructors

ChatId Integer 
Instances
Eq ChatId # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

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

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

Show ChatId # 
Instance details

Defined in Telegram.Bot.API.Types

Hashable ChatId # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

hashWithSalt :: Int -> ChatId -> Int #

hash :: ChatId -> Int #

ToJSON ChatId # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ChatId # 
Instance details

Defined in Telegram.Bot.API.Types

data ChatType #

Type of chat.

Instances
Show ChatType # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatType # 
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 #

ToJSON ChatType # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ChatType # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatType # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatType = D1 (MetaData "ChatType" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 #

This object represents a message.

Constructors

Message 

Fields

Instances
Show Message # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Message # 
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 #

ToJSON Message # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Message # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Message # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Message = D1 (MetaData "Message" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 "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 "messageForwardDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe POSIXTime)))))) :*: (((S1 (MetaSel (Just "messageReplyToMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Message)) :*: S1 (MetaSel (Just "messageEditDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe POSIXTime))) :*: (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 "messageCaptionEntities") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [MessageEntity])) :*: (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 "messageVideo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Video))) :*: (S1 (MetaSel (Just "messageVoice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Voice)) :*: S1 (MetaSel (Just "messageVideoNote") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe VideoNote)))) :*: ((S1 (MetaSel (Just "messageCaption") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "messageContact") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Contact))) :*: (S1 (MetaSel (Just "messageLocation") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Location)) :*: (S1 (MetaSel (Just "messageVenue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Venue)) :*: 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 "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)))))))))

newtype MessageId #

Unique message identifier inside this chat.

Constructors

MessageId Int32 

newtype MediaGroupId #

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

Constructors

MediaGroupId Text 

MessageEntity

data MessageEntity #

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

Constructors

MessageEntity 

Fields

Instances
Show MessageEntity # 
Instance details

Defined in Telegram.Bot.API.Types

Generic MessageEntity # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep MessageEntity :: Type -> Type #

ToJSON MessageEntity # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON MessageEntity # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageEntity # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageEntity = D1 (MetaData "MessageEntity" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" False) (C1 (MetaCons "MessageEntity" PrefixI True) ((S1 (MetaSel (Just "messageEntityType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MessageEntityType) :*: S1 (MetaSel (Just "messageEntityOffset") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int32)) :*: (S1 (MetaSel (Just "messageEntityLength") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int32) :*: (S1 (MetaSel (Just "messageEntityUrl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "messageEntityUser") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe User))))))

data MessageEntityType #

Type of the entity. Can be mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)

Instances
Eq MessageEntityType # 
Instance details

Defined in Telegram.Bot.API.Types

Show MessageEntityType # 
Instance details

Defined in Telegram.Bot.API.Types

Generic MessageEntityType # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep MessageEntityType :: Type -> Type #

ToJSON MessageEntityType # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON MessageEntityType # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep MessageEntityType # 
Instance details

Defined in Telegram.Bot.API.Types

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

PhotoSize

data PhotoSize #

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

Constructors

PhotoSize 

Fields

Instances
Show PhotoSize # 
Instance details

Defined in Telegram.Bot.API.Types

Generic PhotoSize # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep PhotoSize :: Type -> Type #

ToJSON PhotoSize # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON PhotoSize # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep PhotoSize # 
Instance details

Defined in Telegram.Bot.API.Types

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

newtype FileId #

Unique identifier for this file.

Constructors

FileId Text 
Instances
Eq FileId # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

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

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

Show FileId # 
Instance details

Defined in Telegram.Bot.API.Types

ToJSON FileId # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON FileId # 
Instance details

Defined in Telegram.Bot.API.Types

Audio

data Audio #

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

Constructors

Audio 

Fields

Instances
Show Audio # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Audio -> ShowS #

show :: Audio -> String #

showList :: [Audio] -> ShowS #

Generic Audio # 
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 #

ToJSON Audio # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Audio # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Audio # 
Instance details

Defined in Telegram.Bot.API.Types

Document

data Document #

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

Constructors

Document 

Fields

Instances
Show Document # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Document # 
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 #

ToJSON Document # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Document # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Document # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Document = D1 (MetaData "Document" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" False) (C1 (MetaCons "Document" PrefixI True) ((S1 (MetaSel (Just "documentFileId") 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 Int32))))))

Video

data Video #

This object represents a video file.

Constructors

Video 

Fields

Instances
Show Video # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Video -> ShowS #

show :: Video -> String #

showList :: [Video] -> ShowS #

Generic Video # 
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 #

ToJSON Video # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Video # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Video # 
Instance details

Defined in Telegram.Bot.API.Types

Voice

data Voice #

This object represents a voice note.

Constructors

Voice 

Fields

Instances
Show Voice # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Voice -> ShowS #

show :: Voice -> String #

showList :: [Voice] -> ShowS #

Generic Voice # 
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 #

ToJSON Voice # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Voice # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Voice # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Voice = D1 (MetaData "Voice" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" False) (C1 (MetaCons "Voice" PrefixI True) ((S1 (MetaSel (Just "voiceFileId") 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 Int32)))))

VideoNote

data VideoNote #

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

Constructors

VideoNote 

Fields

Instances
Show VideoNote # 
Instance details

Defined in Telegram.Bot.API.Types

Generic VideoNote # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep VideoNote :: Type -> Type #

ToJSON VideoNote # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON VideoNote # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoNote # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep VideoNote = D1 (MetaData "VideoNote" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" False) (C1 (MetaCons "VideoNote" PrefixI True) ((S1 (MetaSel (Just "videoNoteFileId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "videoNoteLength") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int32)) :*: (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 Int32))))))

Contact

data Contact #

This object represents a phone contact.

Constructors

Contact 

Fields

Instances
Show Contact # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Contact # 
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 #

ToJSON Contact # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Contact # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Contact # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Contact = D1 (MetaData "Contact" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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)))))

Location

data Location #

This object represents a point on the map.

Constructors

Location 

Fields

Instances
Show Location # 
Instance details

Defined in Telegram.Bot.API.Types

Generic Location # 
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 #

ToJSON Location # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Location # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Location # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Location = D1 (MetaData "Location" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" False) (C1 (MetaCons "Location" PrefixI True) (S1 (MetaSel (Just "locationLongitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Float) :*: S1 (MetaSel (Just "locationLatitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Float)))

Venue

data Venue #

This object represents a venue.

Constructors

Venue 

Fields

Instances
Show Venue # 
Instance details

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> Venue -> ShowS #

show :: Venue -> String #

showList :: [Venue] -> ShowS #

Generic Venue # 
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 #

ToJSON Venue # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON Venue # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Venue # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep Venue = D1 (MetaData "Venue" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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)))))

UserProfilePhotos

data UserProfilePhotos #

This object represent a user's profile pictures.

Constructors

UserProfilePhotos 

Fields

Instances
Show UserProfilePhotos # 
Instance details

Defined in Telegram.Bot.API.Types

Generic UserProfilePhotos # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep UserProfilePhotos :: Type -> Type #

ToJSON UserProfilePhotos # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON UserProfilePhotos # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep UserProfilePhotos # 
Instance details

Defined in Telegram.Bot.API.Types

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

File

data File #

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

Defined in Telegram.Bot.API.Types

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #

Generic File # 
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 #

ToJSON File # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON File # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep File # 
Instance details

Defined in Telegram.Bot.API.Types

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

ReplyKeyboardMarkup

data ReplyKeyboardMarkup #

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.

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

Instances
Show ReplyKeyboardMarkup # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ReplyKeyboardMarkup # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ReplyKeyboardMarkup :: Type -> Type #

ToJSON ReplyKeyboardMarkup # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ReplyKeyboardMarkup # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardMarkup # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardMarkup = D1 (MetaData "ReplyKeyboardMarkup" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 "replyKeyboardMarkupSelective") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))))

KeyboardButton

data KeyboardButton #

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

Defined in Telegram.Bot.API.Types

IsString KeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

Generic KeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep KeyboardButton :: Type -> Type #

ToJSON KeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON KeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep KeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep KeyboardButton = D1 (MetaData "KeyboardButton" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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)))))

ReplyKeyboardRemove

data ReplyKeyboardRemove #

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.

Instances
Show ReplyKeyboardRemove # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ReplyKeyboardRemove # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ReplyKeyboardRemove :: Type -> Type #

ToJSON ReplyKeyboardRemove # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ReplyKeyboardRemove # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardRemove # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ReplyKeyboardRemove = D1 (MetaData "ReplyKeyboardRemove" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 #

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

Constructors

InlineKeyboardMarkup 

Fields

InlineKeyboardButton

data InlineKeyboardButton #

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

Constructors

InlineKeyboardButton 

Fields

Instances
Show InlineKeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

Generic InlineKeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep InlineKeyboardButton :: Type -> Type #

ToJSON InlineKeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON InlineKeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep InlineKeyboardButton # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep InlineKeyboardButton = D1 (MetaData "InlineKeyboardButton" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 "inlineKeyboardButtonSwitchInlineQuery") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "inlineKeyboardButtonSwitchInlineQueryCurrentChat") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "inlineKeyboardButtonPay") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))))

CallbackQuery

data CallbackQuery #

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

Defined in Telegram.Bot.API.Types

Generic CallbackQuery # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep CallbackQuery :: Type -> Type #

ToJSON CallbackQuery # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON CallbackQuery # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep CallbackQuery # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep CallbackQuery = D1 (MetaData "CallbackQuery" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 #

Constructors

CallbackQueryId Text 

ForceReply

data ForceReply #

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'

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

Defined in Telegram.Bot.API.Types

Generic ForceReply # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ForceReply :: Type -> Type #

ToJSON ForceReply # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ForceReply # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ForceReply # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ForceReply = D1 (MetaData "ForceReply" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" False) (C1 (MetaCons "ForceReply" PrefixI True) (S1 (MetaSel (Just "forceReplyForceReply") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "forceReplySelective") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))

Chat photo

data ChatPhoto #

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.

  • chatPhotoBigFileId :: FileId

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

Instances
Show ChatPhoto # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatPhoto # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatPhoto :: Type -> Type #

ToJSON ChatPhoto # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ChatPhoto # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatPhoto # 
Instance details

Defined in Telegram.Bot.API.Types

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

ChatMember

data ChatMember #

This object contains information about one member of a chat.

Constructors

ChatMember 

Fields

Instances
Show ChatMember # 
Instance details

Defined in Telegram.Bot.API.Types

Generic ChatMember # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ChatMember :: Type -> Type #

ToJSON ChatMember # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ChatMember # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatMember # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ChatMember = D1 (MetaData "ChatMember" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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 "chatMemberCanBeEdited") 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 "chatMemberCanDeleteMessages") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))) :*: (((S1 (MetaSel (Just "chatMemberCanInviteUsers") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "chatMemberCanRestrictMembers") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "chatMemberCanPinMessages") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "chatMemberCanPromoteMembers") 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 "chatMemberCanSendOtherMessages") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "chatMemberCanAddWebPagePreviews") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))))))

ResponseParameters

data ResponseParameters #

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

Defined in Telegram.Bot.API.Types

Generic ResponseParameters # 
Instance details

Defined in Telegram.Bot.API.Types

Associated Types

type Rep ResponseParameters :: Type -> Type #

ToJSON ResponseParameters # 
Instance details

Defined in Telegram.Bot.API.Types

FromJSON ResponseParameters # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ResponseParameters # 
Instance details

Defined in Telegram.Bot.API.Types

type Rep ResponseParameters = D1 (MetaData "ResponseParameters" "Telegram.Bot.API.Types" "telegram-bot-simple-0.2.0-31t24Pyt0AQxG6B783GY3" 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))))