код:
@bot.on.chat_message(text='банк', lower=True)
async def Bank(ans: Message):
chat_id = ans.chat_id
c.execute('SELECT stavki FROM chat_1 WHERE chat_id=%d' % chat_id)
res = c.fetchone()[0]
print(f'\n{res}')
bank = ''
result = res.split(';')
del result[0]
del result[-1]
bank = ''
print(result)
for ell in result:
el = ell.split(':')
data = await bot.api.users.get(user_ids=el[0])
name = await data[0]['first_name'] + ' ' + data[0]['last_name']
bank += f"@id{el[0]}({name}) поставил {el[2]} VkCoins на {el[1]}\n\n"
await ans(f'{bank}')
ошибка