Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data KeyboardButtonType
- = KeyboardButtonTypeText
- | KeyboardButtonTypeRequestPhoneNumber
- | KeyboardButtonTypeRequestLocation
- | KeyboardButtonTypeRequestPoll { }
- | KeyboardButtonTypeRequestUsers { }
- | KeyboardButtonTypeRequestChat {
- _id :: Maybe Int
- chat_is_channel :: Maybe Bool
- restrict_chat_is_forum :: Maybe Bool
- chat_is_forum :: Maybe Bool
- restrict_chat_has_username :: Maybe Bool
- chat_has_username :: Maybe Bool
- chat_is_created :: Maybe Bool
- user_administrator_rights :: Maybe ChatAdministratorRights
- bot_administrator_rights :: Maybe ChatAdministratorRights
- bot_is_member :: Maybe Bool
- request_title :: Maybe Bool
- request_username :: Maybe Bool
- request_photo :: Maybe Bool
- | KeyboardButtonTypeWebApp { }
Documentation
data KeyboardButtonType Source #
Describes a keyboard button type
KeyboardButtonTypeText | A simple button, with text that must be sent when the button is pressed |
KeyboardButtonTypeRequestPhoneNumber | A button that sends the user's phone number when pressed; available only in private chats |
KeyboardButtonTypeRequestLocation | A button that sends the user's location when pressed; available only in private chats |
KeyboardButtonTypeRequestPoll | A button that allows the user to create and send a poll when pressed; available only in private chats |
| |
KeyboardButtonTypeRequestUsers | A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request |
| |
KeyboardButtonTypeRequestChat | A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request |
| |
KeyboardButtonTypeWebApp | A button that opens a Web App by calling getWebAppUrl |
Instances
FromJSON KeyboardButtonType Source # | |
Defined in TD.Data.KeyboardButtonType parseJSON :: Value -> Parser KeyboardButtonType # parseJSONList :: Value -> Parser [KeyboardButtonType] # | |
ToJSON KeyboardButtonType Source # | |
Defined in TD.Data.KeyboardButtonType toJSON :: KeyboardButtonType -> Value # toEncoding :: KeyboardButtonType -> Encoding # toJSONList :: [KeyboardButtonType] -> Value # toEncodingList :: [KeyboardButtonType] -> Encoding # | |
Show KeyboardButtonType Source # | |
Defined in TD.Data.KeyboardButtonType showsPrec :: Int -> KeyboardButtonType -> ShowS # show :: KeyboardButtonType -> String # showList :: [KeyboardButtonType] -> ShowS # | |
Eq KeyboardButtonType Source # | |
Defined in TD.Data.KeyboardButtonType (==) :: KeyboardButtonType -> KeyboardButtonType -> Bool # (/=) :: KeyboardButtonType -> KeyboardButtonType -> Bool # | |
ShortShow KeyboardButtonType Source # | |
Defined in TD.Data.KeyboardButtonType shortShow :: KeyboardButtonType -> String Source # |