Skip to content
Huan (李卓桓) edited this page Apr 5, 2022 · 14 revisions

From v0.x to v1.x

Wechaty became an Interface

- import { Wechaty } from 'wechaty'
+ import { WechatyBuilder } From 'wechaty'

- const wechaty1 = new Wechaty()
+ const wechatyt1 = WechatyBuilder.build()
// or
- const wechaty2 = Wechaty.instance()
+ const wechaty2 = WechatyBuilder.singleton()

UrlLink can not be used without a wechaty instance

So and MiniProgram, Location, and all other Wechaty User Modules (WUM)s.

- const urlLink = UrlLink.create('https://github.com')
+ const urlLink = wechaty.UrlLink.create('https://github.com')

To Be Added ...

Contributions are welcome!

Clone this wiki locally