| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Telegram.Bot.API.Types.BotCommandScope
Documentation
data BotCommandScope Source #
Constructors
| BotCommandScopeDefault | Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user. |
| BotCommandScopeAllPrivateChats | Represents the scope of bot commands, covering all private chats. |
| BotCommandScopeAllGroupChats | Represents the scope of bot commands, covering all group and supergroup chats. |
| BotCommandScopeAllChatAdministrators | Represents the scope of bot commands, covering all group and supergroup chat administrators. |
| BotCommandScopeChat SomeChatId | Represents the scope of bot commands, covering a specific chat. |
| BotCommandScopeChatAdministrators SomeChatId | Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat. |
| BotCommandScopeChatMember SomeChatId UserId | Represents the scope of bot commands, covering a specific member of a group or supergroup chat. |
Instances
| FromJSON BotCommandScope Source # | |
Defined in Telegram.Bot.API.Types.BotCommandScope Methods parseJSON :: Value -> Parser BotCommandScope # parseJSONList :: Value -> Parser [BotCommandScope] # | |
| ToJSON BotCommandScope Source # | |
Defined in Telegram.Bot.API.Types.BotCommandScope Methods toJSON :: BotCommandScope -> Value # toEncoding :: BotCommandScope -> Encoding # toJSONList :: [BotCommandScope] -> Value # toEncodingList :: [BotCommandScope] -> Encoding # omitField :: BotCommandScope -> Bool # | |