Files
limoka/Fl1yd/FTG-Modules/nowplay.py
2025-07-10 21:02:34 +03:00

16 lines
516 B
Python

from .. import loader, utils
def register(cb):
cb(NowPlayMod())
class NowPlayMod(loader.Module):
"""Что сейчас играет."""
strings = {'name': 'NowPlay'}
async def npcmd(self, message):
"""Скидывает то, что сейчас играет."""
await message.edit('Минуточку...')
np = await message.client.inline_query('nowplaybot', '')
await message.client.send_file(message.to_id, np[0].result.document)
await message.delete()