def port(self, chat):
    x = requests.get(url=('https://api.hackertarget.com/nmap/?q=' + self.dns))
    bot.sendMessage(chat, x.text)
def port(self, chat):
    x = requests.get(url=('https://api.hackertarget.com/nmap/?q=' + self.dns))
    bot.sendMessage(chat, x.text)