def links(self, chat):
    zz = requests.get(url=('https://api.hackertarget.com/pagelinks/?q=' + self.h))
    bot.sendMessage(chat, zz.text)
def links(self, chat):
    zz = requests.get(url=('https://api.hackertarget.com/pagelinks/?q=' + self.h))
    bot.sendMessage(chat, zz.text)