constructor

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyboard

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

func NewKeyboard

func NewKeyboard(buttonRows ...[]string) (keyboard *Keyboard, err error)

func (*Keyboard) Compile

func (k *Keyboard) Compile() (markup *tlg.InlineKeyboardMarkup, err error)

func (*Keyboard) SetCallbackData

func (k *Keyboard) SetCallbackData(i, j int, callbackData string) (err error)

func (*Keyboard) SetPayButton

func (k *Keyboard) SetPayButton(i, j int, pay bool) (err error)

func (*Keyboard) SetUrl

func (k *Keyboard) SetUrl(i, j int, url string) (err error)

func (*Keyboard) SetWebApp

func (k *Keyboard) SetWebApp(i, j int, url string) (err error)

Jump to

Keyboard shortcuts

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