Versions in this module Expand all Collapse all v1 v1.7.0 Oct 21, 2026 v1.6.0 Oct 15, 2026 Changes in this version type Client + func (c *Client) Share(ctx context.Context, tid, fid int64, shareChannel int32) (exception.BoolResponse, error) v1.5.1 Sep 29, 2026 v1.5.0 Sep 25, 2026 Changes in this version type GetCommentsArgs + Sort enums.PostSortType v1.4.1 Sep 25, 2026 v1.4.0 Sep 15, 2026 v1.3.1 Sep 15, 2026 v1.3.0 Sep 15, 2026 Changes in this version type ForumRef + func (r ForumRef) PyRepr() string type UserRef + func (r UserRef) PyRepr() string v1.2.0 Sep 14, 2026 v1.1.1 Sep 14, 2026 v1.1.0 Sep 14, 2026 v1.0.0 Sep 14, 2026 Changes in this version + type Client struct + func New(bduss, stoken string, opts ...Option) (*Client, error) + func (c *Client) Account() *core.Account + func (c *Client) AddBawu(ctx context.Context, ref ForumRef, id UserRef, bawuType enums.BawuType) (exception.BoolResponse, error) + func (c *Client) AddBawuBlacklist(ctx context.Context, ref ForumRef, id UserRef) (exception.BoolResponse, error) + func (c *Client) AddBlacklistOld(ctx context.Context, id UserRef) (exception.BoolResponse, error) + func (c *Client) AddPoll(ctx context.Context, tid int64, options []int64) (exception.BoolResponse, error) + func (c *Client) AddPost(ctx context.Context, ref ForumRef, tid int64, content string) (exception.BoolResponse, error) + func (c *Client) Agree(ctx context.Context, tid, pid int64, isComment bool) (exception.BoolResponse, error) + func (c *Client) BLCPCore() *core.BLCPCore + func (c *Client) Block(ctx context.Context, ref ForumRef, id UserRef, day int64, reason string) (exception.BoolResponse, error) + func (c *Client) Close() error + func (c *Client) DelBawu(ctx context.Context, ref ForumRef, id UserRef, bawuType enums.BawuType) (exception.BoolResponse, error) + func (c *Client) DelBawuBlacklist(ctx context.Context, ref ForumRef, id UserRef) (exception.BoolResponse, error) + func (c *Client) DelBlacklistOld(ctx context.Context, id UserRef) (exception.BoolResponse, error) + func (c *Client) DelPost(ctx context.Context, ref ForumRef, tid, pid int64) (exception.BoolResponse, error) + func (c *Client) DelPosts(ctx context.Context, ref ForumRef, tid int64, pids []int64, block bool) (exception.BoolResponse, error) + func (c *Client) DelThread(ctx context.Context, ref ForumRef, tid int64) (exception.BoolResponse, error) + func (c *Client) DelThreads(ctx context.Context, ref ForumRef, tids []int64, block bool) (exception.BoolResponse, error) + func (c *Client) Disagree(ctx context.Context, tid, pid int64, isComment bool) (exception.BoolResponse, error) + func (c *Client) DislikeForum(ctx context.Context, ref ForumRef) (exception.BoolResponse, error) + func (c *Client) FollowForum(ctx context.Context, ref ForumRef) (exception.BoolResponse, error) + func (c *Client) FollowUser(ctx context.Context, id UserRef) (exception.BoolResponse, error) + func (c *Client) GetAts(ctx context.Context, pn int64) (getats.Ats, error) + func (c *Client) GetBawuBlacklist(ctx context.Context, ref ForumRef, pn int64) (getbawublacklist.BawuBlacklistUsers, error) + func (c *Client) GetBawuInfo(ctx context.Context, ref ForumRef) (getbawuinfo.BawuInfo, error) + func (c *Client) GetBawuMemberlist(ctx context.Context, ref ForumRef, pn int64, searchValue string) (getbawumemberlist.BawuListMemberUsers, error) + func (c *Client) GetBawuPerm(ctx context.Context, ref ForumRef, id UserRef) (getbawuperm.BawuPerm, error) + func (c *Client) GetBawuPostlogs(ctx context.Context, ref ForumRef, pn int64, searchValue string, ...) (getbawupostlogs.BawuPostLogs, error) + func (c *Client) GetBawuUserlogs(ctx context.Context, ref ForumRef, pn int64, searchValue string, ...) (getbawuuserlogs.BawuUserLogs, error) + func (c *Client) GetBlacklist(ctx context.Context) (getblacklist.BlacklistUsers, error) + func (c *Client) GetBlacklistOld(ctx context.Context, pn, rn int32) (getblacklistold.BlacklistOldUsers, error) + func (c *Client) GetBlocks(ctx context.Context, ref ForumRef, name string, pn int64) (getblocks.Blocks, error) + func (c *Client) GetCID(ctx context.Context, ref ForumRef, cname string) (exception.IntResponse, error) + func (c *Client) GetComments(ctx context.Context, tid, pid int64, args GetCommentsArgs) (getcomments.Comments, error) + func (c *Client) GetDislikeForums(ctx context.Context, pn, rn int32) (getdislikeforums.DislikeForums, error) + func (c *Client) GetFID(ctx context.Context, fname string) (int64, error) + func (c *Client) GetFName(ctx context.Context, fid int64) (string, error) + func (c *Client) GetFans(ctx context.Context, id UserRef, pn int64) (getfans.Fans, error) + func (c *Client) GetFollowForums(ctx context.Context, id UserRef, pn, rn int64) (getfollowforums.FollowForums, error) + func (c *Client) GetFollowForumsPc(ctx context.Context, id UserRef, pn, rn int64) (getfollowforumspc.PcFollowForums, error) + func (c *Client) GetFollows(ctx context.Context, id UserRef, pn int64) (getfollows.Follows, error) + func (c *Client) GetForum(ctx context.Context, ref ForumRef) (getforum.Forum, error) + func (c *Client) GetForumDetail(ctx context.Context, ref ForumRef) (getforumdetail.ForumDetail, error) + func (c *Client) GetGroupMsg(ctx context.Context, groupIDs []int64, getType int64) (getgroupmsg.WsMsgGroups, error) + func (c *Client) GetHomepage(ctx context.Context, id UserRef, pn int32) (profile.Homepage, error) + func (c *Client) GetImage(ctx context.Context, imgURL string) (getimages.Image, error) + func (c *Client) GetImageBytes(ctx context.Context, imgURL string) (getimages.ImageBytes, error) + func (c *Client) GetLastReplyers(ctx context.Context, ref ForumRef, pn, rn int32, sort enums.ThreadSortType, ...) (getlastreplyers.ThreadsLP, error) + func (c *Client) GetMemberUsers(ctx context.Context, ref ForumRef, pn int64) (getmemberusers.MemberUsers, error) + func (c *Client) GetPortrait(ctx context.Context, id UserRef, size string) (getimages.Image, error) + func (c *Client) GetPosts(ctx context.Context, tid int64, args GetPostsArgs) (getposts.Posts, error) + func (c *Client) GetRankForums(ctx context.Context, ref ForumRef, pn int64, rankType enums.RankForumType) (getrankforums.RankForums, error) + func (c *Client) GetRankUsers(ctx context.Context, ref ForumRef, pn int64) (getrankusers.RankUsers, error) + func (c *Client) GetRecomStatus(ctx context.Context, ref ForumRef) (getrecomstatus.RecomStatus, error) + func (c *Client) GetRecovers(ctx context.Context, ref ForumRef, pn, rn int64, id UserRef) (getrecovers.Recovers, error) + func (c *Client) GetReplys(ctx context.Context, pn int32) (getreplys.Replys, error) + func (c *Client) GetRoomlistByFID(ctx context.Context, fid int64) (getroomlistbyfid.RoomList, error) + func (c *Client) GetSelfFollowForums(ctx context.Context, pn, rn int64) (getselffollowforums.SelfFollowForums, error) + func (c *Client) GetSelfInfo(ctx context.Context, require enums.ReqUInfo) (classdef.UserInfo, error) + func (c *Client) GetSelfPosts(ctx context.Context, pn, rn int32) (getusercontents.UserPostss, error) + func (c *Client) GetSelfThreads(ctx context.Context, pn int32, publicOnly bool) (getusercontents.UserThreads, error) + func (c *Client) GetSquareForums(ctx context.Context, cname string, pn, rn int32) (getsquareforums.SquareForums, error) + func (c *Client) GetStatistics(ctx context.Context, ref ForumRef) (getstatistics.Statistics, error) + func (c *Client) GetTabMap(ctx context.Context, ref ForumRef) (gettabmap.TabMap, error) + func (c *Client) GetThreads(ctx context.Context, fname string, args GetThreadsArgs) (getthreads.Threads, error) + func (c *Client) GetUnblockAppeals(ctx context.Context, ref ForumRef, pn, rn int64) (getunblockappeals.Appeals, error) + func (c *Client) GetUserForumInfo(ctx context.Context, ref ForumRef, id UserRef) (getuserforuminfo.UserForumInfo, error) + func (c *Client) GetUserInfo(ctx context.Context, ref UserRef, require enums.ReqUInfo) (classdef.UserInfo, error) + func (c *Client) GetUserPosts(ctx context.Context, id UserRef, pn, rn int32) (getusercontents.UserPostss, error) + func (c *Client) GetUserPostsPc(ctx context.Context, id UserRef, pn, rn int64) (getusercontentpc.PcUserPosts, error) + func (c *Client) GetUserThreads(ctx context.Context, id UserRef, pn int32) (getusercontents.UserThreads, error) + func (c *Client) Good(ctx context.Context, ref ForumRef, tid int64, cname string) (exception.BoolResponse, error) + func (c *Client) HTTPCore() *core.HttpCore + func (c *Client) HandleUnblockAppeals(ctx context.Context, ref ForumRef, appealIDs []int64, refuse bool) (exception.BoolResponse, error) + func (c *Client) Hash2Image(ctx context.Context, rawHash, size string) (getimages.Image, error) + func (c *Client) HideThread(ctx context.Context, ref ForumRef, tid int64) (exception.BoolResponse, error) + func (c *Client) InitClientID(ctx context.Context) error + func (c *Client) InitSampleID(ctx context.Context) error + func (c *Client) InitTbs(ctx context.Context) error + func (c *Client) InitWebsocket(ctx context.Context) (bool, error) + func (c *Client) InitZID(ctx context.Context) error + func (c *Client) JoinChatroom(ctx context.Context, roomID int64) (exception.BoolResponse, error) + func (c *Client) Login(ctx context.Context) error + func (c *Client) Move(ctx context.Context, ref ForumRef, tid, toTabID, fromTabID int64) (exception.BoolResponse, error) + func (c *Client) Recommend(ctx context.Context, ref ForumRef, tid int64) (exception.BoolResponse, error) + func (c *Client) Recover(ctx context.Context, ref ForumRef, tid, pid int64, isHide bool) (exception.BoolResponse, error) + func (c *Client) RecoverPost(ctx context.Context, ref ForumRef, pid int64) (exception.BoolResponse, error) + func (c *Client) RecoverThread(ctx context.Context, ref ForumRef, tid int64) (exception.BoolResponse, error) + func (c *Client) RemoveFan(ctx context.Context, id UserRef) (exception.BoolResponse, error) + func (c *Client) SearchExact(ctx context.Context, ref ForumRef, query string, pn, rn int64, ...) (searchexact.ExactSearches, error) + func (c *Client) SearchGlobal(ctx context.Context, word string, pn, rn, sort int64) (searchglobal.GlobalSearches, error) + func (c *Client) SendChatroomMsg(ctx context.Context, chatroomID, fid int64, text string, atUserIDs []int64, ...) (exception.BoolResponse, error) + func (c *Client) SendMsg(ctx context.Context, id UserRef, content string) (exception.BoolResponse, error) + func (c *Client) SetAccount(newAccount *core.Account) error + func (c *Client) SetBawuPerm(ctx context.Context, ref ForumRef, id UserRef, perms enums.BawuPermType) (exception.BoolResponse, error) + func (c *Client) SetBlacklist(ctx context.Context, id UserRef, btype enums.BlacklistType) (exception.BoolResponse, error) + func (c *Client) SetMsgReaded(ctx context.Context, message getgroupmsg.WsMessage) (exception.BoolResponse, error) + func (c *Client) SetNicknameOld(ctx context.Context, nickName string) (exception.BoolResponse, error) + func (c *Client) SetProfile(ctx context.Context, nickName, sign string, gender enums.Gender) (exception.BoolResponse, error) + func (c *Client) SetThreadPrivacy(ctx context.Context, ref ForumRef, tid, pid int64, isHide bool) (exception.BoolResponse, error) + func (c *Client) SetThreadPrivate(ctx context.Context, ref ForumRef, tid, pid int64) (exception.BoolResponse, error) + func (c *Client) SetThreadPublic(ctx context.Context, ref ForumRef, tid, pid int64) (exception.BoolResponse, error) + func (c *Client) SignForum(ctx context.Context, ref ForumRef) (exception.BoolResponse, error) + func (c *Client) SignForums(ctx context.Context) (exception.BoolResponse, error) + func (c *Client) SignGrowth(ctx context.Context) (exception.BoolResponse, error) + func (c *Client) TiebaUID2UserInfo(ctx context.Context, tiebaUID int64) (tiebauid2userinfo.UserInfoTUid, error) + func (c *Client) Top(ctx context.Context, ref ForumRef, tid int64, isVIP bool) (exception.BoolResponse, error) + func (c *Client) Unagree(ctx context.Context, tid, pid int64, isComment bool) (exception.BoolResponse, error) + func (c *Client) Unblock(ctx context.Context, ref ForumRef, id UserRef) (exception.BoolResponse, error) + func (c *Client) Undisagree(ctx context.Context, tid, pid int64, isComment bool) (exception.BoolResponse, error) + func (c *Client) UndislikeForum(ctx context.Context, ref ForumRef) (exception.BoolResponse, error) + func (c *Client) UnfollowForum(ctx context.Context, ref ForumRef) (exception.BoolResponse, error) + func (c *Client) UnfollowUser(ctx context.Context, id UserRef) (exception.BoolResponse, error) + func (c *Client) Ungood(ctx context.Context, ref ForumRef, tid int64) (exception.BoolResponse, error) + func (c *Client) UnhideThread(ctx context.Context, ref ForumRef, tid int64) (exception.BoolResponse, error) + func (c *Client) Untop(ctx context.Context, ref ForumRef, tid int64, isVIP bool) (exception.BoolResponse, error) + func (c *Client) User() classdef.UserInfo + func (c *Client) WSCore() *core.WsCore + type ForumRef struct + FID int64 + FName string + func ByFID(fid int64) ForumRef + func ByFName(fname string) ForumRef + type GetCommentsArgs struct + IsComment bool + Pn int + func DefaultGetCommentsArgs() GetCommentsArgs + type GetPostsArgs struct + CommentRn int + CommentSortByAgree bool + OnlyThreadAuthor bool + Pn int + Rn int + Sort enums.PostSortType + WithComments bool + func DefaultGetPostsArgs() GetPostsArgs + type GetThreadsArgs struct + IsGood bool + Pn int + Rn int + Sort enums.ThreadSortType + func DefaultGetThreadsArgs() GetThreadsArgs + type Option func(*clientOptions) + func WithAccount(account *core.Account) Option + func WithProxy(proxy *config.ProxyConfig) Option + func WithProxyFromEnv() Option + func WithTimeout(timeout config.TimeoutConfig) Option + func WithTryWebsocket(try bool) Option + type UserRef struct + Portrait string + UserID int64 + UserName string + func ByPortrait(portrait string) UserRef + func ByUserID(id int64) UserRef + func ByUserName(userName string) UserRef + func (r UserRef) IsZero() bool