mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-26 21:05:49 +00:00
style: trim _on_help docstring
This commit is contained in:
parent
7957f84e3d
commit
2f315ec567
@ -267,11 +267,7 @@ class TelegramChannel(BaseChannel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async def _on_help(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
|
async def _on_help(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
|
||||||
"""Handle /help command directly, bypassing access control.
|
"""Handle /help command, bypassing ACL so all users can access it."""
|
||||||
|
|
||||||
/help is informational and should be accessible to all users,
|
|
||||||
even those not in the allowFrom list.
|
|
||||||
"""
|
|
||||||
if not update.message:
|
if not update.message:
|
||||||
return
|
return
|
||||||
await update.message.reply_text(
|
await update.message.reply_text(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user