chatter

package
v0.0.0-...-8fb32ab Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 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 Channel

type Channel tgbotapi.UpdatesChannel

Channel is a message channel

type Handler

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

Handler is a telegram bot

func New

func New(version, token string) (*Handler, error)

New creates a new Telegram bot

func (*Handler) SendMessage

func (r *Handler) SendMessage(chatID int64, message string) error

SendMessage will send a message to a given user

func (*Handler) Start

func (r *Handler) Start() (Channel, error)

Start begins listening to messages from Telegram

type Interface

type Interface interface {
	Start() (Channel, error)
	SendMessage(int64, string) error
}

Interface is the stats public functions

Jump to

Keyboard shortcuts

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