mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-23 04:39:59 +00:00
bot types
This commit is contained in:
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"]
|
||||
|
||||
Reference in new issue
Block a user