升级前,使用sdk,配置好机器人的keystore之后,可以获取到用户发送给机器人的消息。
升级后,需要哪些前提条件完成之后才能达到相同的效果?
使用blaze.go
使用这里的配置,报错——
2025/10/01 17:33:44 list_pending_msg timeout to wait LIST_PENDING_MESSAGES map[]
2025/10/01 17:33:44 test... {"status":500,"code":7000,"description":"Blaze server error."}
2025/10/01 17:33:54 list_pending_msg timeout to wait LIST_PENDING_MESSAGES map[]
2025/10/01 17:33:54 test... {"status":500,"code":7000,"description":"Blaze server error."}
根据 safe-apis /safe/me
检查结果如下——
user的 "has_safe" : true;
app的 "has_safe" : false —— 这个是否有影响?
{
"data" : {
"type" : "user",
"user_id" : "f19580d6-6575-4a5e-9062-8d9b52b29065",
"identity_number" : "7000104173",
"phone" : "f19580d6-6575-4a5e-9062-8d9b52b29065",
"full_name" : "bot-demo",
"biography" : "xxxx",
"avatar_url" : "https://images.mixin.one/7VFyEuXHqqhAS-1d8MSe2qLu_-DJskc5eVDcF7Vu4-PjXwMFgXCenNIoVuaB9tJpRMnuHHrig_WJvq9l_WPIFOIiOwFUnaUEPHUY=s256",
"relationship" : "ME",
"mute_until" : "0001-01-01T00:00:00Z",
"created_at" : "2021-09-16T03:06:36.882093991Z",
"is_verified" : false,
"is_scam" : false,
"is_deactivated" : false,
"code_id" : "906b1b3e-18ff-443d-b4fd-9e3965ba638f",
"code_url" : "https://mixin.one/codes/906b1b3e-18ff-443d-b4fd-9e3965ba638f",
"features" : null,
"has_safe" : true,
"membership" : {
"plan" : "none",
"expired_at" : "0001-01-01T00:00:00Z"
},
"email" : "7000104173@mixin.id",
"app_id" : "f19580d6-6575-4a5e-9062-8d9b52b29065",
"app" : {
"type" : "app",
"app_id" : "f19580d6-6575-4a5e-9062-8d9b52b29065",
"app_number" : "7000104173",
"redirect_uri" : "http://localhost:8080/auth",
"home_uri" : "https://mixin.one",
"name" : "bot-demo",
"icon_url" : "https://images.mixin.one/7VFyEuXHqqhAS-1d8MSe2qLu_-DJskc5eVDcF7Vu4-PjXwMFgXCenNIoVuaB9tJpRMnuHHrig_WJvq9l_WPIFOIiOwFUnaUEPHUY=s256",
"description" : "xxxx",
"capabilities" : [ "CONTACT", "GROUP", "ENCRYPTED" ],
"resource_patterns" : [ "https://mixin.one/" ],
"category" : "OTHER",
"creator_id" : "35cd1b67-828a-4f1c-9162-ee17349bf7a4",
"updated_at" : "2025-10-01T07:44:15.279976098Z",
"is_verified" : false,
"tip_key_base64" : "",
"tip_counter" : 0,
"has_safe" : false,
"spend_public_key" : "",
"safe_created_at" : "0001-01-01T00:00:00Z",
"app_secret" : "",
"session_public_key" : "",
"session_secret" : "",
"capabilites" : [ "CONTACT", "GROUP", "ENCRYPTED" ]
},
"session_id" : "7a280808-c45e-43c9-924e-c3d819b245f7",
"device_status" : "",
"has_pin" : true,
"salt_exported_at" : "0001-01-01T00:00:00Z",
"receive_message_source" : "EVERYBODY",
"accept_conversation_source" : "EVERYBODY",
"accept_search_source" : "EVERYBODY",
"fiat_currency" : "USD",
"transfer_notification_threshold" : 0,
"transfer_confirmation_threshold" : 100,
"pin_token_base64" : "",
"pin_token" : "",
"server_public_key" : "",
"salt_base64" : "",
"tip_key_base64" : "xxx",
"tip_counter" : 1,
"spend_public_key" : "xxx",
"has_emergency_contact" : false
}
}
机器人勾选了 Message Encryption 选项之后,机器人收发消息是必须进行加解密吗?