| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Web.Telegram.Types
Contents
Synopsis
- data User = User {}
- data Message = Msg {}
- data MessageMetadata = MMetadata {
- messageId :: Int
- from :: Maybe User
- date :: POSIXTime
- chat :: Chat
- forwardFrom :: Maybe User
- forwardFromChat :: Maybe Chat
- forwardFromMessageId :: Maybe Int
- forwardSignature :: Maybe Text
- forwardSenderName :: Maybe Text
- forwardDate :: Maybe POSIXTime
- replyToMessage :: Maybe Message
- editDate :: Maybe POSIXTime
- mediaGroupId :: Maybe Text
- authorSignature :: Maybe Text
- replyMarkup :: Maybe InlineKeyboardMarkup
- data MessageEntity = MessageEntity {}
- data MessageEntityType
- = Mention
- | Hashtag
- | Cashtag
- | BotCommand
- | Url
- | PhoneNumber
- | Bold
- | Italic
- | Underline
- | Strikethrough
- | Code
- | Pre
- | TextLink
- | TextMention
- data MessageContent
- = TextM {
- text :: Text
- entities :: Maybe [MessageEntity]
- | AudioM {
- audio :: Audio
- caption :: Maybe Text
- captionEntities :: Maybe [MessageEntity]
- | DocumentM { }
- | AnimationM { }
- | GameM {
- game :: Game
- | PhotoM {
- photo :: [PhotoSize]
- caption :: Maybe Text
- captionEntities :: Maybe [MessageEntity]
- | StickerM { }
- | VideoM {
- video :: Video
- caption :: Maybe Text
- captionEntities :: Maybe [MessageEntity]
- | VoiceM {
- voice :: Voice
- caption :: Maybe Text
- captionEntities :: Maybe [MessageEntity]
- | VideoNoteM { }
- | ContactM { }
- | LocationM { }
- | VenueM { }
- | PollM { }
- | NewChatMembers {
- newChatMembers :: [User]
- | LeftChatMember { }
- | NewChatPhoto {
- newChatPhoto :: [PhotoSize]
- | DeleteChatPhoto { }
- | GroupChatCreated { }
- | SupergroupChatCreated { }
- | ChannelChatCreated { }
- | MigrateToChatId { }
- | MigrateFromChatId { }
- | PinnedMessage { }
- | InvoiceM {
- invoice :: Invoice
- | SuccessfulPaymentM { }
- | ConnectedWebsite { }
- | PassportData { }
- = TextM {
- data ParseMode
- = MarkdownV2
- | HTML
- | Markdown
- data Chat = Chat {
- chatId :: Int64
- chatType :: ChatType
- title :: Maybe Text
- username :: Maybe Text
- firstName :: Maybe Text
- lastName :: Maybe Text
- photo :: Maybe ChatPhoto
- description :: Maybe Text
- inviteLink :: Maybe Text
- pinnedMessage :: Maybe Message
- permissions :: Maybe ChatPermissions
- slowModeDelay :: Maybe Int
- stickerSetName :: Maybe Int
- canSetStickerSet :: Maybe Bool
- data ChatType
- = Private
- | Group
- | Supergroup
- | Channel
- data ChatPermissions = ChatPermissions {}
- data ChatPhoto = ChatPhoto {}
- data ChatStatus
- = Creator
- | Administrator
- | Member
- | Restricted
- | Left
- | Kicked
- data ChatMember = ChatMember {
- user :: User
- status :: ChatStatus
- customTitle :: Maybe Text
- untilDate :: Maybe POSIXTime
- canBeEdited :: Maybe Bool
- canPostMessages :: Maybe Bool
- canEditMessages :: Maybe Bool
- canDeleteMessages :: Maybe Bool
- canRestrictMembers :: Maybe Bool
- canPromoteMembers :: Maybe Bool
- canChangeInfo :: Maybe Bool
- canInviteUsers :: Maybe Bool
- canPinMessages :: Maybe Bool
- isMember :: Maybe Bool
- canSendMessages :: Maybe Bool
- canSendMediaMessages :: Maybe Bool
- canSendPolls :: Maybe Bool
- canSendOtherMesssages :: Maybe Bool
- canAddWebPagePreviews :: Maybe Bool
- data PhotoSize = PhotoSize {}
- data Audio = Audio {}
- data Animation = Animation {}
- data Document = Document {}
- data Video = Video {}
- data Voice = Voice {}
- data VideoNote = VideoNote {}
- data Contact = Contact {}
- data Location = Location {}
- data Venue = Venue {}
- data PollOption = PollOption {
- text :: Text
- voterCount :: Int
- data Poll = Poll {
- pollId :: Text
- question :: Text
- options :: [PollOption]
- totalVoterCount :: Int
- isClosed :: Bool
- isAnonymous :: Bool
- pollType :: PollType
- allowsMultipleAnswers :: Bool
- correctOptionId :: Maybe Int
- data PollType
- data PollAnswer = PollAnswer {}
- data UserProfilePhotos = UserProfilePhotos {
- totalCount :: Int
- photos :: [[PhotoSize]]
- data File = File {}
- data Sticker = Sticker {}
- data StickerSet = StickerSet {
- name :: Text
- title :: Text
- isAnimated :: Bool
- containsMasks :: Bool
- stickers :: [Sticker]
- data MaskPosition = MaskPosition {}
- data SuccessfulPayment = SuccessfulPayment {}
- data OrderInfo = OrderInfo {}
- data ShippingAddress = ShippingAddress {
- countryCode :: Text
- state :: Text
- city :: Text
- streetLine1 :: Text
- streetLine2 :: Text
- postCode :: Text
- coe :: Coercible a b => a -> b
- liftUnion :: (Typeable a, Elem a s) => a -> Union s
- type QueryR = QueryParam' '[Required, Strict]
- class Default a where
- def :: a
User
A Telegram user or bot.
Constructors
| User | |
Fields
| |
Instances
Message
Constructors
| Msg | |
Fields | |
Instances
| Eq Message Source # | |
| Show Message Source # | |
| Generic Message Source # | |
| ToJSON Message Source # | |
Defined in Web.Telegram.Types.Internal.Common | |
| FromJSON Message Source # | |
| ToHttpApiData Message Source # | |
Defined in Web.Telegram.Types.Internal.Common Methods toUrlPiece :: Message -> Text # toEncodedUrlPiece :: Message -> Builder # toHeader :: Message -> ByteString # toQueryParam :: Message -> Text # | |
| Default Message Source # | |
Defined in Web.Telegram.Types.Internal.Common | |
| type Rep Message Source # | |
Defined in Web.Telegram.Types.Internal.Common type Rep Message = D1 (MetaData "Message" "Web.Telegram.Types.Internal.Common" "telegram-types-0.4.1-1P4e2IAcVvTIzPu4vV22Qd" False) (C1 (MetaCons "Msg" PrefixI True) (S1 (MetaSel (Just "metadata") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MessageMetadata) :*: S1 (MetaSel (Just "content") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MessageContent))) | |
data MessageMetadata Source #
Constructors
| MMetadata | |
Fields
| |
Instances
data MessageEntity Source #
Constructors
| MessageEntity | |
Instances
data MessageEntityType Source #
Constructors
| Mention | |
| Hashtag | |
| Cashtag | |
| BotCommand | |
| Url | |
| PhoneNumber | |
| Bold | |
| Italic | |
| Underline | |
| Strikethrough | |
| Code | |
| Pre | |
| TextLink | |
| TextMention |
Instances
data MessageContent Source #
Constructors
| TextM | |
Fields
| |
| AudioM | |
Fields
| |
| DocumentM | |
Fields
| |
| AnimationM | |
| GameM | |
Fields
| |
| PhotoM | |
Fields
| |
| StickerM | |
| VideoM | |
Fields
| |
| VoiceM | |
Fields
| |
| VideoNoteM | |
| ContactM | |
| LocationM | |
| VenueM | |
| PollM | |
| NewChatMembers | |
Fields
| |
| LeftChatMember | |
Fields | |
| NewChatPhoto | |
Fields
| |
| DeleteChatPhoto | |
Fields | |
| GroupChatCreated | |
Fields | |
| SupergroupChatCreated | |
Fields | |
| ChannelChatCreated | |
Fields | |
| MigrateToChatId | |
Fields | |
| MigrateFromChatId | |
Fields | |
| PinnedMessage | |
Fields | |
| InvoiceM | |
Fields
| |
| SuccessfulPaymentM | |
Fields | |
| ConnectedWebsite | |
Fields | |
| PassportData | |
Fields | |
Instances
Constructors
| MarkdownV2 | |
| HTML | |
| Markdown |
Instances
Chat
Constructors
| Chat | |
Fields
| |
Instances
Constructors
| Private | |
| Group | |
| Supergroup | |
| Channel |
Instances
data ChatPermissions Source #
Constructors
| ChatPermissions | |
Fields | |
Instances
Constructors
| ChatPhoto | |
Fields
| |
Instances
data ChatStatus Source #
Constructors
| Creator | |
| Administrator | |
| Member | |
| Restricted | |
| Left | |
| Kicked |
Instances
data ChatMember Source #
Constructors
| ChatMember | |
Fields
| |
Instances
Media Types
Image
Constructors
| PhotoSize | |
Instances
Audio
Constructors
| Audio | |
Instances
Animation
Constructors
| Animation | |
Instances
Document
Constructors
| Document | |
Instances
Video
Constructors
| Video | |
Instances
Voice
Constructors
| Voice | |
Instances
VideoNote
Constructors
| VideoNote | |
Instances
Contact
Constructors
| Contact | |
Instances
Location
Instances
| Eq Location Source # | |
| Show Location Source # | |
| Generic Location Source # | |
| ToJSON Location Source # | |
Defined in Web.Telegram.Types.Internal.Media | |
| FromJSON Location Source # | |
| ToHttpApiData Location Source # | |
Defined in Web.Telegram.Types.Internal.Media Methods toUrlPiece :: Location -> Text # toEncodedUrlPiece :: Location -> Builder # toHeader :: Location -> ByteString # toQueryParam :: Location -> Text # | |
| Default Location Source # | |
Defined in Web.Telegram.Types.Internal.Media | |
| type Rep Location Source # | |
Defined in Web.Telegram.Types.Internal.Media type Rep Location = D1 (MetaData "Location" "Web.Telegram.Types.Internal.Media" "telegram-types-0.4.1-1P4e2IAcVvTIzPu4vV22Qd" False) (C1 (MetaCons "Location" PrefixI True) (S1 (MetaSel (Just "longitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Float) :*: S1 (MetaSel (Just "latitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Float))) | |
Venue
Constructors
| Venue | |
Instances
PollOption
data PollOption Source #
Constructors
| PollOption | |
Fields
| |
Instances
Poll
Constructors
| Poll | |
Fields
| |
Instances
Instances
| Eq PollType Source # | |
| Show PollType Source # | |
| Generic PollType Source # | |
| ToJSON PollType Source # | |
Defined in Web.Telegram.Types.Internal.Media | |
| FromJSON PollType Source # | |
| ToHttpApiData PollType Source # | |
Defined in Web.Telegram.Types.Internal.Media Methods toUrlPiece :: PollType -> Text # toEncodedUrlPiece :: PollType -> Builder # toHeader :: PollType -> ByteString # toQueryParam :: PollType -> Text # | |
| Default PollType Source # | |
Defined in Web.Telegram.Types.Internal.Media | |
| type Rep PollType Source # | |
PollAnswer
data PollAnswer Source #
Instances
Avatar
data UserProfilePhotos Source #
Constructors
| UserProfilePhotos | |
Fields
| |
Instances
File
Constructors
| File | |
Instances
Stickers
Constructors
| Sticker | |
Instances
data StickerSet Source #
Constructors
| StickerSet | |
Fields
| |
Instances
data MaskPosition Source #
Instances
Payment
data SuccessfulPayment Source #
Constructors
| SuccessfulPayment | |
Fields | |
Instances
Constructors
| OrderInfo | |
Fields
| |
Instances
data ShippingAddress Source #
Constructors
| ShippingAddress | |
Fields
| |
Instances
Utilities
class Default a where Source #
A class for types with a default value.
Minimal complete definition
Nothing