telegram

package
v0.0.0-...-06f1773 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 6 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(bot *tgbotapi.BotAPI, repository Repository) *Bot

func (*Bot) HandleCommand

func (b *Bot) HandleCommand(update tgbotapi.Update)

func (*Bot) Start

func (b *Bot) Start()

type Repository

type Repository interface {
	AddUser(chatId int64) error
	AddCoin(coin models.UserCoin) error
	GetWallet(userID int64) ([]models.UserCoin, error)
}

Jump to

Keyboard shortcuts

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