Skip to content

Comments

add getMessage api#227

Merged
moonrailgun merged 2 commits intomsgbyte:masterfrom
eya46:getMessage
May 9, 2024
Merged

add getMessage api#227
moonrailgun merged 2 commits intomsgbyte:masterfrom
eya46:getMessage

Conversation

@eya46
Copy link
Contributor

@eya46 eya46 commented May 8, 2024

使用场景->用机器人的时候监听贴表情的事件, 如果有getMessage会方便很多


Usage scenario -> When using a robot, listen to the event of emoticon posting. It would be much more convenient if there is getMessage

@netlify
Copy link

netlify bot commented May 8, 2024

👷 Deploy request for tailchat-nightly pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 28d4694

// 私人会话
const converseInfo = await call(ctx).getConverseInfo(converseId);
if (!converseInfo.members.map((m) => String(m)).includes(userId)) {
throw new DataNotFoundError(t('该消息未找到'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you return unautherror because its not real not found?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

@moonrailgun
Copy link
Contributor

bot received info is not enough?
which props did you want but webhook not provide?

@moonrailgun moonrailgun merged commit 34a380e into msgbyte:master May 9, 2024
@eya46 eya46 deleted the getMessage branch May 10, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants