telegram

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "telegram"
	// AttrToken ...
	AttrToken = "token"
	// AttrName ...
	AttrName = "name"
	// AttrBody ...
	AttrBody = "body"
)
View Source
const (
	// FuncEntityAction ...
	FuncEntityAction = "telegramAction"
)
View Source
const (
	// StatusDelivered ...
	StatusDelivered = "delivered"
)

Variables

This section is empty.

Functions

func New

func New() plugins.Plugable

New ...

func NewAttr

func NewAttr() m.Attributes

NewAttr ...

func NewMessageParams

func NewMessageParams() m.Attributes

NewMessageParams ...

func NewSettings

func NewSettings() m.Attributes

NewSettings ...

Types

type Actor

type Actor struct {
	entity_manager.BaseActor

	AccessToken string
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	entityManager entity_manager.EntityManager,
	scriptService scripts.ScriptService,
	eventBus bus.Bus,
	adaptors *adaptors.Adaptors) (*Actor, error)

NewActor ...

func (*Actor) Send

func (p *Actor) Send(message string) (err error)

Send ...

func (*Actor) Spawn

func (p *Actor) Spawn() entity_manager.PluginActor

Spawn ...

func (*Actor) Start

func (p *Actor) Start() (err error)

Start ...

func (*Actor) Stop

func (p *Actor) Stop()

Stop ...

func (*Actor) UpdateStatus

func (p *Actor) UpdateStatus() (err error)

UpdateStatus ...

type Command

type Command struct {
	UserName, Text string
	ChatId         int64
}

Command ...

Jump to

Keyboard shortcuts

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