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