def bot_msg(msg):
    chat_id = msg['chat']['id']
    command = msg['text']
    a = command
    if ('0' in str(command.find('/ssl'))):
        one = (a.find('-num ') + 5)
        one2 = ((a.find('-plc') - one) - 1)
        one3 = substr(a, one, one2)
        two = (a.find('-plc ') + 5)
        two2 = (a.find(';') - two)
        two3 = substr(a, two, two2)
        string = (((('/ssl -num ' + one3) + ' -plc ') + two3) + ';')
        if (string in a):
            if (two3 == 'er'):
                bot.sendMessage(chat_id, 'wait 15s please')
                for i in range(int(one3)):
                    creator = ssl(lerope)
                    x = creator.main(chat_id)
            elif (two3 == 'ar'):
                bot.sendMessage(chat_id, 'wait 15s please')
                for i in range(int(one3)):
                    creator = ssl(lamrica)
                    x = creator.main(chat_id)
            elif (two3 == 'as'):
                bot.sendMessage(chat_id, 'wait 15s please')
                for i in range(int(one3)):
                    creator = ssl(lasia)
                    x = creator.main(chat_id)
            else:
                bot.sendMessage(chat_id, 'choose avaible place please')
        else:
            bot.sendMessage(chat_id, 'wrong syntax')
    elif ('0' in str(command.find('/ssh'))):
        one = (a.find('-num ') + 5)
        one2 = ((a.find('-plc') - one) - 1)
        one3 = substr(a, one, one2)
        two = (a.find('-plc ') + 5)
        two2 = (a.find(';') - two)
        two3 = substr(a, two, two2)
        string = (((('/ssh -num ' + one3) + ' -plc ') + two3) + ';')
        if (string in a):
            if (two3 == 'er'):
                bot.sendMessage(chat_id, 'wait 5s please')
                for i in range(int(one3)):
                    creator = ssh(serope)
                    x = creator.main(chat_id)
            elif (two3 == 'ar'):
                bot.sendMessage(chat_id, 'wait 5s please')
                for i in range(int(one3)):
                    creator = ssh(samrica)
                    x = creator.main(chat_id)
            elif (two3 == 'as'):
                bot.sendMessage(chat_id, 'wait 5s please')
                for i in range(int(one3)):
                    creator = ssh(sasia)
                    x = creator.main(chat_id)
            else:
                bot.sendMessage(chat_id, 'choose avaible place please')
        else:
            bot.sendMessage(chat_id, 'wrong syntax')
    elif ('0' in str(command.find('/host'))):
        one = (a.find('-t ') + 3)
        one2 = ((a.find('-h') - one) - 1)
        one3 = substr(a, one, one2)
        two = (a.find('-h ') + 3)
        two2 = (a.find(';') - two)
        two3 = substr(a, two, two2)
        string = (((('/host -t ' + one3) + ' -h ') + two3) + ';')
        if (string in a):
            if (one3 == 'port'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).port(chat_id)
            elif (one3 == 'lookup'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).lookup(chat_id)
            elif (one3 == 'header'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).header(chat_id)
            elif (one3 == 'links'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).links(chat_id)
            else:
                bot.sendMessage(chat_id, 'choose avaible type please')
        else:
            bot.sendMessage(chat_id, 'wrong syntax')
    elif ('0' in str(command.find('/help'))):
        helps = 'welcome to Die Profis bot\nlist of classes:\n    host\n    ssh\n    ssl\n    trojan (coming soon in new update 24/2/2021)\n    proxy (coming soon in new update 24/2/2021)\n    create dns server (coming soon in new update 24/2/2021)\nclass host:\n    syntax:\n        /host -t <select type> -h <host>;\n    list of options (types):\n        -port -> check open ports in host\n        -header -> get headers from host\n        -lookup -> get ip from host (dns)\n        -links -> show other links for host\n        -test -> for test inject       (coming soon in new update 24/2/2021)\n    test:\n        /host -t port -h vodafone.com.eg;\n\nclass ssh:\n    syntax:\n        /ssh -num <num of account> -plc <place>\n    list of places:\n        -er\n        -as\n        -am\n        -num -> number of accounts\n    test:\n        /ssl -num 5 -plc er;\n \nclass ssl:\n    syntax:\n        /ssl -num <num of account> -plc <place>\n    list of places:\n        -er\n        -as\n        -am\n        -num -> number of accounts\n    test:\n        /ssl -num 5 -plc er;\n\n        '
        bot.sendMessage(chat_id, helps)
    elif ('0' in str(command.find('/start'))):
        bot.sendMessage(chat_id, "welcome mr:.... (what's your name )")
