How to get wechaty instance in on functions in typescript, Global.this?
Created by: guoxiangke
Hi, with javascript version, we can get wechaty instance(bot) like this way. @see https://github.com/wechaty/wechaty-getting-started/blob/b0e00a28993dc83824544d0f28058996186907b0/examples/advanced/busy-bot.js#L79
but how can I get the wechaty instance in the on('message','../on-message.ts') functions? here is my way to walk around. ========中文======== 请教大家一个问题, wechaty,typescript中on-message 无法使用this获取wechaty实例,提示Global.this 但是又不会怎么搞? 需求图片: