callback

package
v0.0.0-...-87e7b27 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackQueryHandler

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

func NewCallbackQueryHandler

func NewCallbackQueryHandler(service ServiceCapabilities) *CallbackQueryHandler

func (*CallbackQueryHandler) Detail

func (n *CallbackQueryHandler) Detail(update tgbotapi.Update)

func (*CallbackQueryHandler) Insert

func (c *CallbackQueryHandler) Insert(update tgbotapi.Update)

func (*CallbackQueryHandler) List

func (i *CallbackQueryHandler) List(update tgbotapi.Update)

type ServiceDetailCallbackCapabilities

type ServiceDetailCallbackCapabilities interface {
	ReturnToList(chatID int64, mailboxID int, messageID int) error
	DeleteMailbox(chatID int64, mailboxID int64, messageID int) error
}

type ServiceInsertCallbackCapabilities

type ServiceInsertCallbackCapabilities interface {
	SubmitCallback(chatID int64, messageID int, text string) error
	CorrectHostCallback(chatID int64, messageID int, text string) error
	CorrectPortCallback(chatID int64, messageID int, text string) error
	CorrectMailboxCallback(chatID int64, messageID int, text string) error
	CorrectUsernameCallback(chatID int64, messageID int, text string) error
	CorrectPasswordCallback(chatID int64, messageID int, text string) error
}

type ServiceListCallbackCapabilities

type ServiceListCallbackCapabilities interface {
	MailboxDetail(chatID int64, mailboxID int64, messageID int) error
	DeleteMailbox(chatID int64, mailboxID int64, messageID int) error
}

Jump to

Keyboard shortcuts

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