Safe Haskell | None |
---|---|
Language | Haskell2010 |
Actions that the bot can perform
Documentation
type KickChatMember = Base :> ("kickChatmember" :> (ReqBody '[JSON] Kick :> Get '[JSON] (ReqResult Bool))) Source #
Instances
Eq Kick Source # | |
Show Kick Source # | |
Generic Kick Source # | |
ToJSON Kick Source # | |
Defined in Web.Telegram.API.Actions.Data | |
Default Kick Source # | |
Defined in Web.Telegram.API.Actions.Data | |
type Rep Kick Source # | |
Defined in Web.Telegram.API.Actions.Data type Rep Kick = D1 (MetaData "Kick" "Web.Telegram.API.Actions.Data" "telegram-raw-api-0.1.0-6INSX8mwqV2A3qTaYNvjDy" False) (C1 (MetaCons "Kick" PrefixI True) (S1 (MetaSel (Just "chatId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ChatId) :*: (S1 (MetaSel (Just "userId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer) :*: S1 (MetaSel (Just "untilDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Integer))))) |
type UnbanChatMember = Base :> ("unbanChatMember" :> (ReqBody '[JSON] Unban :> Get '[JSON] (ReqResult Bool))) Source #
Instances
Eq Unban Source # | |
Show Unban Source # | |
Generic Unban Source # | |
ToJSON Unban Source # | |
Defined in Web.Telegram.API.Actions.Data | |
Default Unban Source # | |
Defined in Web.Telegram.API.Actions.Data | |
type Rep Unban Source # | |
Defined in Web.Telegram.API.Actions.Data type Rep Unban = D1 (MetaData "Unban" "Web.Telegram.API.Actions.Data" "telegram-raw-api-0.1.0-6INSX8mwqV2A3qTaYNvjDy" False) (C1 (MetaCons "Unban" PrefixI True) (S1 (MetaSel (Just "chatId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ChatId) :*: S1 (MetaSel (Just "userId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))) |
type RestrictChatMember = Base :> ("restrictChatMember" :> (ReqBody '[JSON] Restriction :> Get '[JSON] (ReqResult Bool))) Source #
data Restriction Source #
Instances
type PromoteChatMember = Base :> ("promoteChatMember" :> (ReqBody '[JSON] Promotion :> Get '[JSON] (ReqResult Bool))) Source #
Instances
type SetChatAdministratorCustomTitle = Base :> ("setChatAdministratorCustomTitle" :> (QueryR "chat_id" ChatId :> (QueryR "user_id" Integer :> (QueryParam "custom_title" Text :> Get '[JSON] (ReqResult Bool))))) Source #
type SetChatPermissions = Base :> ("setChatPermissions" :> (QueryR "chat_id" ChatId :> (QueryR "permissions" ChatPermissions :> Get '[JSON] (ReqResult Bool)))) Source #
type ExportChatInviteLink = Base :> ("exportChatInviteLink" :> (QueryR "chat_id" ChatId :> Get '[JSON] (ReqResult Text))) Source #
type SetChatPhoto = Base :> ("setChatPhoto" :> (QueryR "chat_id" ChatId :> (CompoundParam Mem "photo" InputFile :> Get '[JSON] (ReqResult Bool)))) Source #
type DeleteChatPhoto = Base :> ("deleteChatPhoto" :> (QueryR "chat_id" ChatId :> Get '[JSON] (ReqResult Bool))) Source #
type SetChatTitle = Base :> ("setChatTitle" :> (QueryR "chat_id" ChatId :> (QueryR "title" Text :> Get '[JSON] (ReqResult Bool)))) Source #
type SetChatDescription = Base :> ("setChatDescription" :> (QueryR "chat_id" ChatId :> (QueryParam "description" Text :> Get '[JSON] (ReqResult Bool)))) Source #
type PinChatMessage = Base :> ("pinChatMessage" :> (QueryR "chat_id" ChatId :> (QueryR "message_id" Integer :> (QueryParam "disable_notification" Bool :> Get '[JSON] (ReqResult Bool))))) Source #
type UnpinChatMessage = Base :> ("unpinChatMessage" :> (QueryR "chat_id" ChatId :> Get '[JSON] (ReqResult Bool))) Source #
type LeaveChat = Base :> ("leaveChat" :> (QueryR "chat_id" ChatId :> Get '[JSON] (ReqResult Bool))) Source #
type SetChatStickerSet = Base :> ("setChatStickerSet" :> (QueryR "chat_id" ChatId :> (QueryR "sticker_set_name" Text :> Get '[JSON] (ReqResult Bool)))) Source #
type DeleteChatStickerSet = Base :> ("deleteChatStickerSet" :> (QueryR "chat_id" ChatId :> Get '[JSON] (ReqResult Bool))) Source #
type UploadStickerFileU = UploadStickerFile' (MultipartForm Mem PngSticker) Source #
type UploadStickerFile = UploadStickerFile' (QueryR "png_sticker" Text) Source #
type CreateNewStickerSetU = CreateNewStickerSet' (MultipartForm Mem PngSticker) Source #
type CreateNewStickerSet = CreateNewStickerSet' (QueryR "png_sticker" Text) Source #
type AddStickerToSetU = AddStickerToSet' (MultipartForm Mem PngSticker) Source #
type AddStickerToSet = AddStickerToSet' (QueryR "png_sticker" Text) Source #
type SetStickerPositionInSet = Base :> ("setStickerPositionInSet" :> (QueryR "sticker" Text :> (QueryR "positon" Integer :> Get '[JSON] (ReqResult Bool)))) Source #
type DeleteStickerFromSet = Base :> ("deleteStickerFromSet" :> (QueryR "sticker" Text :> Get '[JSON] (ReqResult Bool))) Source #
type SetStickerSetThumbU = SetStickerSetThumb' (MultipartForm Mem PngSticker) Source #
type SetStickerSetThumb = SetStickerSetThumb' (QueryR "thumb" Text) Source #
type AnswerInlineQuery = Base :> ("answerInlineQuery" :> (ReqBody '[JSON] InlineQueryAnswer :> Get '[JSON] (ReqResult Bool))) Source #
data InlineQueryAnswer Source #