Fix datetime in unittests
This commit is contained in:
@@ -14,7 +14,8 @@ def protected(func):
|
||||
async def wrapper(client, message):
|
||||
if int(message.from_user.id) not in allowed_ids:
|
||||
log.warning(
|
||||
f"User with ID {message.from_user.id} attempted to text this bot!")
|
||||
f"User with ID {message.from_user.id} attempted"
|
||||
"to text this bot!")
|
||||
log.info(
|
||||
f"Only users allowed are: {' '.join(allowed_ids)}")
|
||||
return await message.reply_text("You are not on the list!")
|
||||
|
||||
Reference in New Issue
Block a user