diff --git a/mautrix_telegram/commands/telegram/account.py b/mautrix_telegram/commands/telegram/account.py index 15add619..e5eaf003 100644 --- a/mautrix_telegram/commands/telegram/account.py +++ b/mautrix_telegram/commands/telegram/account.py @@ -106,9 +106,7 @@ async def session(evt: CommandEvent) -> Optional[Dict]: try: session_hash = int(evt.args[1]) except ValueError: - return await evt.reply("Hash must be a positive integer") - if session_hash <= 0: - return await evt.reply("Hash must be a positive integer") + return await evt.reply("Hash must be an integer") try: ok = await evt.sender.client(ResetAuthorizationRequest(hash=session_hash)) except HashInvalidError: