aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api/slack_bots_info.pyi
blob: 40729756ab69e31cc37cc85112c050054c66d273 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from typing import Dict, List, Literal, TypedDict, final

from slack_api.slack_error import SlackErrorResponse
from typing_extensions import NotRequired

class SlackBotInfo(TypedDict):
    id: str
    deleted: bool
    name: str
    updated: int
    app_id: str
    user_id: NotRequired[str]
    icons: Dict[str, str]

@final
class SlackBotInfoSuccessResponse(TypedDict):
    ok: Literal[True]
    bot: SlackBotInfo

SlackBotInfoResponse = SlackBotInfoSuccessResponse | SlackErrorResponse