Add support to /sdl

This commit is contained in:
Lucas Gabriel 2024-12-15 18:36:03 -03:00
parent 94eb75e204
commit 5d838095b2

View File

@ -56,7 +56,7 @@ const getApproxSize = async (command, videoUrl) => {
}; };
module.exports = (bot) => { module.exports = (bot) => {
bot.command(['yt', 'ytdl'], spamwatchMiddleware, async (ctx) => { bot.command(['yt', 'ytdl', 'sdl'], spamwatchMiddleware, async (ctx) => {
const Strings = getStrings(ctx.from.language_code); const Strings = getStrings(ctx.from.language_code);
const ytDlpPath = getYtDlpPath(); const ytDlpPath = getYtDlpPath();
const userId = ctx.from.id; const userId = ctx.from.id;