Skip to content

Commit

Permalink
hotfix admin id comparison fail
Browse files Browse the repository at this point in the history
Signed-off-by: BlurryFlurry <[email protected]>
  • Loading branch information
BlurryFlurry committed May 3, 2023
1 parent 343b513 commit 02e162c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def reboot(update: Update, context: ContextTypes.DEFAULT_TYPE):

async def grant(update: Update, context: ContextTypes.DEFAULT_TYPE):
user_id = update.effective_user.id
if user_id == environ.get('grant_perm_id'): # Replace with the user ID that has permission to grant access
if user_id == int(environ.get('grant_perm_id')): # Replace with the user ID that has permission to grant access
args = context.args
full_name = update.effective_user.full_name
if len(args) == 0:
Expand Down

0 comments on commit 02e162c

Please sign in to comment.