|
@ -43,13 +43,16 @@ class EmbedField(_EmbedFieldOptional): |
|
|
value: str |
|
|
value: str |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedThumbnail(TypedDict, total=False): |
|
|
class _EmbedThumbnailOptional(TypedDict, total=False): |
|
|
url: str |
|
|
|
|
|
proxy_url: str |
|
|
proxy_url: str |
|
|
height: int |
|
|
height: int |
|
|
width: int |
|
|
width: int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedThumbnail(_EmbedThumbnailOptional): |
|
|
|
|
|
url: str |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedVideo(TypedDict, total=False): |
|
|
class EmbedVideo(TypedDict, total=False): |
|
|
url: str |
|
|
url: str |
|
|
proxy_url: str |
|
|
proxy_url: str |
|
@ -57,25 +60,31 @@ class EmbedVideo(TypedDict, total=False): |
|
|
width: int |
|
|
width: int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedImage(TypedDict, total=False): |
|
|
class _EmbedImageOptional(TypedDict, total=False): |
|
|
url: str |
|
|
|
|
|
proxy_url: str |
|
|
proxy_url: str |
|
|
height: int |
|
|
height: int |
|
|
width: int |
|
|
width: int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedImage(_EmbedImageOptional): |
|
|
|
|
|
url: str |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedProvider(TypedDict, total=False): |
|
|
class EmbedProvider(TypedDict, total=False): |
|
|
name: str |
|
|
name: str |
|
|
url: str |
|
|
url: str |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedAuthor(TypedDict, total=False): |
|
|
class _EmbedAuthorOptional(TypedDict, total=False): |
|
|
name: str |
|
|
|
|
|
url: str |
|
|
url: str |
|
|
icon_url: str |
|
|
icon_url: str |
|
|
proxy_icon_url: str |
|
|
proxy_icon_url: str |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EmbedAuthor(_EmbedAuthorOptional): |
|
|
|
|
|
name: str |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EmbedType = Literal['rich', 'image', 'video', 'gifv', 'article', 'link'] |
|
|
EmbedType = Literal['rich', 'image', 'video', 'gifv', 'article', 'link'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|