Skip to content

Docs/runtime request: clarify legacy vs params response API and no-reply debugging path #1

@jini92

Description

@jini92

MessengerBotR legacy / params API mismatch and no-reply debugging request

?????. MAIKAKAO(???? ??? conversational proxy) ??? ????? MessengerBotR ??? ???? ??? ?????, ??/??? ?? ??? ????.

??

???? ????? ?? ??? probe ??? ?? ????? ????.

??? ??? ??????.

  • ??? ??? ?? ??
  • ?? replier.reply(...) ?? ??
  • ? ???? ? ??? ??? ??

??? ? ??? ??

1) response(...) API ??? ?/??? ?? ?????

???? ??? ?? ???? ?? ??? ??????.

function response(room, msg, sender, isGroupChat, replier, imageDB, packageName) {
  ...
}

??? ?? ??? ?/?? ??? ??? ??, ?? ????? ?? ??? ?? ??? ?????.

function response(params) {
  const room = params.room;
  const msg = params.msg;
  const sender = params.sender;
  const replier = params.replier;
}

?, ??? API? ????? / ??? ???? ??? ?? ?? ?? ??? ????, ?? ?? ??? ?? ?? ??? ??? ??? ???.

2) onCreate, onResume ?? lifecycle ??? ??? ??/??? ??? ??? ?????

?? ??? ? ?? ???? ????.

  • There is no function onCreate
  • There is no function onResume

??? ???? ? ?? placeholder? ??? ????.

function onCreate(savedInstanceState, activity) {}
function onResume(activity) {}
function onPause(activity) {}
function onStop(activity) {}

? ??? ??? ????, ????, ?? ???? ??? ? ???? ?????.

3) ?? probe ??? ???? ? ?? ??? ?????

???? ??? ?? ??? ?? ??? ???????.

function response(params) {
  if (!params || !params.replier) return;
  params.replier.reply("probe ok");
}

??? ? ???? ???? ???? ? ???, ???? ?? ??? ???? ?????.

  • ?? ?? ?? ??
  • ??? ?? ?? ??
  • self-message / other-message ??
  • ? ?? ?? ??
  • API ???? ???
  • ??? ?? ?? ??

????? ?? ?

A. ?? ??

???? ?? ???? ??? ??? ????? ?????.

  1. ?? ?? response() ??
    • ?? response(room, msg, ...) ? ?? ???
    • ?? response(params) ? ?? ???
  2. ??? API? ????? / ??? ???? ?? ??? ??
  3. ?? ?? working probe ??
    • ??? ????? ?? ??? ??? ??
  4. onCreate / onResume placeholder ?? ??

B. ???/UX ??

????? ??? ??? ???? ?? ?? ? ????.

  1. ?? ?? ?? API mode ??
    • legacy / params mode
  2. ????? ??? ???? ???? ??? ???? ??? runtime log
  3. "?? ??"? ? ?? ?? ?????
    • notification access
    • room filter mismatch
    • self-message limitation
    • params/legacy mismatch

??

?? MessengerBotR? ?????,
?? ????? ?? ?? ??? ??? ????? "?? ?? ???"?? ??? ?????.

  • legacy vs params callback mismatch
  • lifecycle placeholder ambiguity
  • notification/runtime capture uncertainty

? ??? ???? ?? ???? ???? ??? ?? ?? ? ????? ?? ??? ? ????.

?????.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions