feat: add voice idea command

This commit is contained in:
admin committed 2026-10-05 01:17:47 +02:00
1 parent 0d181b0c05
commit 6ed2599a52
9 files changed
+89 -6

No files matched your search

+3 -1
View File
@@ -44,11 +44,12 @@ class HelpRoutingTests(unittest.TestCase):
self.assertEqual(bot.HELP_COMMANDS, {"help", "помощь"})
from pathlib import Path
source = Path(bot.__file__).read_text(encoding="utf-8")
self.assertIn("@router.message(F.text & F.text.startswith(\"/\"))", source)
self.assertIn("async def handle_command_text", source)
self.assertIn("if command == \"/help\"", source)
self.assertIn("elif command == \"/start\"", source)
self.assertIn("elif command == \"/clear\"", source)
self.assertIn("elif command == \"/idea\"", source)
self.assertIn("elif command == \"/idea_voice\"", source)
def test_help_rich_message_contains_usage_scenarios(self):
from help_message import HELP_RICH_HTML, rich_to_plain
@@ -56,6 +57,7 @@ class HelpRoutingTests(unittest.TestCase):
text = rich_to_plain(HELP_RICH_HTML)
self.assertIn("/clear", text)
self.assertIn("/idea", text)
self.assertIn("/idea_voice", text)
for term in ("пост", "голосовое", "скриншот", "реплаем", "/help"):
self.assertIn(term, text)