Spaces:
Sleeping
Sleeping
File size: 619 Bytes
9aef05f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) Shrimadhav U K | Modified By > @DC4_WARRIOR
from pyrogram import filters
from pyrogram import Client as Clinton
from plugins.youtube_dl_button import youtube_dl_call_back
from plugins.dl_button import ddl_call_back
@Clinton.on_callback_query(filters.regex('^X0$'))
async def delt(bot, update):
await update.message.delete(True)
@Clinton.on_callback_query()
async def button(bot, update):
cb_data = update.data
if "|" in cb_data:
await youtube_dl_call_back(bot, update)
elif "=" in cb_data:
await ddl_call_back(bot, update)
|