Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mokkaytd #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

@Client.on_message(Filters.command(["help"]))
async def start(client, message):
helptxt = f"Aw le! Youtube Video Mp3/Mp4 engpawh ka download theia, Mahse, Playlists a theih loh thung. Youtube URL Link lo thawn tawp la aw. Chuan Mp3/Mp4 i duh ilo thlang mai ang. Powered by @ZauTe_Km"
helptxt = f"Send Me Youtube Link To Be Uploaded To Telegram Powered by @bot_beast"
await message.reply_text(helptxt)
8 changes: 4 additions & 4 deletions plugins/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
async def start(client, message):
# return
joinButton = InlineKeyboardMarkup([
[InlineKeyboardButton("Support Channel", url="https://t.me/TGBotSzK")],
[InlineKeyboardButton(
"Support Group", url="https://t.me/MizoInFoTel1")]
[InlineKeyboardButton("owner", url="https://t.me/bot_beast")]


])
welcomed = f"Hi! <b>{message.from_user.first_name}</b>\n/help lo thawn la aw, Min hmandan tur i hriat duh chuan."
welcomed = f"Hi! <b>{message.from_user.first_name}</b>\n/help Yo, I am a Powefull Youtube Download Bot 🤓! \n Send Me Youtube Link, So I Can Upload It To Telegram As File/Video!"
await message.reply_text(welcomed, reply_markup=joinButton)
raise StopPropagation
6 changes: 3 additions & 3 deletions plugins/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ async def ytdl(_, message):
timedelta(minutes=youtube_next_fetch)

except Exception:
await message.reply_text("`A fail tlat mai.. 😔 \nA chhhan chu, he Video Data hi ka hmu thei lo tlat. \n#error`")
await message.reply_text("`A failed to fetch the URL try again later 😔 \n#error`")
return
buttons = InlineKeyboardMarkup(list(create_buttons(formats)))
sentm = await message.reply_text("YT URL a dik e... © @TGBotSzK")
sentm = await message.reply_text("YT URL © @bot_beast")
try:
# Todo add webp image support in thumbnail by default not supported by pyrogram
# https://www.youtube.com/watch?v=lTTajzrSkCw
await message.reply_photo(thumbnail_url, caption=title, reply_markup=buttons)
await sentm.delete()
except Exception as e:
try:
thumbnail_url = "https://telegra.ph/file/d75ec77d3d1a4a7f64548.jpg"
thumbnail_url = "https://cdn.vox-cdn.com/thumbor/vQk5ZesaSb73aQ0krpdClSjSENw=/0x0:2040x1360/1200x800/filters:focal(857x517:1183x843)/cdn.vox-cdn.com/uploads/chorus_image/image/61435097/wjoel_1777_180403_youtube_005.0.jpg"
await message.reply_photo(thumbnail_url, caption=title, reply_markup=buttons)
except Exception as e:
await sentm.edit(
Expand Down