1. Obtain the API from monetizebot.ai.

  2. Integrate the code below with your existing bot’s code:

    @bot.message_handler(func=lambda msg: True)
    def monetizebot(message):
    		url = #Enter the monetizebot.ai url received
        
    		headers = {
    	  'Content-Type': 'application/json'
    		}
    
        payload = json.dumps({
        "query": ,
        "user_info": {
            "gender": #Generated from the prompt,
            "Age": #Generated from the prompt,
            "City": #Generated from the prompt
        }
        })
    
        result_string = requests.request("POST", url, headers=headers, data=payload)
        result_json = result_string.json()
    
        bot.reply_to(message, 'Product Name: ' + result_json['links'][0]['title'])
        bot.reply_to(message, 'Price: ' + result_json['links'][0]['price_amount'])
        bot.reply_to(message, 'Description: ' + result_json['links'][0]['description'])
        bot.reply_to(message, 'Product Link: ' + result_json['links'][0]['link'])
        bot.reply_to(message, 'Thumbnail: ' + result_json['links'][0]['thumbnail'])
    
  3. Make sure the payload is set appropriately as per the query given by the user.

  4. Get ready for payday 🚀🤑