telegram

package
v0.0.0-...-9c5febd Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Messenge

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

Messenge telegram object

func New

func New() *Messenge

New create instance. Init method has pointer receiver

func (Messenge) Available

func (m Messenge) Available() bool

Available true if telegram api is on

func (*Messenge) Init

func (m *Messenge) Init(args ...string) error

Init connect to API by token

func (Messenge) ListenChat

func (m Messenge) ListenChat(request messengers.ListenChatRequest, output messengers.ListenChatOutput)

ListenChat send all new messages to output interface

func (Messenge) Name

func (m Messenge) Name() string

Name telegram

func (Messenge) ShowOrder

func (m Messenge) ShowOrder(chatID int, message, description string) error

ShowOrder place order details in chat message

func (Messenge) String

func (m Messenge) String() string

Jump to

Keyboard shortcuts

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