@@ -327,12 +327,18 @@ Wechaty support the following 6 events:
8. room-leave
9. room-topic
### this.say(content: string)
`this` is `Sayable` for all listeners.
which means there will be a `this.say()` method inside listener call, you can use it sending message to `filehelper`, just for logging / reporting / any usage for your convienience
### 1. Event: `scan`
A `scan` event will be emitted when the bot need to show you a QrCode for scaning.
which means there will be a `this.say()` method inside listener call, you can use it sending message to `filehelper`, just for logging / reporting / any usage for your convienience
## v0.5.0 master (2016/10) The First Typescript Version
1.#40 Converted to Typescript (2016/10/11)
1.added `say()` method to Contact/Room instance, and to `this` inside wechaty event listeners
1.[#40](https://github.com/wechaty/wechaty/issues/40) Converted to Typescript (2016/10/11)
1.[#41](https://github.com/wechaty/wechaty/issues/41) added `say()` method to Contact/Room instance, and to `this` inside wechaty event listeners, to make them `Sayable`
1. BREAKING CHANGE: global event `scan` arguments changed from 1 to 2: now is (url: string, code: number) instead of {url, code} before.
## [v0.4.0](https://github.com/wechaty/wechaty/releases/tag/v0.4.0) (2016/10/9) The Latest Javascript Version
1.#32 Extend Room Class with:
1.[#32](https://github.com/wechaty/wechaty/issues/32) Extend Room Class with:
1. Global events: `room-join`, `room-leave`, `room-topic`
1. Room events: `join`, `leave`, `topic`
1. Create a new Room: `Room.create()`
1. Add/Del/Topic for Room
1. Other methods like nick/member/has/etc...
1.#33 New Class `FriendRequest` with:
1.[#33](https://github.com/wechaty/wechaty/issues/33) New Class `FriendRequest` with:
1.`Wechaty.on('friend', (contact, request) => {})` with Wechaty new Event `friend`