Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype FileId = FileId Text
- newtype Seconds = Seconds Int
- newtype UserId = UserId Integer
- newtype ChatId = ChatId Integer
- newtype MessageId = MessageId Integer
- newtype MessageThreadId = MessageThreadId Integer
- newtype MediaGroupId = MediaGroupId Text
- newtype RequestId = RequestId Integer
- newtype PollId = PollId Text
- newtype ShippingOptionId = ShippingOptionId Text
- newtype WebAppInfo = WebAppInfo {}
- newtype CallbackQueryId = CallbackQueryId Text
- data SomeChatId
- addType :: Text -> [Pair] -> [Pair]
Documentation
Unique identifier for this file.
Instances
FromJSON FileId Source # | |
ToJSON FileId Source # | |
Defined in Telegram.Bot.API.Types.Common | |
Show FileId Source # | |
Eq FileId Source # | |
ToHttpApiData FileId Source # | |
Defined in Telegram.Bot.API.Types.Common toUrlPiece :: FileId -> Text # toEncodedUrlPiece :: FileId -> Builder # toHeader :: FileId -> ByteString # toQueryParam :: FileId -> Text # |
Unique identifier for this user or bot.
Instances
FromJSON UserId Source # | |
ToJSON UserId Source # | |
Defined in Telegram.Bot.API.Types.Common | |
Show UserId Source # | |
Eq UserId Source # | |
ToHttpApiData UserId Source # | |
Defined in Telegram.Bot.API.Types.Common toUrlPiece :: UserId -> Text # toEncodedUrlPiece :: UserId -> Builder # toHeader :: UserId -> ByteString # toQueryParam :: UserId -> Text # |
Unique identifier for this chat.
Instances
FromJSON ChatId Source # | |
ToJSON ChatId Source # | |
Defined in Telegram.Bot.API.Types.Common | |
Show ChatId Source # | |
Eq ChatId Source # | |
Hashable ChatId Source # | |
Defined in Telegram.Bot.API.Types.Common | |
ToHttpApiData ChatId Source # | |
Defined in Telegram.Bot.API.Types.Common toUrlPiece :: ChatId -> Text # toEncodedUrlPiece :: ChatId -> Builder # toHeader :: ChatId -> ByteString # toQueryParam :: ChatId -> Text # |
Unique message identifier inside this chat.
Instances
FromJSON MessageId Source # | |
ToJSON MessageId Source # | |
Defined in Telegram.Bot.API.Types.Common | |
Show MessageId Source # | |
Eq MessageId Source # | |
Hashable MessageId Source # | |
Defined in Telegram.Bot.API.Types.Common | |
ToHttpApiData MessageId Source # | |
Defined in Telegram.Bot.API.Types.Common toUrlPiece :: MessageId -> Text # toEncodedUrlPiece :: MessageId -> Builder # toHeader :: MessageId -> ByteString # toQueryParam :: MessageId -> Text # |
newtype MessageThreadId Source #
Unique identifier of a message thread to which the message belongs; for supergroups only.
Instances
newtype MediaGroupId Source #
The unique identifier of a media message group a message belongs to.
Instances
FromJSON MediaGroupId Source # | |
Defined in Telegram.Bot.API.Types.Common parseJSON :: Value -> Parser MediaGroupId # parseJSONList :: Value -> Parser [MediaGroupId] # | |
ToJSON MediaGroupId Source # | |
Defined in Telegram.Bot.API.Types.Common toJSON :: MediaGroupId -> Value # toEncoding :: MediaGroupId -> Encoding # toJSONList :: [MediaGroupId] -> Value # toEncodingList :: [MediaGroupId] -> Encoding # | |
Show MediaGroupId Source # | |
Defined in Telegram.Bot.API.Types.Common showsPrec :: Int -> MediaGroupId -> ShowS # show :: MediaGroupId -> String # showList :: [MediaGroupId] -> ShowS # | |
Eq MediaGroupId Source # | |
Defined in Telegram.Bot.API.Types.Common (==) :: MediaGroupId -> MediaGroupId -> Bool # (/=) :: MediaGroupId -> MediaGroupId -> Bool # |
Signed 32-bit identifier of the request, which will be received back in the UserShared
or ChatShared
object. Must be unique within the message.
Unique poll identifier.
newtype ShippingOptionId Source #
Instances
newtype WebAppInfo Source #
Instances
newtype CallbackQueryId Source #
Instances
data SomeChatId Source #
Unique identifier for the target chat
or username of the target channel (in the format @channelusername
).
SomeChatId ChatId | Unique chat ID. |
SomeChatUsername Text | Username of the target channel. |