telegram

package
v0.0.0-...-2c15e9f Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageProcessor

type MessageProcessor func(msg domain.Message)

MessageProcessor is a function to process updates in telegram chat

type Messenger

type Messenger interface {
	Send(m domain.Message)
}

Messenger is an inteface which describes basic messenger functionality

func NewMessenger

func NewMessenger(token string, messageProcessor MessageProcessor, delay time.Duration) Messenger

NewMessenger is a constructor

Jump to

Keyboard shortcuts

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