small fix
This commit is contained in:
parent
bee536c715
commit
b65b6aee48
@ -3,7 +3,7 @@ from flask import Flask, request, jsonify
|
|||||||
import telebot
|
import telebot
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
import hashlib
|
import hashlib
|
||||||
import logging
|
#import logging
|
||||||
from logging.config import dictConfig
|
from logging.config import dictConfig
|
||||||
from threading import Thread, Lock, Timer
|
from threading import Thread, Lock, Timer
|
||||||
import sqlite3
|
import sqlite3
|
||||||
@ -295,7 +295,7 @@ def set_user_state(chat_id, state):
|
|||||||
def start_settings_timer(chat_id):
|
def start_settings_timer(chat_id):
|
||||||
if chat_id in user_timers:
|
if chat_id in user_timers:
|
||||||
user_timers[chat_id].cancel()
|
user_timers[chat_id].cancel()
|
||||||
timer = Timer(30, transition_to_notification_mode, [chat_id])
|
timer = Timer(60, transition_to_notification_mode, [chat_id])
|
||||||
user_timers[chat_id] = timer
|
user_timers[chat_id] = timer
|
||||||
timer.start()
|
timer.start()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user