Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterOnebotApiGroupOptGRPCServiceServer(s *grpc.Server, srv OnebotApiGroupOptGRPCServiceServer)
- type ChannelApiGroupOptClient
- func (cli *ChannelApiGroupOptClient) DeleteEssenceMsg(messageId int64) error
- func (cli *ChannelApiGroupOptClient) GetGroupNotice(groupId int64) (*model.GroupNoticeResult, error)
- func (cli *ChannelApiGroupOptClient) SendGroupNotice(groupId int64, content string, image string) error
- func (cli *ChannelApiGroupOptClient) SendGroupSign(groupId int64) error
- func (cli *ChannelApiGroupOptClient) SetEssenceMsg(messageId int64) error
- func (cli *ChannelApiGroupOptClient) SetGroupAdmin(groupId int64, userId int64, enable bool) error
- func (cli *ChannelApiGroupOptClient) SetGroupAnonymous(groupId int64, enable bool) error
- func (cli *ChannelApiGroupOptClient) SetGroupAnonymousBan(groupId int64, anonymous *model.Anonymous, anonymousFlag string, ...) error
- func (cli *ChannelApiGroupOptClient) SetGroupBan(groupId int64, userId int64, duration uint32) error
- func (cli *ChannelApiGroupOptClient) SetGroupCard(groupId int64, userId int64, card string) error
- func (cli *ChannelApiGroupOptClient) SetGroupKick(groupId int64, userId int64, rejectAddRequest bool) error
- func (cli *ChannelApiGroupOptClient) SetGroupLeave(groupId int64, isDismiss bool) error
- func (cli *ChannelApiGroupOptClient) SetGroupName(groupId int64, groupName string) error
- func (cli *ChannelApiGroupOptClient) SetGroupPortrait(groupId int64, file string, cache int) error
- func (cli *ChannelApiGroupOptClient) SetGroupSpecialTitle(groupId int64, userId int64, specialTitle string, duration uint32) error
- func (cli *ChannelApiGroupOptClient) SetGroupWholeBan(groupId int64, enable bool) error
- type OnebotApiGroupOptClient
- type OnebotApiGroupOptGRPCServiceClient
- type OnebotApiGroupOptGRPCServiceServer
- type SendGroupNoticeRequest
- func (*SendGroupNoticeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendGroupNoticeRequest) GetContent() string
- func (x *SendGroupNoticeRequest) GetGroupId() int64
- func (x *SendGroupNoticeRequest) GetImage() string
- func (*SendGroupNoticeRequest) ProtoMessage()
- func (x *SendGroupNoticeRequest) ProtoReflect() protoreflect.Message
- func (x *SendGroupNoticeRequest) Reset()
- func (x *SendGroupNoticeRequest) String() string
- type SetGroupAdminRequest
- func (*SetGroupAdminRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupAdminRequest) GetEnable() bool
- func (x *SetGroupAdminRequest) GetGroupId() int64
- func (x *SetGroupAdminRequest) GetUserId() int64
- func (*SetGroupAdminRequest) ProtoMessage()
- func (x *SetGroupAdminRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupAdminRequest) Reset()
- func (x *SetGroupAdminRequest) String() string
- type SetGroupAnonymousBanRequest
- func (*SetGroupAnonymousBanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupAnonymousBanRequest) GetAnonymous() *model.AnonymousGRPC
- func (x *SetGroupAnonymousBanRequest) GetAnonymousFlag() string
- func (x *SetGroupAnonymousBanRequest) GetDuration() uint32
- func (x *SetGroupAnonymousBanRequest) GetGroupId() int64
- func (*SetGroupAnonymousBanRequest) ProtoMessage()
- func (x *SetGroupAnonymousBanRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupAnonymousBanRequest) Reset()
- func (x *SetGroupAnonymousBanRequest) String() string
- type SetGroupAnonymousRequest
- func (*SetGroupAnonymousRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupAnonymousRequest) GetEnable() bool
- func (x *SetGroupAnonymousRequest) GetGroupId() int64
- func (*SetGroupAnonymousRequest) ProtoMessage()
- func (x *SetGroupAnonymousRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupAnonymousRequest) Reset()
- func (x *SetGroupAnonymousRequest) String() string
- type SetGroupBanRequest
- func (*SetGroupBanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupBanRequest) GetDuration() uint32
- func (x *SetGroupBanRequest) GetGroupId() int64
- func (x *SetGroupBanRequest) GetUserId() int64
- func (*SetGroupBanRequest) ProtoMessage()
- func (x *SetGroupBanRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupBanRequest) Reset()
- func (x *SetGroupBanRequest) String() string
- type SetGroupCardRequest
- func (*SetGroupCardRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupCardRequest) GetCard() string
- func (x *SetGroupCardRequest) GetGroupId() int64
- func (x *SetGroupCardRequest) GetUserId() int64
- func (*SetGroupCardRequest) ProtoMessage()
- func (x *SetGroupCardRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupCardRequest) Reset()
- func (x *SetGroupCardRequest) String() string
- type SetGroupKickRequest
- func (*SetGroupKickRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupKickRequest) GetGroupId() int64
- func (x *SetGroupKickRequest) GetRejectAddRequest() bool
- func (x *SetGroupKickRequest) GetUserId() int64
- func (*SetGroupKickRequest) ProtoMessage()
- func (x *SetGroupKickRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupKickRequest) Reset()
- func (x *SetGroupKickRequest) String() string
- type SetGroupLeaveRequest
- func (*SetGroupLeaveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupLeaveRequest) GetGroupId() int64
- func (x *SetGroupLeaveRequest) GetIsDismiss() bool
- func (*SetGroupLeaveRequest) ProtoMessage()
- func (x *SetGroupLeaveRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupLeaveRequest) Reset()
- func (x *SetGroupLeaveRequest) String() string
- type SetGroupNameRequest
- func (*SetGroupNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupNameRequest) GetGroupId() int64
- func (x *SetGroupNameRequest) GetGroupName() string
- func (*SetGroupNameRequest) ProtoMessage()
- func (x *SetGroupNameRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupNameRequest) Reset()
- func (x *SetGroupNameRequest) String() string
- type SetGroupPortraitRequest
- func (*SetGroupPortraitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupPortraitRequest) GetCache() int32
- func (x *SetGroupPortraitRequest) GetFile() string
- func (x *SetGroupPortraitRequest) GetGroupId() int64
- func (*SetGroupPortraitRequest) ProtoMessage()
- func (x *SetGroupPortraitRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupPortraitRequest) Reset()
- func (x *SetGroupPortraitRequest) String() string
- type SetGroupSpecialTitleRequest
- func (*SetGroupSpecialTitleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupSpecialTitleRequest) GetDuration() uint32
- func (x *SetGroupSpecialTitleRequest) GetGroupId() int64
- func (x *SetGroupSpecialTitleRequest) GetSpecialTitle() string
- func (x *SetGroupSpecialTitleRequest) GetUserId() int64
- func (*SetGroupSpecialTitleRequest) ProtoMessage()
- func (x *SetGroupSpecialTitleRequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupSpecialTitleRequest) Reset()
- func (x *SetGroupSpecialTitleRequest) String() string
- type SetGroupWholeBanequest
- func (*SetGroupWholeBanequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetGroupWholeBanequest) GetEnable() bool
- func (x *SetGroupWholeBanequest) GetGroupId() int64
- func (*SetGroupWholeBanequest) ProtoMessage()
- func (x *SetGroupWholeBanequest) ProtoReflect() protoreflect.Message
- func (x *SetGroupWholeBanequest) Reset()
- func (x *SetGroupWholeBanequest) String() string
- type UnimplementedOnebotApiGroupOptGRPCServiceServer
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) DeleteEssenceMsg(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) GetGroupNotice(context.Context, *wrapperspb.Int64Value) (*model.GroupNoticeResultGRPC, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SendGroupNotice(context.Context, *SendGroupNoticeRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SendGroupSign(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetEssenceMsg(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAdmin(context.Context, *SetGroupAdminRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAnonymous(context.Context, *SetGroupAnonymousRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAnonymousBan(context.Context, *SetGroupAnonymousBanRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupBan(context.Context, *SetGroupBanRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupCard(context.Context, *SetGroupCardRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupKick(context.Context, *SetGroupKickRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupLeave(context.Context, *SetGroupLeaveRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupName(context.Context, *SetGroupNameRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupPortrait(context.Context, *SetGroupPortraitRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupSpecialTitle(context.Context, *SetGroupSpecialTitleRequest) (*emptypb.Empty, error)
- func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupWholeBan(context.Context, *SetGroupWholeBanequest) (*emptypb.Empty, error)
Constants ¶
const ( API_SET_GROUP_NAME = "set_group_name" API_SET_GROUP_PORTRAIT = "set_group_portrait" API_SET_GROUP_ADMIN = "set_group_admin" API_SET_GROUP_CARD = "set_group_card" API_SET_GROUP_SPECIAL_TITLE = "set_group_special_title" API_SET_GROUP_BAN = "set_group_ban" API_SET_GROUP_WHOLE_BAN = "set_group_whole_ban" API_SET_GROUP_ANONYMOUS_BAN = "set_group_anonymous_ban" API_SET_ESSENCE_MSG = "set_essence_msg" API_DELETE_ESSENCE_MSG = "delete_essence_msg" API_SEND_GROUP_SIGN = "send_group_sign" API_SET_GROUP_ANONYMOUS = "set_group_anonymous" API__SEND_GROUP_NOTICE = "_send_group_notice" API__GET_GROUP_NOTICE = "_get_group_notice" API_SET_GROUP_KICK = "set_group_kick" API_SET_GROUP_LEAVE = "set_group_leave" )
Variables ¶
var File_api_groupopt_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOnebotApiGroupOptGRPCServiceServer ¶
func RegisterOnebotApiGroupOptGRPCServiceServer(s *grpc.Server, srv OnebotApiGroupOptGRPCServiceServer)
Types ¶
type ChannelApiGroupOptClient ¶
type ChannelApiGroupOptClient struct {
channel.ApiChannel
}
func (*ChannelApiGroupOptClient) DeleteEssenceMsg ¶
func (cli *ChannelApiGroupOptClient) DeleteEssenceMsg(messageId int64) error
删除精华消息 delete_essence_msg message_id 消息 ID
func (*ChannelApiGroupOptClient) GetGroupNotice ¶
func (cli *ChannelApiGroupOptClient) GetGroupNotice(groupId int64) (*model.GroupNoticeResult, error)
获取群公告 _get_group_notice groupId 群号
func (*ChannelApiGroupOptClient) SendGroupNotice ¶
func (cli *ChannelApiGroupOptClient) SendGroupNotice(groupId int64, content string, image string) error
发送群公告 _send_group_notice groupId 群号 content 公告内容 image 图片文件路径(可选)
func (*ChannelApiGroupOptClient) SendGroupSign ¶
func (cli *ChannelApiGroupOptClient) SendGroupSign(groupId int64) error
发送群签到 send_group_sign groupId 群号
func (*ChannelApiGroupOptClient) SetEssenceMsg ¶
func (cli *ChannelApiGroupOptClient) SetEssenceMsg(messageId int64) error
设置精华消息 set_essence_msg message_id 消息 ID
func (*ChannelApiGroupOptClient) SetGroupAdmin ¶
func (cli *ChannelApiGroupOptClient) SetGroupAdmin(groupId int64, userId int64, enable bool) error
set_group_admin 设置群管理员 groupId 群号 userId QQ 号 enable true 为设置,false 为取消
func (*ChannelApiGroupOptClient) SetGroupAnonymous ¶
func (cli *ChannelApiGroupOptClient) SetGroupAnonymous(groupId int64, enable bool) error
设置群匿名 set_group_anonymous groupId 群号 enable 是否允许匿名聊天
func (*ChannelApiGroupOptClient) SetGroupAnonymousBan ¶
func (cli *ChannelApiGroupOptClient) SetGroupAnonymousBan(groupId int64, anonymous *model.Anonymous, anonymousFlag string, duration uint32) error
禁言群匿名成员 set_group_anonymous_ban groupId 群号 anonymous 可选, 要禁言的匿名用户对象(群消息上报的 anonymous 字段) anonymousFlag 可选, 要禁言的匿名用户的 flag(需从群消息上报的数据中获得) 上面的 anonymous 和 anonymous_flag 两者任选其一传入即可, 若都传入, 则使用 anonymous。 duration 禁言时长,单位秒,不能超过 30 天
func (*ChannelApiGroupOptClient) SetGroupBan ¶
func (cli *ChannelApiGroupOptClient) SetGroupBan(groupId int64, userId int64, duration uint32) error
禁言群成员 set_group_ban groupId 群号 userId QQ 号 duration 禁言时长,单位秒,0 表示取消禁言
func (*ChannelApiGroupOptClient) SetGroupCard ¶
func (cli *ChannelApiGroupOptClient) SetGroupCard(groupId int64, userId int64, card string) error
设置群名片 set_group_card groupId 群号 userId QQ 号 card 群名片内容,不填或空字符串表示删除群名片
func (*ChannelApiGroupOptClient) SetGroupKick ¶
func (cli *ChannelApiGroupOptClient) SetGroupKick(groupId int64, userId int64, rejectAddRequest bool) error
群组踢人 set_group_kick groupId 群号 userId QQ 号 rejectAddRequest 是否拒绝此人的加群请求
func (*ChannelApiGroupOptClient) SetGroupLeave ¶
func (cli *ChannelApiGroupOptClient) SetGroupLeave(groupId int64, isDismiss bool) error
退出群组 set_group_leave groupId 群号 isDismiss 是否解散,如果登录号是群主,则仅在此项为 true 时能够解散
func (*ChannelApiGroupOptClient) SetGroupName ¶
func (cli *ChannelApiGroupOptClient) SetGroupName(groupId int64, groupName string) error
设置群名 set_group_name groupId 群号
func (*ChannelApiGroupOptClient) SetGroupPortrait ¶
func (cli *ChannelApiGroupOptClient) SetGroupPortrait(groupId int64, file string, cache int) error
设置群头像 set_group_portrait groupId 群号 file 图片文件路径 cache 缓存时间
func (*ChannelApiGroupOptClient) SetGroupSpecialTitle ¶
func (cli *ChannelApiGroupOptClient) SetGroupSpecialTitle(groupId int64, userId int64, specialTitle string, duration uint32) error
设置群头衔 set_group_special_title groupId 群号 userId QQ 号 specialTitle 头衔,不填或空字符串表示删除群头衔 duration 专属头衔有效期, 单位秒, -1 表示永久, 不过此项似乎没有效果, 可能是只有某些特殊的时间长度有效, 有待测试
func (*ChannelApiGroupOptClient) SetGroupWholeBan ¶
func (cli *ChannelApiGroupOptClient) SetGroupWholeBan(groupId int64, enable bool) error
设置全群禁言 set_group_whole_ban groupId 群号 enable 是否禁言
type OnebotApiGroupOptClient ¶
type OnebotApiGroupOptClient interface {
// 设置群名
// set_group_name
// groupId 群号
SetGroupName(groupId int64, groupName string) error
// 设置群头像
// set_group_portrait
// groupId 群号
// file 图片文件路径
// cache 缓存时间
SetGroupPortrait(groupId int64, file string, cache int) error
// set_group_admin
// 设置群管理员
// groupId 群号
// userId QQ 号
// enable true 为设置,false 为取消
SetGroupAdmin(groupId int64, userId int64, enable bool) error
// 设置群名片
// set_group_card
// groupId 群号
// userId QQ 号
// card 群名片内容,不填或空字符串表示删除群名片
SetGroupCard(groupId int64, userId int64, card string) error
// 设置群头衔
// set_group_special_title
// groupId 群号
// userId QQ 号
// specialTitle 头衔,不填或空字符串表示删除群头衔
// duration 专属头衔有效期, 单位秒, -1 表示永久, 不过此项似乎没有效果, 可能是只有某些特殊的时间长度有效, 有待测试
SetGroupSpecialTitle(groupId int64, userId int64, specialTitle string, duration uint32) error
// 禁言群成员
// set_group_ban
// groupId 群号
// userId QQ 号
// duration 禁言时长,单位秒,0 表示取消禁言
SetGroupBan(groupId int64, userId int64, duration uint32) error
// 设置全群禁言
// set_group_whole_ban
// groupId 群号
// enable 是否禁言
SetGroupWholeBan(groupId int64, enable bool) error
// 禁言群匿名成员
// set_group_anonymous_ban
// groupId 群号
// anonymous 可选, 要禁言的匿名用户对象(群消息上报的 anonymous 字段)
// anonymousFlag 可选, 要禁言的匿名用户的 flag(需从群消息上报的数据中获得)
// 上面的 anonymous 和 anonymous_flag 两者任选其一传入即可, 若都传入, 则使用 anonymous。
// duration 禁言时长,单位秒,不能超过 30 天
SetGroupAnonymousBan(groupId int64, anonymous *model.Anonymous, anonymousFlag string, duration uint32) error
// 设置精华消息
// set_essence_msg
// message_id 消息 ID
SetEssenceMsg(messageId int64) error
// 删除精华消息
// delete_essence_msg
// message_id 消息 ID
DeleteEssenceMsg(messageId int64) error
// 发送群签到
// send_group_sign
// groupId 群号
SendGroupSign(groupId int64) error
// 设置群匿名
// set_group_anonymous
// groupId 群号
// enable 是否允许匿名聊天
SetGroupAnonymous(groupId int64, enable bool) error
// 发送群公告
// _send_group_notice
// groupId 群号
// content 公告内容
// image 图片文件路径(可选)
SendGroupNotice(groupId int64, content string, image string) error
// 获取群公告
// _get_group_notice
// groupId 群号
GetGroupNotice(groupId int64) (*model.GroupNoticeResult, error)
// 群组踢人
// set_group_kick
// groupId 群号
// userId QQ 号
// rejectAddRequest 是否拒绝此人的加群请求
SetGroupKick(groupId int64, userId int64, rejectAddRequest bool) error
// 退出群组
// set_group_leave
// groupId 群号
// isDismiss 是否解散,如果登录号是群主,则仅在此项为 true 时能够解散
SetGroupLeave(groupId int64, isDismiss bool) error
}
func NewChannelApiGroupOptClient ¶
func NewChannelApiGroupOptClient(channel channel.ApiChannel) (OnebotApiGroupOptClient, error)
type OnebotApiGroupOptGRPCServiceClient ¶
type OnebotApiGroupOptGRPCServiceClient interface {
// 设置群名
// set_group_name
// groupId 群号
SetGroupName(ctx context.Context, in *SetGroupNameRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 设置群头像
// set_group_portrait
// groupId 群号
// file 图片文件路径
// cache 缓存时间
SetGroupPortrait(ctx context.Context, in *SetGroupPortraitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// set_group_admin
// 设置群管理员
// groupId 群号
// userId QQ 号
// enable true 为设置,false 为取消
SetGroupAdmin(ctx context.Context, in *SetGroupAdminRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 设置群名片
// set_group_card
// groupId 群号
// userId QQ 号
// card 群名片内容,不填或空字符串表示删除群名片
SetGroupCard(ctx context.Context, in *SetGroupCardRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 设置群头衔
// set_group_special_title
// groupId 群号
// userId QQ 号
// specialTitle 头衔,不填或空字符串表示删除群头衔
// duration 专属头衔有效期, 单位秒, -1 表示永久, 不过此项似乎没有效果, 可能是只有某些特殊的时间长度有效, 有待测试
SetGroupSpecialTitle(ctx context.Context, in *SetGroupSpecialTitleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 禁言群成员
// set_group_ban
// groupId 群号
// userId QQ 号
// duration 禁言时长,单位秒,0 表示取消禁言
SetGroupBan(ctx context.Context, in *SetGroupBanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 设置全群禁言
// set_group_whole_ban
// groupId 群号
// enable 是否禁言
SetGroupWholeBan(ctx context.Context, in *SetGroupWholeBanequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 禁言群匿名成员
// set_group_anonymous_ban
// groupId 群号
// anonymous 可选, 要禁言的匿名用户对象(群消息上报的 anonymous 字段)
// anonymousFlag 可选, 要禁言的匿名用户的 flag(需从群消息上报的数据中获得)
// 上面的 anonymous 和 anonymous_flag 两者任选其一传入即可, 若都传入, 则使用 anonymous。
// duration 禁言时长,单位秒,不能超过 30 天
SetGroupAnonymousBan(ctx context.Context, in *SetGroupAnonymousBanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 设置精华消息
// set_essence_msg
// message_id 消息 ID
SetEssenceMsg(ctx context.Context, in *wrapperspb.Int64Value, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 删除精华消息
// delete_essence_msg
// message_id 消息 ID
DeleteEssenceMsg(ctx context.Context, in *wrapperspb.Int64Value, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 发送群签到
// send_group_sign
// groupId 群号
SendGroupSign(ctx context.Context, in *wrapperspb.Int64Value, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 设置群匿名
// set_group_anonymous
// groupId 群号
// enable 是否允许匿名聊天
SetGroupAnonymous(ctx context.Context, in *SetGroupAnonymousRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 发送群公告
// _send_group_notice
// groupId 群号
// content 公告内容
// image 图片文件路径(可选)
SendGroupNotice(ctx context.Context, in *SendGroupNoticeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 获取群公告
// _get_group_notice
// groupId 群号
GetGroupNotice(ctx context.Context, in *wrapperspb.Int64Value, opts ...grpc.CallOption) (*model.GroupNoticeResultGRPC, error)
// 群组踢人
// set_group_kick
// groupId 群号
// userId QQ 号
// rejectAddRequest 是否拒绝此人的加群请求
SetGroupKick(ctx context.Context, in *SetGroupKickRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 退出群组
// set_group_leave
// groupId 群号
// isDismiss 是否解散,如果登录号是群主,则仅在此项为 true 时能够解散
SetGroupLeave(ctx context.Context, in *SetGroupLeaveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
OnebotApiGroupOptGRPCServiceClient is the client API for OnebotApiGroupOptGRPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOnebotApiGroupOptGRPCServiceClient ¶
func NewOnebotApiGroupOptGRPCServiceClient(cc grpc.ClientConnInterface) OnebotApiGroupOptGRPCServiceClient
type OnebotApiGroupOptGRPCServiceServer ¶
type OnebotApiGroupOptGRPCServiceServer interface {
// 设置群名
// set_group_name
// groupId 群号
SetGroupName(context.Context, *SetGroupNameRequest) (*emptypb.Empty, error)
// 设置群头像
// set_group_portrait
// groupId 群号
// file 图片文件路径
// cache 缓存时间
SetGroupPortrait(context.Context, *SetGroupPortraitRequest) (*emptypb.Empty, error)
// set_group_admin
// 设置群管理员
// groupId 群号
// userId QQ 号
// enable true 为设置,false 为取消
SetGroupAdmin(context.Context, *SetGroupAdminRequest) (*emptypb.Empty, error)
// 设置群名片
// set_group_card
// groupId 群号
// userId QQ 号
// card 群名片内容,不填或空字符串表示删除群名片
SetGroupCard(context.Context, *SetGroupCardRequest) (*emptypb.Empty, error)
// 设置群头衔
// set_group_special_title
// groupId 群号
// userId QQ 号
// specialTitle 头衔,不填或空字符串表示删除群头衔
// duration 专属头衔有效期, 单位秒, -1 表示永久, 不过此项似乎没有效果, 可能是只有某些特殊的时间长度有效, 有待测试
SetGroupSpecialTitle(context.Context, *SetGroupSpecialTitleRequest) (*emptypb.Empty, error)
// 禁言群成员
// set_group_ban
// groupId 群号
// userId QQ 号
// duration 禁言时长,单位秒,0 表示取消禁言
SetGroupBan(context.Context, *SetGroupBanRequest) (*emptypb.Empty, error)
// 设置全群禁言
// set_group_whole_ban
// groupId 群号
// enable 是否禁言
SetGroupWholeBan(context.Context, *SetGroupWholeBanequest) (*emptypb.Empty, error)
// 禁言群匿名成员
// set_group_anonymous_ban
// groupId 群号
// anonymous 可选, 要禁言的匿名用户对象(群消息上报的 anonymous 字段)
// anonymousFlag 可选, 要禁言的匿名用户的 flag(需从群消息上报的数据中获得)
// 上面的 anonymous 和 anonymous_flag 两者任选其一传入即可, 若都传入, 则使用 anonymous。
// duration 禁言时长,单位秒,不能超过 30 天
SetGroupAnonymousBan(context.Context, *SetGroupAnonymousBanRequest) (*emptypb.Empty, error)
// 设置精华消息
// set_essence_msg
// message_id 消息 ID
SetEssenceMsg(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
// 删除精华消息
// delete_essence_msg
// message_id 消息 ID
DeleteEssenceMsg(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
// 发送群签到
// send_group_sign
// groupId 群号
SendGroupSign(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
// 设置群匿名
// set_group_anonymous
// groupId 群号
// enable 是否允许匿名聊天
SetGroupAnonymous(context.Context, *SetGroupAnonymousRequest) (*emptypb.Empty, error)
// 发送群公告
// _send_group_notice
// groupId 群号
// content 公告内容
// image 图片文件路径(可选)
SendGroupNotice(context.Context, *SendGroupNoticeRequest) (*emptypb.Empty, error)
// 获取群公告
// _get_group_notice
// groupId 群号
GetGroupNotice(context.Context, *wrapperspb.Int64Value) (*model.GroupNoticeResultGRPC, error)
// 群组踢人
// set_group_kick
// groupId 群号
// userId QQ 号
// rejectAddRequest 是否拒绝此人的加群请求
SetGroupKick(context.Context, *SetGroupKickRequest) (*emptypb.Empty, error)
// 退出群组
// set_group_leave
// groupId 群号
// isDismiss 是否解散,如果登录号是群主,则仅在此项为 true 时能够解散
SetGroupLeave(context.Context, *SetGroupLeaveRequest) (*emptypb.Empty, error)
}
OnebotApiGroupOptGRPCServiceServer is the server API for OnebotApiGroupOptGRPCService service.
type SendGroupNoticeRequest ¶
type SendGroupNoticeRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
// contains filtered or unexported fields
}
func (*SendGroupNoticeRequest) Descriptor
deprecated
func (*SendGroupNoticeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendGroupNoticeRequest.ProtoReflect.Descriptor instead.
func (*SendGroupNoticeRequest) GetContent ¶
func (x *SendGroupNoticeRequest) GetContent() string
func (*SendGroupNoticeRequest) GetGroupId ¶
func (x *SendGroupNoticeRequest) GetGroupId() int64
func (*SendGroupNoticeRequest) GetImage ¶
func (x *SendGroupNoticeRequest) GetImage() string
func (*SendGroupNoticeRequest) ProtoMessage ¶
func (*SendGroupNoticeRequest) ProtoMessage()
func (*SendGroupNoticeRequest) ProtoReflect ¶
func (x *SendGroupNoticeRequest) ProtoReflect() protoreflect.Message
func (*SendGroupNoticeRequest) Reset ¶
func (x *SendGroupNoticeRequest) Reset()
func (*SendGroupNoticeRequest) String ¶
func (x *SendGroupNoticeRequest) String() string
type SetGroupAdminRequest ¶
type SetGroupAdminRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupAdminRequest) Descriptor
deprecated
func (*SetGroupAdminRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupAdminRequest.ProtoReflect.Descriptor instead.
func (*SetGroupAdminRequest) GetEnable ¶
func (x *SetGroupAdminRequest) GetEnable() bool
func (*SetGroupAdminRequest) GetGroupId ¶
func (x *SetGroupAdminRequest) GetGroupId() int64
func (*SetGroupAdminRequest) GetUserId ¶
func (x *SetGroupAdminRequest) GetUserId() int64
func (*SetGroupAdminRequest) ProtoMessage ¶
func (*SetGroupAdminRequest) ProtoMessage()
func (*SetGroupAdminRequest) ProtoReflect ¶
func (x *SetGroupAdminRequest) ProtoReflect() protoreflect.Message
func (*SetGroupAdminRequest) Reset ¶
func (x *SetGroupAdminRequest) Reset()
func (*SetGroupAdminRequest) String ¶
func (x *SetGroupAdminRequest) String() string
type SetGroupAnonymousBanRequest ¶
type SetGroupAnonymousBanRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
Anonymous *model.AnonymousGRPC `protobuf:"bytes,2,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
AnonymousFlag string `protobuf:"bytes,3,opt,name=anonymous_flag,json=anonymousFlag,proto3" json:"anonymous_flag,omitempty"`
Duration uint32 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupAnonymousBanRequest) Descriptor
deprecated
func (*SetGroupAnonymousBanRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupAnonymousBanRequest.ProtoReflect.Descriptor instead.
func (*SetGroupAnonymousBanRequest) GetAnonymous ¶
func (x *SetGroupAnonymousBanRequest) GetAnonymous() *model.AnonymousGRPC
func (*SetGroupAnonymousBanRequest) GetAnonymousFlag ¶
func (x *SetGroupAnonymousBanRequest) GetAnonymousFlag() string
func (*SetGroupAnonymousBanRequest) GetDuration ¶
func (x *SetGroupAnonymousBanRequest) GetDuration() uint32
func (*SetGroupAnonymousBanRequest) GetGroupId ¶
func (x *SetGroupAnonymousBanRequest) GetGroupId() int64
func (*SetGroupAnonymousBanRequest) ProtoMessage ¶
func (*SetGroupAnonymousBanRequest) ProtoMessage()
func (*SetGroupAnonymousBanRequest) ProtoReflect ¶
func (x *SetGroupAnonymousBanRequest) ProtoReflect() protoreflect.Message
func (*SetGroupAnonymousBanRequest) Reset ¶
func (x *SetGroupAnonymousBanRequest) Reset()
func (*SetGroupAnonymousBanRequest) String ¶
func (x *SetGroupAnonymousBanRequest) String() string
type SetGroupAnonymousRequest ¶
type SetGroupAnonymousRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupAnonymousRequest) Descriptor
deprecated
func (*SetGroupAnonymousRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupAnonymousRequest.ProtoReflect.Descriptor instead.
func (*SetGroupAnonymousRequest) GetEnable ¶
func (x *SetGroupAnonymousRequest) GetEnable() bool
func (*SetGroupAnonymousRequest) GetGroupId ¶
func (x *SetGroupAnonymousRequest) GetGroupId() int64
func (*SetGroupAnonymousRequest) ProtoMessage ¶
func (*SetGroupAnonymousRequest) ProtoMessage()
func (*SetGroupAnonymousRequest) ProtoReflect ¶
func (x *SetGroupAnonymousRequest) ProtoReflect() protoreflect.Message
func (*SetGroupAnonymousRequest) Reset ¶
func (x *SetGroupAnonymousRequest) Reset()
func (*SetGroupAnonymousRequest) String ¶
func (x *SetGroupAnonymousRequest) String() string
type SetGroupBanRequest ¶
type SetGroupBanRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Duration uint32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupBanRequest) Descriptor
deprecated
func (*SetGroupBanRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupBanRequest.ProtoReflect.Descriptor instead.
func (*SetGroupBanRequest) GetDuration ¶
func (x *SetGroupBanRequest) GetDuration() uint32
func (*SetGroupBanRequest) GetGroupId ¶
func (x *SetGroupBanRequest) GetGroupId() int64
func (*SetGroupBanRequest) GetUserId ¶
func (x *SetGroupBanRequest) GetUserId() int64
func (*SetGroupBanRequest) ProtoMessage ¶
func (*SetGroupBanRequest) ProtoMessage()
func (*SetGroupBanRequest) ProtoReflect ¶
func (x *SetGroupBanRequest) ProtoReflect() protoreflect.Message
func (*SetGroupBanRequest) Reset ¶
func (x *SetGroupBanRequest) Reset()
func (*SetGroupBanRequest) String ¶
func (x *SetGroupBanRequest) String() string
type SetGroupCardRequest ¶
type SetGroupCardRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Card string `protobuf:"bytes,3,opt,name=card,proto3" json:"card,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupCardRequest) Descriptor
deprecated
func (*SetGroupCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupCardRequest.ProtoReflect.Descriptor instead.
func (*SetGroupCardRequest) GetCard ¶
func (x *SetGroupCardRequest) GetCard() string
func (*SetGroupCardRequest) GetGroupId ¶
func (x *SetGroupCardRequest) GetGroupId() int64
func (*SetGroupCardRequest) GetUserId ¶
func (x *SetGroupCardRequest) GetUserId() int64
func (*SetGroupCardRequest) ProtoMessage ¶
func (*SetGroupCardRequest) ProtoMessage()
func (*SetGroupCardRequest) ProtoReflect ¶
func (x *SetGroupCardRequest) ProtoReflect() protoreflect.Message
func (*SetGroupCardRequest) Reset ¶
func (x *SetGroupCardRequest) Reset()
func (*SetGroupCardRequest) String ¶
func (x *SetGroupCardRequest) String() string
type SetGroupKickRequest ¶
type SetGroupKickRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
RejectAddRequest bool `protobuf:"varint,3,opt,name=reject_add_request,json=rejectAddRequest,proto3" json:"reject_add_request,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupKickRequest) Descriptor
deprecated
func (*SetGroupKickRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupKickRequest.ProtoReflect.Descriptor instead.
func (*SetGroupKickRequest) GetGroupId ¶
func (x *SetGroupKickRequest) GetGroupId() int64
func (*SetGroupKickRequest) GetRejectAddRequest ¶
func (x *SetGroupKickRequest) GetRejectAddRequest() bool
func (*SetGroupKickRequest) GetUserId ¶
func (x *SetGroupKickRequest) GetUserId() int64
func (*SetGroupKickRequest) ProtoMessage ¶
func (*SetGroupKickRequest) ProtoMessage()
func (*SetGroupKickRequest) ProtoReflect ¶
func (x *SetGroupKickRequest) ProtoReflect() protoreflect.Message
func (*SetGroupKickRequest) Reset ¶
func (x *SetGroupKickRequest) Reset()
func (*SetGroupKickRequest) String ¶
func (x *SetGroupKickRequest) String() string
type SetGroupLeaveRequest ¶
type SetGroupLeaveRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
IsDismiss bool `protobuf:"varint,2,opt,name=is_dismiss,json=isDismiss,proto3" json:"is_dismiss,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupLeaveRequest) Descriptor
deprecated
func (*SetGroupLeaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupLeaveRequest.ProtoReflect.Descriptor instead.
func (*SetGroupLeaveRequest) GetGroupId ¶
func (x *SetGroupLeaveRequest) GetGroupId() int64
func (*SetGroupLeaveRequest) GetIsDismiss ¶
func (x *SetGroupLeaveRequest) GetIsDismiss() bool
func (*SetGroupLeaveRequest) ProtoMessage ¶
func (*SetGroupLeaveRequest) ProtoMessage()
func (*SetGroupLeaveRequest) ProtoReflect ¶
func (x *SetGroupLeaveRequest) ProtoReflect() protoreflect.Message
func (*SetGroupLeaveRequest) Reset ¶
func (x *SetGroupLeaveRequest) Reset()
func (*SetGroupLeaveRequest) String ¶
func (x *SetGroupLeaveRequest) String() string
type SetGroupNameRequest ¶
type SetGroupNameRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupNameRequest) Descriptor
deprecated
func (*SetGroupNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupNameRequest.ProtoReflect.Descriptor instead.
func (*SetGroupNameRequest) GetGroupId ¶
func (x *SetGroupNameRequest) GetGroupId() int64
func (*SetGroupNameRequest) GetGroupName ¶
func (x *SetGroupNameRequest) GetGroupName() string
func (*SetGroupNameRequest) ProtoMessage ¶
func (*SetGroupNameRequest) ProtoMessage()
func (*SetGroupNameRequest) ProtoReflect ¶
func (x *SetGroupNameRequest) ProtoReflect() protoreflect.Message
func (*SetGroupNameRequest) Reset ¶
func (x *SetGroupNameRequest) Reset()
func (*SetGroupNameRequest) String ¶
func (x *SetGroupNameRequest) String() string
type SetGroupPortraitRequest ¶
type SetGroupPortraitRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
Cache int32 `protobuf:"varint,3,opt,name=cache,proto3" json:"cache,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupPortraitRequest) Descriptor
deprecated
func (*SetGroupPortraitRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupPortraitRequest.ProtoReflect.Descriptor instead.
func (*SetGroupPortraitRequest) GetCache ¶
func (x *SetGroupPortraitRequest) GetCache() int32
func (*SetGroupPortraitRequest) GetFile ¶
func (x *SetGroupPortraitRequest) GetFile() string
func (*SetGroupPortraitRequest) GetGroupId ¶
func (x *SetGroupPortraitRequest) GetGroupId() int64
func (*SetGroupPortraitRequest) ProtoMessage ¶
func (*SetGroupPortraitRequest) ProtoMessage()
func (*SetGroupPortraitRequest) ProtoReflect ¶
func (x *SetGroupPortraitRequest) ProtoReflect() protoreflect.Message
func (*SetGroupPortraitRequest) Reset ¶
func (x *SetGroupPortraitRequest) Reset()
func (*SetGroupPortraitRequest) String ¶
func (x *SetGroupPortraitRequest) String() string
type SetGroupSpecialTitleRequest ¶
type SetGroupSpecialTitleRequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
SpecialTitle string `protobuf:"bytes,3,opt,name=special_title,json=specialTitle,proto3" json:"special_title,omitempty"`
Duration uint32 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupSpecialTitleRequest) Descriptor
deprecated
func (*SetGroupSpecialTitleRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupSpecialTitleRequest.ProtoReflect.Descriptor instead.
func (*SetGroupSpecialTitleRequest) GetDuration ¶
func (x *SetGroupSpecialTitleRequest) GetDuration() uint32
func (*SetGroupSpecialTitleRequest) GetGroupId ¶
func (x *SetGroupSpecialTitleRequest) GetGroupId() int64
func (*SetGroupSpecialTitleRequest) GetSpecialTitle ¶
func (x *SetGroupSpecialTitleRequest) GetSpecialTitle() string
func (*SetGroupSpecialTitleRequest) GetUserId ¶
func (x *SetGroupSpecialTitleRequest) GetUserId() int64
func (*SetGroupSpecialTitleRequest) ProtoMessage ¶
func (*SetGroupSpecialTitleRequest) ProtoMessage()
func (*SetGroupSpecialTitleRequest) ProtoReflect ¶
func (x *SetGroupSpecialTitleRequest) ProtoReflect() protoreflect.Message
func (*SetGroupSpecialTitleRequest) Reset ¶
func (x *SetGroupSpecialTitleRequest) Reset()
func (*SetGroupSpecialTitleRequest) String ¶
func (x *SetGroupSpecialTitleRequest) String() string
type SetGroupWholeBanequest ¶
type SetGroupWholeBanequest struct {
GroupId int64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
// contains filtered or unexported fields
}
func (*SetGroupWholeBanequest) Descriptor
deprecated
func (*SetGroupWholeBanequest) Descriptor() ([]byte, []int)
Deprecated: Use SetGroupWholeBanequest.ProtoReflect.Descriptor instead.
func (*SetGroupWholeBanequest) GetEnable ¶
func (x *SetGroupWholeBanequest) GetEnable() bool
func (*SetGroupWholeBanequest) GetGroupId ¶
func (x *SetGroupWholeBanequest) GetGroupId() int64
func (*SetGroupWholeBanequest) ProtoMessage ¶
func (*SetGroupWholeBanequest) ProtoMessage()
func (*SetGroupWholeBanequest) ProtoReflect ¶
func (x *SetGroupWholeBanequest) ProtoReflect() protoreflect.Message
func (*SetGroupWholeBanequest) Reset ¶
func (x *SetGroupWholeBanequest) Reset()
func (*SetGroupWholeBanequest) String ¶
func (x *SetGroupWholeBanequest) String() string
type UnimplementedOnebotApiGroupOptGRPCServiceServer ¶
type UnimplementedOnebotApiGroupOptGRPCServiceServer struct {
}
UnimplementedOnebotApiGroupOptGRPCServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) DeleteEssenceMsg ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) DeleteEssenceMsg(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) GetGroupNotice ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) GetGroupNotice(context.Context, *wrapperspb.Int64Value) (*model.GroupNoticeResultGRPC, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SendGroupNotice ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SendGroupNotice(context.Context, *SendGroupNoticeRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SendGroupSign ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SendGroupSign(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetEssenceMsg ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetEssenceMsg(context.Context, *wrapperspb.Int64Value) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAdmin ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAdmin(context.Context, *SetGroupAdminRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAnonymous ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAnonymous(context.Context, *SetGroupAnonymousRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAnonymousBan ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupAnonymousBan(context.Context, *SetGroupAnonymousBanRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupBan ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupBan(context.Context, *SetGroupBanRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupCard ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupCard(context.Context, *SetGroupCardRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupKick ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupKick(context.Context, *SetGroupKickRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupLeave ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupLeave(context.Context, *SetGroupLeaveRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupName ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupName(context.Context, *SetGroupNameRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupPortrait ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupPortrait(context.Context, *SetGroupPortraitRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupSpecialTitle ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupSpecialTitle(context.Context, *SetGroupSpecialTitleRequest) (*emptypb.Empty, error)
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupWholeBan ¶
func (*UnimplementedOnebotApiGroupOptGRPCServiceServer) SetGroupWholeBan(context.Context, *SetGroupWholeBanequest) (*emptypb.Empty, error)