def test_sendPic_bad_object(self):
		if USER_TEST:
			bot = TelegramHigh(self.BOT_TOKEN)
			#string
			bot.sendPic(chat_id=self.chat_id, pic="test_pics/pic1.jpg", caption="")
			#none
			bot.sendPic(chat_id=self.chat_id, pic=None)
			#Nonexisting file
			self.assertRaises(FileNotFoundError, lambda:
							  bot.sendPic(chat_id=self.chat_id,
										  pic=open("test_pics/ppppp.jpg", 'rb'), caption="lol"))
	def test_sendPic_files(self):
		if USER_TEST:
			bot = TelegramHigh(self.BOT_TOKEN)
			bot.sendPic(chat_id=self.chat_id, pic=open("test_pics/002/pic4.jpg", 'rb'), caption="")
			bot.sendPic(chat_id=self.chat_id, pic=open("test_pics/pic3.jpg", 'rb'), caption="")
			bot.sendPic(chat_id=self.chat_id, pic=open("test_pics/pic2.jpeg", 'rb'))
			bot.sendPic(chat_id=self.chat_id, pic=open("test_pics/pic1.png", 'rb'), caption="Test png")
	def test_sendPic_badFileID(self):
		if USER_TEST:
			bot = TelegramHigh(self.BOT_TOKEN)

			self.assertRaisesRegex(Exception,
			"Network error",
			lambda:
			bot.sendPic(chat_id=self.chat_id, pic="AgADAgADvKwxG-wJf1qMovYCa4r-r-nVgioABJAQ_xRgcmsrHhoCAAEC")
							)

			self.assertRaisesRegex(Exception,
			"Network error",
			lambda:
			bot.sendPic(chat_id=self.chat_id, pic="AgADAgADvKwxG-wJf1qMova4r-r-nVgioABJAQ_xRgcmsrHhoCAAEC")
							)
	def test_sendPic_bytestring(self):
		if USER_TEST:
			data = b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\t\x08\x06\x00\x00\x00;*\xac2\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\x00\tpHYs\x00\x00\x0e\xc4\x00\x00\x0e\xc4\x01\x95+\x0e\x1b\x00\x00\x01GIDAT(\x91}\x8f\xdd+Cq\x00\x86\x9fs\xce\xef\x9c\xb1\x8f\xc8W[\x8b|m$\x85\xb8 R\x96\x92r\xad\x94\x0bW\xfe\x00\xca5\xe5/\x10\xd7\xca\xe5R\xca\x8d\x9a"\x97\x92\xdd\x90\x88\xb5\x93\xc6i\x8b\xadm\x92a\xfb\xb9\xb2\xc8\x99\xf7\xfa}\x9e\xb7W\x91RJl"\xa5\xe4\xad\xf0N$z\xcc\xd1\xd9\x01\xd7V\x1c\xa3\x94gin\x85\x89\x81\xe9rO\xb5\x83\xbf\x93\xcc\xa489\xdf\xe5"yN\xb6x\xcbP\xcf \xa3\xbd\x93\xbf:\xc2\x0e\xcc\xe5\xd2\xa0\xea\\\x997\xc4\xccG\n)\x8b6\x7f\x13\xcb\xb3\xab\x18\xba^Y \xa5$z\xb8O8\xbc\xc5\xa7(b\x15\xd2h\x1f\x02\xcd]\xcb`\xfb\x08n\xa7\xfb\xcf\x98\xf8\tG\xf66\t\xefo\x90\xd5t\x94\xa7w\xbc5\xcdx\xfa\xfay\x91\x19fB\x0b\xb67\xcb\x82\xd8]\x94\xc8\xf6:\x0fU\x02\xf2:\x9e\xfa\x1a\xa6\xe6W\xf0\xfbZ\xe8\xe9\x08`\x08\xddV\xa0\x02\xdc^\x9e\xb2\xb3\xb6\x88\x99+Q\xf7\xf4A\xde%\xd0\xdf$\x1eW5\xdd\xad\x9d\x18BGQ\x94\xca\x82\xd7\x84E\xd6L\x12DAkw\x91\xc3KF:)Ip8\x8c\x8apY\x10\x18\x0b\xd15<\x8e\xda\xe0\xa0\x18/\x11L\'\xf0\xdd?\xe3\xafkD\xfd\x07\x06\xf8\x02Wcq9\xe1\r \xc0\x00\x00\x00\x00IEND\xaeB`\x82'
			bot = TelegramHigh(self.BOT_TOKEN)
			bot.sendPic(chat_id=self.chat_id, pic=data)