@ItzSjDude(outgoing=True, pattern='spam')
async def spammer(e):
    if ((not e.text[0].isalpha()) and (e.text[0] not in ('/', '#', '@', '!'))):
        message = e.text
        counter = int(message[6:8])
        spam_message = str(e.text[8:])
        (await wait([e.respond(spam_message) for i in range(counter)]))
        (await e.delete())
        if LOGGER:
            (await e.client.send_message(LOGGER_GROUP, '#SPAM \n\nSpam was executed successfully'))
@ItzSjDude(outgoing=True, pattern='spam')
async def spammer(e):
    if ((not e.text[0].isalpha()) and (e.text[0] not in ('/', '#', '@', '!'))):
        message = e.text
        counter = int(message[6:8])
        spam_message = str(e.text[8:])
        (await wait([e.respond(spam_message) for i in range(counter)]))
        (await e.delete())
        if LOGGER:
            (await e.client.send_message(LOGGER_GROUP, '#SPAM \n\nSpam was executed successfully'))