This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
thrempp/component/threema/account.go

19 lines
404 B
Go
Raw Normal View History

2019-05-31 14:36:18 +02:00
package threema
import "errors"
type ThreemaAccount struct {
ID string
}
func (t *Threema) getAccount(jid string) *ThreemaAccount {
return &ThreemaAccount{}
}
func (a *ThreemaAccount) Send(to string, msg string) error {
if a.ID == "" {
return errors.New("It was not possible to send, becaouse we have no account for you.\nPlease generate one, by sending `generate` to gateway")
}
return nil
}