🤔T
есть вариант через loop.time(), но может еще чего-то подскажите
Size: a a a
🤔T
🤔T
🤔T
A
АС
A
@dp.message_handler(lambda message: True, content_types=['text', 'photo', 'sticker', 'video', 'audio', 'voice', 'location', 'animation', 'contact', 'document'])Ну тип такого (хендли, что хочешь)
АС
A
db.execute("SELECT COUNT(*) FROM messages WHERE datetime_creation >= datetime('now', '-? minutes')", (cfg.MINUTE_NOTIFICATION_USER_MESSAGES,))
ERROR: sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are 1 supplied.V
nn
АС
db.execute("SELECT COUNT(*) FROM messages WHERE datetime_creation >= datetime('now', '-? minutes')", (cfg.MINUTE_NOTIFICATION_USER_MESSAGES,))
ERROR: sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are 1 supplied.A
F
db.execute("SELECT COUNT(*) FROM messages WHERE datetime_creation >= datetime('now', '-? minutes')", (cfg.MINUTE_NOTIFICATION_USER_MESSAGES,))
ERROR: sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are 1 supplied.A
T
A
A
A