handler

package
v0.0.0-...-cb1629c Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ApiUrl string = "https://www.tagesschau.de/json/headerapp"

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Bot *telebot.Bot
	DB  *storage.DB
}

func (Handler) OnHelp

func (h Handler) OnHelp(c telebot.Context) error

func (Handler) OnStart

func (h Handler) OnStart(c telebot.Context) error

func (Handler) OnStop

func (h Handler) OnStop(c telebot.Context) error

func (Handler) OnTimer

func (h Handler) OnTimer()

type TagesschauResponse

type TagesschauResponse struct {
	BreakingNews []struct {
		Id       string `json:"id"`
		Headline string `json:"headline"`
		Text     string `json:"text"`
		Url      string `json:"url"`
		Date     string `json:"date"`
	} `json:"breakingNews"`
}

Jump to

Keyboard shortcuts

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