Documentation
¶
Index ¶
- type Content
- type ContentType
- type Message
- func (m *Message) Content() Content
- func (m *Message) ForwardTime() time.Time
- func (m *Message) GroupName() string
- func (m *Message) MentionedNames() []string
- func (m *Message) Parse(js []byte) error
- func (m *Message) SendTime() time.Time
- func (m *Message) Sender() Sender
- func (m *Message) Serialize() ([]byte, error)
- func (m *Message) SetContent(content Content)
- func (m *Message) SetForwardTime(forwardTime time.Time)
- func (m *Message) SetGroupName(groupName string)
- func (m *Message) SetMentionedNames(mentionedNames ...string)
- func (m *Message) SetSendTime(sendTime time.Time)
- func (m *Message) SetSender(sender Sender)
- func (m *Message) String() string
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { Data []byte `json:"data,omitempty"` Type ContentType `json:"type,omitempty"` }
type ContentType ¶
type ContentType int
const ( ContentTypeText ContentType = iota ContentTypeFile ContentTypeImage ContentTypeVideo )
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) ForwardTime ¶
func (*Message) MentionedNames ¶
func (*Message) SetContent ¶
func (*Message) SetForwardTime ¶
func (*Message) SetGroupName ¶
func (*Message) SetMentionedNames ¶
func (*Message) SetSendTime ¶
Click to show internal directories.
Click to hide internal directories.