Answer the question
In order to leave comments, you need to log in
Python telebot and sqlite3 (Recursive use of cursors not allowed) help?
There is a telegram bot that sends messages, receiving information from the sqlite3 database:
@bot.message_handler(regexp=config[language]['cat_phones'])
def handle_text(message):
cursor.execute('SELECT * FROM lots')
for row in cursor:
bot.send_message(message.from_user.id, '{0}\n{1}\n<b> {2:,} {3}</b>\n<b> {4:,} {3}</b>'.format(
row[3], row[5], row[8], row[1], row[8]/100*20), parse_mode='HTML')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question