telegram

package
v0.0.0-...-3c76feb Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 10 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
}

Bot will store the token the internal telegram bto and the storage

func CreateBot

func CreateBot(token string, storage *storage.Storage) *Bot

CreateBot will create a new bot with the given token and storage

func (*Bot) Init

func (b *Bot) Init()

Init will create the internal bot

func (*Bot) SendAds

func (b *Bot) SendAds(chatID int64, ads []scraper.Ad, q model.Query) error

SendAds send the given ad the the given chatId

func (*Bot) Start

func (b *Bot) Start()

Start starts the bot and listens for commands this will not return

Jump to

Keyboard shortcuts

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