telegram

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: GPL-3.0 Imports: 23 Imported by: 1

Documentation

Overview

Package telegram implements the telegram bot daemon service.

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceClosed = errors.New("telegram: Service closed")

ErrServiceClosed is returned by the Service's Serve method after a call to Shutdown.

Functions

This section is empty.

Types

type Telegram added in v0.8.0

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

Telegram represents a Telegram service in the application.

func New

func New(ctx context.Context, opts service.Options) *Telegram

New Telegram struct.

func (*Telegram) Serve added in v0.8.0

func (t *Telegram) Serve() (err error)

Serve loop request message from the Telegram api server. Serve always returns an error.

func (*Telegram) Shutdown added in v0.16.0

func (t *Telegram) Shutdown() error

Shutdown shuts down the Telegram service, it always retuan a nil error.

Jump to

Keyboard shortcuts

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