bot

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func NewBot

func NewBot(conf *config.Bot, v domain.VehicleService, m domain.MessageService, addr string) (*Bot, error)

func (*Bot) FindByImage added in v1.0.5

func (b *Bot) FindByImage(ctx context.Context, m *telebot.Message) error

func (*Bot) FindByNumber

func (b *Bot) FindByNumber(ctx context.Context, m *telebot.Message) error

func (*Bot) FindByVIN

func (b *Bot) FindByVIN(ctx context.Context, m *telebot.Message) error

func (*Bot) Process

func (b *Bot) Process(ctx context.Context) error

type Poller

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

func NewPoller

func NewPoller(r domain.MessageRepository, next telebot.Poller) *Poller

func (*Poller) Poll

func (p *Poller) Poll(b *telebot.Bot, updates chan telebot.Update, stop chan struct{})

Jump to

Keyboard shortcuts

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