Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Update
- = Message { }
- | EditedMessage { }
- | ChannelPost { }
- | EditedChannelPost { }
- | InlineQuery {
- updateId :: Integer
- iquery :: InlineQuery
- | ChosenInlineResult { }
- | CallbackQuery { }
- | ShippingQuery { }
- | PreCheckoutQuery { }
- | PollUpdate { }
- | PollAnswer {
- updateId :: Integer
- answer :: PollAnswer
- data WebhookInfo = WebhookInfo {}
- data ResponseParameters = ResponseParameters {}
- newtype ReqResult a = Ok a
- data ReqEither a b
- data BotCommand = BC {
- command :: Text
- description :: Text
Documentation
An incoming update
Message | New incoming message of any kind — text, photo, sticker, etc. |
EditedMessage | New version of a message that is known to the bot and was edited |
ChannelPost | New incoming channel post of any kind — text, photo, sticker, etc. |
EditedChannelPost | New version of a channel post that is known to the bot and was edited |
InlineQuery | New incoming inline query |
| |
ChosenInlineResult | The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot |
CallbackQuery | New incoming callback query |
| |
ShippingQuery | New incoming shipping query. Only for invoices with flexible price |
| |
PreCheckoutQuery | New incoming pre-checkout query. Contains full information about checkout |
PollUpdate | New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot |
PollAnswer | A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself. |
|
Instances
data WebhookInfo Source #
Contains information about the current status of a webhook.
WebhookInfo | |
|
Instances
Response
data ResponseParameters Source #
Instances
Ok a |
Instances
(Eq a, Eq b) => Eq (ReqEither a b) Source # | |
(Show a, Show b) => Show (ReqEither a b) Source # | |
Generic (ReqEither a b) Source # | |
(FromJSON a, FromJSON b) => FromJSON (ReqEither a b) Source # | |
type Rep (ReqEither a b) Source # | |
Defined in Web.Telegram.Types.Internal.Common type Rep (ReqEither a b) = D1 (MetaData "ReqEither" "Web.Telegram.Types.Internal.Common" "telegram-types-0.1.0-6TiTf83FaoyKIwaUxcYK63" False) (C1 (MetaCons "LLL" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)) :+: C1 (MetaCons "RRR" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 b))) |
data BotCommand Source #
BC | |
|