def bot_msg(msg):
    chat_id = msg['chat']['id']
    command = msg['text']
    a = command
    if ('0' in str(command.find('/ssl'))):
        one = (a.find('-num ') + 5)
        one2 = ((a.find('-plc') - one) - 1)
        one3 = substr(a, one, one2)
        two = (a.find('-plc ') + 5)
        two2 = (a.find(';') - two)
        two3 = substr(a, two, two2)
        string = (((('/ssl -num ' + one3) + ' -plc ') + two3) + ';')
        if (string in a):
            if (two3 == 'er'):
                bot.sendMessage(chat_id, 'wait 15s please')
                for i in range(int(one3)):
                    creator = ssl(lerope)
                    x = creator.main(chat_id)
            elif (two3 == 'ar'):
                bot.sendMessage(chat_id, 'wait 15s please')
                for i in range(int(one3)):
                    creator = ssl(lamrica)
                    x = creator.main(chat_id)
            elif (two3 == 'as'):
                bot.sendMessage(chat_id, 'wait 15s please')
                for i in range(int(one3)):
                    creator = ssl(lasia)
                    x = creator.main(chat_id)
            else:
                bot.sendMessage(chat_id, 'choose avaible place please')
        else:
            bot.sendMessage(chat_id, 'wrong syntax')
    elif ('0' in str(command.find('/ssh'))):
        one = (a.find('-num ') + 5)
        one2 = ((a.find('-plc') - one) - 1)
        one3 = substr(a, one, one2)
        two = (a.find('-plc ') + 5)
        two2 = (a.find(';') - two)
        two3 = substr(a, two, two2)
        string = (((('/ssh -num ' + one3) + ' -plc ') + two3) + ';')
        if (string in a):
            if (two3 == 'er'):
                bot.sendMessage(chat_id, 'wait 5s please')
                for i in range(int(one3)):
                    creator = ssh(serope)
                    x = creator.main(chat_id)
            elif (two3 == 'ar'):
                bot.sendMessage(chat_id, 'wait 5s please')
                for i in range(int(one3)):
                    creator = ssh(samrica)
                    x = creator.main(chat_id)
            elif (two3 == 'as'):
                bot.sendMessage(chat_id, 'wait 5s please')
                for i in range(int(one3)):
                    creator = ssh(sasia)
                    x = creator.main(chat_id)
            else:
                bot.sendMessage(chat_id, 'choose avaible place please')
        else:
            bot.sendMessage(chat_id, 'wrong syntax')
    elif ('0' in str(command.find('/host'))):
        one = (a.find('-t ') + 3)
        one2 = ((a.find('-h') - one) - 1)
        one3 = substr(a, one, one2)
        two = (a.find('-h ') + 3)
        two2 = (a.find(';') - two)
        two3 = substr(a, two, two2)
        string = (((('/host -t ' + one3) + ' -h ') + two3) + ';')
        if (string in a):
            if (one3 == 'port'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).port(chat_id)
            elif (one3 == 'lookup'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).lookup(chat_id)
            elif (one3 == 'header'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).header(chat_id)
            elif (one3 == 'links'):
                bot.sendMessage(chat_id, 'wait 5s please')
                host(two3).links(chat_id)
            else:
                bot.sendMessage(chat_id, 'choose avaible type please')
        else:
            bot.sendMessage(chat_id, 'wrong syntax')
    elif ('0' in str(command.find('/help'))):
        helps = 'welcome to Die Profis bot\nlist of classes:\n    host\n    ssh\n    ssl\n    trojan (coming soon in new update 24/2/2021)\n    proxy (coming soon in new update 24/2/2021)\n    create dns server (coming soon in new update 24/2/2021)\nclass host:\n    syntax:\n        /host -t <select type> -h <host>;\n    list of options (types):\n        -port -> check open ports in host\n        -header -> get headers from host\n        -lookup -> get ip from host (dns)\n        -links -> show other links for host\n        -test -> for test inject       (coming soon in new update 24/2/2021)\n    test:\n        /host -t port -h vodafone.com.eg;\n\nclass ssh:\n    syntax:\n        /ssh -num <num of account> -plc <place>\n    list of places:\n        -er\n        -as\n        -am\n        -num -> number of accounts\n    test:\n        /ssl -num 5 -plc er;\n \nclass ssl:\n    syntax:\n        /ssl -num <num of account> -plc <place>\n    list of places:\n        -er\n        -as\n        -am\n        -num -> number of accounts\n    test:\n        /ssl -num 5 -plc er;\n\n        '
        bot.sendMessage(chat_id, helps)
    elif ('0' in str(command.find('/start'))):
        bot.sendMessage(chat_id, "welcome mr:.... (what's your name )")