This commit is contained in:
yasir 2023-02-01 21:29:10 +07:00
parent 698b0528b3
commit 00c326c8b6

View file

@ -20,6 +20,7 @@ async def task(msg, warn = False, sec = None):
def wait(sec):
async def ___(flt, cli, msg):
user_id = msg.from_user.id
time.mktime(msg.date.timetuple())
if user_id in data:
if msg.date >= data[user_id]['timestamp'] + flt.data:
data[user_id] = {'timestamp' : msg.date, 'warned' : False}