Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_attachment_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Attachment ¶
type Attachment struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` SourceId uint32 `protobuf:"varint,2,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` // contains filtered or unexported fields }
func UnmarshalAttachment ¶
func UnmarshalAttachment(data string) (*Attachment, error)
UnmarshalAttachment 从字符串解析透传信息
func (*Attachment) Descriptor
deprecated
func (*Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetSourceId ¶
func (x *Attachment) GetSourceId() uint32
func (*Attachment) GetUserId ¶
func (x *Attachment) GetUserId() int64
func (*Attachment) ProtoMessage ¶
func (*Attachment) ProtoMessage()
func (*Attachment) ProtoReflect ¶
func (x *Attachment) ProtoReflect() protoreflect.Message
func (*Attachment) Reset ¶
func (x *Attachment) Reset()
func (*Attachment) String ¶
func (x *Attachment) String() string
type BotContextStoreKey ¶
type BotContextStoreKey string
EntityType is a MessageEntity type.
const (
StoreKeyMentionChat BotContextStoreKey = "mention_chat"
)
func (BotContextStoreKey) String ¶
func (k BotContextStoreKey) String() string
Click to show internal directories.
Click to hide internal directories.