elif call.data == 'verify_name':
user_id=call.message.chat.id
query=(f"""
SELECT name
FROM user
WHERE id={user_id}
""")
c.execute(query)
name=c.fetchall()
print(name)
confirm_name=('Имя'+ str(name) +'записано')
sql.commit()
sql.close
bot.send_message(call.message.chat.id, confirm_name, parse_mode='html')
elif call.data == 'verify_name':
user_id=call.message.chat.id
query=(f"""
SELECT name
FROM user
WHERE id=%(id)s """%{"id":user_id})
c.execute(query)
name=c.fetchone()
delimiter = ','
single_str = delimiter.join(name)
print(format(single_str))
confirm_name=('Имя '+ format(single_str) +' записано')
sql.commit()
sql.close
bot.send_message(call.message.chat.id, confirm_name, parse_mode='html')