threema

package
v0.0.0-...-39cd552 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2020 License: AGPL-3.0, AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewThreema

func NewThreema(config map[string]interface{}) (component.Component, error)

Types

type Account

type Account struct {
	models.AccountThreema

	Session o3.SessionContext
	// contains filtered or unexported fields
}

func (*Account) FileToXMPP

func (a *Account) FileToXMPP(from string, msgID uint64, ext string, data []byte) (stanza.Message, error)

func (*Account) Send

func (a *Account) Send(to string, msg stanza.Message) error

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

func (*Bot) Handle

func (b *Bot) Handle(request string) string

type Threema

type Threema struct {
	component.Component
	// contains filtered or unexported fields
}

func (*Threema) Connect

func (t *Threema) Connect() (chan stanza.Packet, error)

func (*Threema) Send

func (t *Threema) Send(packet stanza.Packet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL