pip uninstall telebot
pip install pytelegrambotapi -U
Столбец user_name есть, но не работает
cursor.execute('UPDATE lun_db SET user_name = ? WHERE user_id = ?', (username, userid))
import re
text1 = '@0'
text2 = '0'
print(text1, text1.startswith('@'))
print(text2, text2.startswith('@'))
print(text1, bool(re.match('^@', text1)))
print(text2, bool(re.match('^@', text2)))
print(text1, text1[:1] == '@')
print(text2, text2[:1] == '@')
# @0 True
# 0 False
# @0 True
# 0 False
# @0 True
# 0 False