text: #Ported by Aidil Aryanto
  
  import os
  from telethon.errors.rpcerrorlist import YouBlockedUserError
  
  from userbot.events import register
  from userbot import bot, TEMP_DOWNLOAD_DIRECTORY, CMD_HELP
  
  
  @register(outgoing=True, pattern=r'^.spotnow(:? |$)(.*)?')
  async def _(event):
      if event.fwd_from:
          return
      chat = "@SpotifyNowBot"
      now = f"/now"
      await event.edit("`Processing...`")
      async with event.client.conversation(chat) as conv:
          try:
              msg = await conv.send_message(now)
              response = await conv.get_response()
              """ - don't spam notif - """
              await bot.send_read_acknowledge(conv.chat_id)
          except YouBlockedUserError:
              await event.reply("`Please unblock` @SpotifyNowBot`...`")
              return
          if response.text.startswith("You're"):
              await event.edit("`You're not listening to anything on Spotify at the moment`")
              await event.client.delete_messages(conv.chat_id,
                                                 [msg.id, response.id])
              return
          if response.text.startswith("Ads."):
              await event.edit("`You're listening to those annoying ads.`")
              await event.client.delete_messages(conv.chat_id,
                                                 [msg.id, response.id])
              return
          else:
              downloaded_file_name = await event.client.download_media(
                                   response.media,
                                   TEMP_DOWNLOAD_DIRECTORY
              )
              await event.client.send_file(
                  event.chat_id,
                  downloaded_file_name,
                  force_document=False,
              )
              """ - cleanup chat after completed - """
              await event.client.delete_messages(conv.chat_id,
                                                 [msg.id, response.id])
      await event.delete()
      return os.remove(downloaded_file_name)
  
  
  CMD_HELP.update({
      "spotifynow":
      ">`.spotnow`"
      "\nUsage: Show what you're listening on spotify."
      "\n@SpotifyNowBot"
  })
  
  