@dp.message_handler()
async def text_zap(message:types.Message):
if message.text == "Текст":
await btns.mess.set()
question = message.text.strip()
response = openai.Completion.create(
engine="text-davinci-003",
prompt=question,
max_tokens=1024,
n=1,
stop=None,
temperature=0.5,
)
await message.answer(response['choices'][0].text.strip())