messge clone

This commit is contained in:
jiangyong 2026-06-26 00:42:58 +08:00
parent b55ac43bb9
commit 42d65797f3
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,14 @@ func NewMessage(addreess string, token string, sender string) *Message {
}
}
func (m *Message) Clone(sender string) *Message {
return &Message{
address: m.address,
token: m.token,
sender: sender,
}
}
func (m *Message) Send(args ...string) error {
return m.SendText(args...)
}