当前登录账号的历史评论。上游 myCmt 按登录账号返回,与 uid 无关。
myCmt
listMine(options?)
CommentHistoryPageResult
maxId
page
streamMine(options?)
ITweetComment
访客调用抛 AUTH_SESSION_EXPIRED(context.requiredAuth = 'cookie')。详见 访客限制。
AUTH_SESSION_EXPIRED
context.requiredAuth = 'cookie'
number | string
cursor
number
返回:
interface CommentHistoryPageResult { cursor: number // next_cursor;0 表示到底 hasMore: boolean total?: number comments: ITweetComment[] // 已按评论 id 去重 }
for await (const comment of sdk.commentHistory.streamMine({ maxPages: 3, since: '2026-01-01', })) { console.log(comment.id, comment.text, comment.parentMblogId) }
选项:maxId、page、maxPages、maxItems、since、until、onProgress。
maxPages
maxItems
since
until
onProgress
停止条件:next_cursor === 0、空页、游标不前进、整页重复、日期边界、上限。
next_cursor === 0
includeCommentHistory
CONFIG_INVALID
parentMblogId
status
weibo-cli comment mine weibo-cli comment stream --max-pages 3
commentHistory
当前登录账号的历史评论。上游
myCmt按登录账号返回,与 uid 无关。listMine(options?)CommentHistoryPageResultmaxId/pagestreamMine(options?)ITweetComment流maxId访客调用抛
AUTH_SESSION_EXPIRED(context.requiredAuth = 'cookie')。详见 访客限制。listMine(options?)maxIdnumber | stringcursor;数字字符串转 number,优先于pagepagenumbermaxId时生效返回:
streamMine(options?)选项:
maxId、page、maxPages、maxItems、since、until、onProgress。停止条件:
next_cursor === 0、空页、游标不前进、整页重复、日期边界、上限。错误与边界
includeCommentHistory抛CONFIG_INVALID。parentMblogId指向被评论微博,前提是上游内嵌了status。CLI