diff --git a/src/user/room.ts b/src/user/room.ts index 95a4a01425e60552f65f7d3faba0ebe06b4d95ec..e737b2b2e943386cdb788f13463d1b699f9ad00e 100644 --- a/src/user/room.ts +++ b/src/user/room.ts @@ -427,6 +427,16 @@ export class Room extends Accessory implements Sayable { * // 5. Send text inside room and mention someone with Tagged Template * const contact2 = await bot.Contact.find({name: 'zixia'}) // change 'zixia' to any of the room member * await room.say`Hello ${contact}, here is the world ${contact2}` + * + * // 6. send url link in a room + * + * const urlLink = new UrlLink ({ + * description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love', + * thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4', + * title : 'Welcome to Wechaty', + * url : 'https://github.com/chatie/wechaty', + * }) + * await room.say(urlLink) */ public async say ( textOrListOrContactOrFileOrUrl : string | Contact | FileBox | UrlLink | TemplateStringsArray,