Added account checker

This commit is contained in:
Joan
2023-07-04 22:10:00 +02:00
parent ab68730aab
commit 1665ab4bf7
3 changed files with 26 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import logging
import helpers
import walladb
import constants
import account_checker
from worker import Worker
from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup, ForceReply
@@ -445,6 +446,9 @@ def main()->None:
p.start()
SEARCH_THREADS_LIST.append((product, p))
p = threading.Thread(target=account_checker.account_checker, args=(3600))
p.start()
"""Start the bot."""
# Create the Application and pass it your bot's token.
application = Application.builder().get_updates_http_version('1.1').http_version('1.1').token(constants.TELEGRAM_TOKEN).build()