protect bot

This commit is contained in:
bakatrouble 2023-04-14 11:25:37 +03:00
parent 3f3831bdba
commit acb28b775a

View File

@ -23,7 +23,7 @@ logging.basicConfig(level=logging.INFO)
bot = Bot(token=os.environ['BOT_TOKEN']) bot = Bot(token=os.environ['BOT_TOKEN'])
dp = Dispatcher(bot) dp = Dispatcher(bot)
user_ids = os.environ['USERS'].split(',') user_ids = list(map(int, os.environ['USERS'].split(',')))
async def check_updates(): async def check_updates():