Use existing Leo wallet-test Telegram bot
This commit is contained in:
parent
754f5aeee7
commit
b593dda1cf
3 changed files with 10 additions and 10 deletions
|
|
@ -2,13 +2,13 @@
|
||||||
# This config runs a separate Telegram bot process against Leo's hosted HTTP chat route.
|
# This config runs a separate Telegram bot process against Leo's hosted HTTP chat route.
|
||||||
|
|
||||||
name: Leo Wallet Test
|
name: Leo Wallet Test
|
||||||
handle: "@lipleowallet06222026bot"
|
handle: "@lipleowallet0622183538bot"
|
||||||
x_handle: "@teLEOhuman"
|
x_handle: "@teLEOhuman"
|
||||||
mention_aliases:
|
mention_aliases:
|
||||||
- "@leo"
|
- "@leo"
|
||||||
- "@lipleowallet06222026bot"
|
- "@lipleowallet0622183538bot"
|
||||||
- "@LeoWalletTest"
|
- "@LeoWalletTest"
|
||||||
bot_token_file: leo-wallet-test-telegram-bot-token
|
bot_token_file: leo-test-telegram-bot-token
|
||||||
pentagon_agent_id: livingip-leo-wallet-test
|
pentagon_agent_id: livingip-leo-wallet-test
|
||||||
domain: collective-intelligence
|
domain: collective-intelligence
|
||||||
domain_expertise: >
|
domain_expertise: >
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ def test_missing_token_writes_sanitized_blocker(tmp_path):
|
||||||
def test_invalid_token_shape_fails_without_printing_token(tmp_path):
|
def test_invalid_token_shape_fails_without_printing_token(tmp_path):
|
||||||
secrets_dir = tmp_path / "secrets"
|
secrets_dir = tmp_path / "secrets"
|
||||||
secrets_dir.mkdir()
|
secrets_dir.mkdir()
|
||||||
token_path = secrets_dir / "leo-wallet-test-telegram-bot-token"
|
token_path = secrets_dir / "leo-test-telegram-bot-token"
|
||||||
token = "not-a-valid-token"
|
token = "not-a-valid-token"
|
||||||
token_path.write_text(token)
|
token_path.write_text(token)
|
||||||
proof_path = tmp_path / "proof.json"
|
proof_path = tmp_path / "proof.json"
|
||||||
|
|
@ -88,7 +88,7 @@ def test_getme_result_is_sanitized_and_matches_expected_username():
|
||||||
"id": 123456789,
|
"id": 123456789,
|
||||||
"is_bot": True,
|
"is_bot": True,
|
||||||
"first_name": "Living IP Leo Wallet Test",
|
"first_name": "Living IP Leo Wallet Test",
|
||||||
"username": "lipleowallet06222026bot",
|
"username": "lipleowallet0622183538bot",
|
||||||
"can_join_groups": True,
|
"can_join_groups": True,
|
||||||
"can_read_all_group_messages": False,
|
"can_read_all_group_messages": False,
|
||||||
"supports_inline_queries": False,
|
"supports_inline_queries": False,
|
||||||
|
|
@ -104,7 +104,7 @@ def test_getme_result_is_sanitized_and_matches_expected_username():
|
||||||
|
|
||||||
serialized = json.dumps(result)
|
serialized = json.dumps(result)
|
||||||
assert result["ok"] is True
|
assert result["ok"] is True
|
||||||
assert result["username"] == "lipleowallet06222026bot"
|
assert result["username"] == "lipleowallet0622183538bot"
|
||||||
assert result["botIdPresent"] is True
|
assert result["botIdPresent"] is True
|
||||||
assert result["secretValuesIncluded"] is False
|
assert result["secretValuesIncluded"] is False
|
||||||
assert token not in serialized
|
assert token not in serialized
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ def test_leo_config_opts_into_http_chat_proxy_without_changing_default_agents():
|
||||||
assert leo_wallet_test.http_research_proxy_url == "https://leo.livingip.xyz/api/agents/leo/research"
|
assert leo_wallet_test.http_research_proxy_url == "https://leo.livingip.xyz/api/agents/leo/research"
|
||||||
assert "/smart_research" in leo_wallet_test.smart_research_command_prefixes
|
assert "/smart_research" in leo_wallet_test.smart_research_command_prefixes
|
||||||
assert leo_wallet_test.respond_to_private_chats is True
|
assert leo_wallet_test.respond_to_private_chats is True
|
||||||
assert leo_wallet_test.bot_token_file == "leo-wallet-test-telegram-bot-token"
|
assert leo_wallet_test.bot_token_file == "leo-test-telegram-bot-token"
|
||||||
assert "@lipleowallet06222026bot" in leo_wallet_test.mention_aliases
|
assert "@lipleowallet0622183538bot" in leo_wallet_test.mention_aliases
|
||||||
assert rio.http_chat_proxy_url is None
|
assert rio.http_chat_proxy_url is None
|
||||||
assert rio.respond_to_private_chats is False
|
assert rio.respond_to_private_chats is False
|
||||||
|
|
||||||
|
|
@ -108,8 +108,8 @@ def test_smart_research_payload_is_no_spend_by_default():
|
||||||
("message", "expected"),
|
("message", "expected"),
|
||||||
[
|
[
|
||||||
("/smart_research find x402 evidence", "find x402 evidence"),
|
("/smart_research find x402 evidence", "find x402 evidence"),
|
||||||
("@lipleowallet06222026bot /smart_research find x402 evidence", "find x402 evidence"),
|
("@lipleowallet0622183538bot /smart_research find x402 evidence", "find x402 evidence"),
|
||||||
("/paid_research@lipleowallet06222026bot find x402 evidence", "find x402 evidence"),
|
("/paid_research@lipleowallet0622183538bot find x402 evidence", "find x402 evidence"),
|
||||||
("can Leo use x402 paid research now?", None),
|
("can Leo use x402 paid research now?", None),
|
||||||
("/smart_research", None),
|
("/smart_research", None),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue