Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data BotCommandScope Source #
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 parseJSON :: Value -> Parser BotCommandScope parseJSONList :: Value -> Parser [BotCommandScope] | |
ToJSON BotCommandScope Source # | |
Defined in Telegram.Bot.API.Types.BotCommandScope toJSON :: BotCommandScope -> Value toEncoding :: BotCommandScope -> Encoding toJSONList :: [BotCommandScope] -> Value toEncodingList :: [BotCommandScope] -> Encoding |