feat(applications): add keyboard flow and export outbox

This commit is contained in:
nyan404 committed 2026-08-21 13:25:33 +03:00
1 parent cfeee5a814
commit 27bcc291db
11 files changed
+255 -10

No files matched your search

+2
View File
@@ -53,6 +53,8 @@ class VkBotTests(unittest.TestCase):
def test_button_payload_maps_to_command(self):
self.assertEqual(BelkiBot._button_text({"payload": "menu:lu"}), "/лу")
self.assertEqual(BelkiBot._button_text({"payload": '{"command":"confirm:yes"}'}), "да")
self.assertEqual(BelkiBot._button_text({"payload": '{"command":"application:flying"}'}), "/летяга")
self.assertEqual(BelkiBot._button_text({"payload": '{"command":"application:practice-no"}'}), "нет")
def test_keyboard_button_payloads_are_valid_json(self):
keyboard = BelkiDialog().keyboard_for(503)