mirror of
https://github.com/zedeus/nitter.git
synced 2024-06-03 13:59:20 +00:00
16 lines
307 B
Nim
16 lines
307 B
Nim
|
import options
|
||
|
from ../../types import VideoType, VideoVariant
|
||
|
|
||
|
type
|
||
|
MediaType* = enum
|
||
|
photo, video, animatedGif
|
||
|
|
||
|
MediaEntity* = object
|
||
|
kind*: MediaType
|
||
|
mediaUrlHttps*: string
|
||
|
videoInfo*: Option[VideoInfo]
|
||
|
|
||
|
VideoInfo* = object
|
||
|
durationMillis*: int
|
||
|
variants*: seq[VideoVariant]
|