friend-request.ts 619 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/**
 * Wechat for Bot. Connecting ChatBots
 *
 * Interface for puppet
 *
 * Class FriendRequest
 *
 * Licenst: ISC
 * https://github.com/wechaty/wechaty
 *
 */

const Wechaty = require('./wechaty')
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
14
const Config = require('./config')
15 16 17

class FriendRequest {
  constructor() {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
18 19
    if (!Config.puppetInstance()) {
      throw new Error('no Config.puppetInstance() instanciated')
20 21 22 23 24 25 26 27 28
    }
  }

  send(contact, message)  { throw new Error('pure virtual implement') }
  accept()                { throw new Error('pure virtual implement') }

}

module.exports = FriendRequest.default = FriendRequest.FriendRequest = FriendRequest