telegram

package
v0.0.0-...-47a8f2b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: BSD-2-Clause Imports: 8 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(ctx context.Context, cfg Config, deliveries *sql.DeliveriesRepository) (Bot, error)

func (*Bot) GetUpdatesChannel

func (b *Bot) GetUpdatesChannel() tgbotapi.UpdatesChannel

func (*Bot) Listen

func (b *Bot) Listen(tracker tracking.Tracker) error

func (*Bot) Send

func (b *Bot) Send(msg tgbotapi.MessageConfig) (tgbotapi.Message, error)

type Config

type Config struct {
	Token string
}

Jump to

Keyboard shortcuts

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