2.0.8 • Published 3 years ago
ytdl-core-telegram v2.0.8
ytdl-core-telegram
A ytdl-core wrapper for using with tgcallsjs.
Installation
npm i ytdl-core-telegram
Usage with gram-tgcalls
import ytdl from "ytdl-core-telegram";
await gramtgcalls.stream(-1001360315518, ytdl("https://youtu.be/woiW9veqHq4"));
Specifying bitrate and/or channels
ytdl("https://youtu.be/woiW9veqHq4", {
channels: 1,
bitrate: 48000,
});
Downloading from info
import ytdl from "ytdl-core-telegram";
ytdl.downloadFromInfo(await ytdl.getInfo("https://youtu.be/woiW9veqHq4"));