Options
All
  • Public
  • Public/Protected
  • All
Menu

oicq

Index

Type aliases

Apk

Apk: typeof mobile

Device

Device: ReturnType<typeof generateFullDevice>

Domain

Domain: "aq.qq.com" | "buluo.qq.com" | "connect.qq.com" | "docs.qq.com" | "game.qq.com" | "gamecenter.qq.com" | "haoma.qq.com" | "id.qq.com" | "kg.qq.com" | "mail.qq.com" | "mma.qq.com" | "office.qq.com" | "openmobile.qq.com" | "qqweb.qq.com" | "qun.qq.com" | "qzone.qq.com" | "ti.qq.com" | "v.qq.com" | "vip.qq.com" | "y.qq.com" | ""

Gender

Gender: "male" | "female" | "unknown"

性别

GroupRole

GroupRole: "owner" | "admin" | "member"

群内权限

LogLevel

LogLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "mark" | "off"

日志等级

MessageElem

注意:只有ChainElem中的元素可以组合发送,其他元素只能单独发送

MusicPlatform

MusicPlatform: "qq" | "163" | "migu" | "kugou" | "kuwo"

支持的音乐平台

Sendable

Sendable: string | MessageElem | (string | MessageElem)[]

可通过sendMsg发送的类型集合 (字符串、元素对象,或它们的数组)

Statistics

Statistics: Client["stat"]

数据统计

Variables

segment

segment: { at: any; bface: any; dice: any; face: any; flash: any; fromCqcode: any; image: any; json: any; location: any; mirai: any; poke: any; record: any; rps: any; sface: any; share: any; text: any; video: any; xml: any } = ...

用于构造消息元素

Type declaration

Functions

createClient

getGroupImageUrl

  • getGroupImageUrl(md5: string): string

parseDmMessageId

  • parseDmMessageId(msgid: string): { flag: number; rand: number; seq: number; time: number; user_id: number }
  • cqhttp

    解析私聊消息id

    Parameters

    • msgid: string

    Returns { flag: number; rand: number; seq: number; time: number; user_id: number }

    • flag: number
    • rand: number
    • seq: number
    • time: number
    • user_id: number

parseGroupMessageId

  • parseGroupMessageId(msgid: string): { group_id: number; pktnum: number; rand: number; seq: number; time: number; user_id: number }
  • cqhttp

    解析群消息id

    Parameters

    • msgid: string

    Returns { group_id: number; pktnum: number; rand: number; seq: number; time: number; user_id: number }

    • group_id: number
    • pktnum: number
    • rand: number
    • seq: number
    • time: number
    • user_id: number

parseImageFileParam

  • parseImageFileParam(file: string): { ext: string; height: number; md5: string; size: number; width: number }
  • 从图片的file中解析出图片属性参数

    Parameters

    • file: string

    Returns { ext: string; height: number; md5: string; size: number; width: number }

    • ext: string
    • height: number
    • md5: string
    • size: number
    • width: number

Generated using TypeDoc