telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellNone
LanguageHaskell2010

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

Instances details
FromJSON BotCommandScope Source # 
Instance details

Defined in Telegram.Bot.API.Types.BotCommandScope

Methods

parseJSON :: Value -> Parser BotCommandScope

parseJSONList :: Value -> Parser [BotCommandScope]

ToJSON BotCommandScope Source # 
Instance details

Defined in Telegram.Bot.API.Types.BotCommandScope

Methods

toJSON :: BotCommandScope -> Value

toEncoding :: BotCommandScope -> Encoding

toJSONList :: [BotCommandScope] -> Value

toEncodingList :: [BotCommandScope] -> Encoding