bot types

This commit is contained in:
Evgeny Poberezkin committed 2026-09-02 10:17:02 +01:00
1 parent 37eb564cd2
commit 6dd7e91ea2
3 files changed
+17 -1

No files matched your search

+4
View File
@@ -2197,6 +2197,10 @@ Secret:
Small:
- type: "small"
Header:
- type: "header"
- level: int
Colored:
- type: "colored"
- color: [Color](#color)
@@ -2466,6 +2466,7 @@ export type Format =
| Format.Snippet
| Format.Secret
| Format.Small
| Format.Header
| Format.Colored
| Format.Uri
| Format.HyperLink
@@ -2484,6 +2485,7 @@ export namespace Format {
| "snippet"
| "secret"
| "small"
| "header"
| "colored"
| "uri"
| "hyperLink"
@@ -2522,6 +2524,11 @@ export namespace Format {
type: "small"
}
export interface Header extends Interface {
type: "header"
level: number // int
}
export interface Colored extends Interface {
type: "colored"
color: Color
@@ -1747,6 +1747,10 @@ class Format_secret(TypedDict):
class Format_small(TypedDict):
type: Literal["small"]
class Format_header(TypedDict):
type: Literal["header"]
level: int # int
class Format_colored(TypedDict):
type: Literal["colored"]
color: "Color"
@@ -1791,6 +1795,7 @@ Format = (
| Format_snippet
| Format_secret
| Format_small
| Format_header
| Format_colored
| Format_uri
| Format_hyperLink
@@ -1802,7 +1807,7 @@ Format = (
| Format_phone
)
Format_Tag = Literal["bold", "italic", "strikeThrough", "snippet", "secret", "small", "colored", "uri", "hyperLink", "simplexLink", "simplexName", "command", "mention", "email", "phone"]
Format_Tag = Literal["bold", "italic", "strikeThrough", "snippet", "secret", "small", "header", "colored", "uri", "hyperLink", "simplexLink", "simplexName", "command", "mention", "email", "phone"]
class FormattedText(TypedDict):
format: NotRequired["Format"]