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

@@ -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"]