messge clone
This commit is contained in:
parent
b55ac43bb9
commit
42d65797f3
|
|
@ -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...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue