botsgocore

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 0 Imported by: 0

README

Package github.com/bots-go-framework/bots-go-core

Types and interfaces referenced in bot API clients (like bots-api-telegram) & Bots FW

keyboard.go

package botsgocore

type KeyboardType int

type Keyboard interface {
	KeyboardType() KeyboardType
}

Keyboard types
  • KeyboardTypeNone
  • KeyboardTypeReply
  • KeyboardTypeInline
  • KeyboardTypeBottom
  • KeyboardTypeForceReply

Bot API clients that use this Go module

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyboard

type Keyboard interface {
	// KeyboardType defines keyboard type
	KeyboardType() KeyboardType
}

Keyboard defines keyboard

type KeyboardType

type KeyboardType int

KeyboardType defines keyboard type

const (
	// KeyboardTypeNone for no keyboard
	// Used by: Telegram
	KeyboardTypeNone KeyboardType = iota

	// KeyboardTypeHide commands to hide keyboard
	// Used by: Telegram
	KeyboardTypeHide

	// KeyboardTypeInline for inline keyboard
	// Used by: Telegram
	KeyboardTypeInline

	// KeyboardTypeBottom for bottom keyboard
	// Used by: Telegram
	KeyboardTypeBottom

	// KeyboardTypeForceReply to force reply from a user
	// Used by: Telegram
	KeyboardTypeForceReply
)

Jump to

Keyboard shortcuts

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