@command(name="тест")
async def photo(self, ctx):
a = await self.bot.user_vk_request('photos.getMessagesUploadServer')
b = requests.post(a['response']['upload_url'], files={'photo': open('1.jpg', 'rb')}).json()
c = await self.bot.user_vk_request('photos.saveMessagesPhoto', photo=b['photo'], server=['server'], hash=b['hash'])[0]
d = 'photo{}_{}'.format(c['owner_id'], c['id'])
await ctx.send("Успешно", attachment=d)