app

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BytesUploader

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

func NewBytesUploader

func NewBytesUploader(name string, b []byte) *BytesUploader

func (*BytesUploader) Name

func (b *BytesUploader) Name() string

func (*BytesUploader) Reader

func (b *BytesUploader) Reader() (io.Reader, error)

func (*BytesUploader) Size

func (b *BytesUploader) Size() int64

type Handler

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

func NewHandler

func NewHandler(bot *telegram.Bot, cfg *conf.Struct, svc Services) *Handler

func (*Handler) Handle

func (h *Handler) Handle(upd *telegram.Update)

type Sender

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

func NewSender added in v0.3.0

func NewSender(bot *telegram.Bot, chatID int) *Sender

func (*Sender) Send

func (s *Sender) Send(text string)

func (*Sender) SendPhoto

func (s *Sender) SendPhoto(name string, b []byte)

type Services

type Services struct {
	Logic        *logic.Logic
	Status       *stat.Service
	StatusChatex *stat.Service
	History      *history.History
	ChatexOpts   *chatex.TradeOpts
}

Jump to

Keyboard shortcuts

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