templates

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenLink  = CarouselAction("open_link")
	OpenPhoto = CarouselAction("open_photo")
)

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (*Carousel) AddElement

func (keyboard *Carousel) AddElement(index int, title, description string, image attachments.Image, buttons []keyboards.Button) *Carousel

func (*Carousel) GetJson

func (keyboard *Carousel) GetJson() json.Json

func (*Carousel) Init

func (keyboard *Carousel) Init()

type CarouselAction

type CarouselAction string

type Template

type Template interface {
	Init()

	GetJson() json.Json
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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