fixed id check

This commit is contained in:
Guillermo 2024-09-13 05:04:46 +02:00
parent fd41e3b356
commit bac7373789

2
bot.py
View file

@ -46,7 +46,7 @@ class Butler(object):
if not self.whitelist: if not self.whitelist:
return True return True
for id in ids: for id in ids:
if id in self.whitelist: if str(id) in self.whitelist:
return True return True
self.logger.warning("User {} [{}] or chat {} [{}] are not in the whitelist." self.logger.warning("User {} [{}] or chat {} [{}] are not in the whitelist."