fix: remove /start command and handle @botname suffix (issue #71) #72
Reference in New Issue
Block a user
Delete Branch "fix/start-command-parsing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
Closes #71
Problem 1: /start command name mismatch
/startimplies bot initialization/help)Problem 2: Group chat compatibility
/command@botnamein group chatscommand@botnameas command namecommand→ no match → command failsSolution
Remove /start command
handle_start()function/helpcommand listHandle @botname suffix
Now both formats work:
/help→help(direct chat)/help@mybot→help(group chat)Changes
src/main.py: Remove handle_start, update registrationsrc/notifications/telegram_client.py: Add .split("@")[0]tests/test_telegram_commands.py: Remove /start test, add @botname testResult
Test Plan
🤖 Generated with Claude Code