提交 ab766e66 编写于 作者: lym152898's avatar lym152898 提交者: Huan (李卓桓)

add send urlLink example code in room class (#1752)

* add send urlLink example code in room class

* make the example more specific and meaningful

* 0.25.5

* remove chinese character

* make the example more specific and meaningful

* change indnetation to be two spaces
上级 8b235ea6
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册