mirror of
https://github.com/zedeus/nitter.git
synced 2024-05-22 02:58:10 +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]
|