telegram

package
v0.0.0-...-f1447e7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handel

func Handel(r *http.Request)

func NewCallbackData

func NewCallbackData(t CallbackDataType, param ...string) *string

func Run

func Run()

func SendAuth

func SendAuth(nodeID string)

func SendOffline

func SendOffline(nodeID string)

func SendOnline

func SendOnline(nodeID string)

func Webhook

func Webhook(_url string) error

Types

type Auth

type Auth struct{}

func (Auth) Adapter

func (Auth) Adapter() dandelion.Adapters

func (Auth) Handle

func (Auth) Handle(c *dandelion.Context) bool

func (Auth) IsMatch

func (Auth) IsMatch(_ *dandelion.Context) bool

type Callback

type Callback struct{}

func (Callback) Adapter

func (Callback) Adapter() dandelion.Adapters

func (Callback) Handle

func (Callback) Handle(c *dandelion.Context) bool

func (Callback) IsMatch

func (Callback) IsMatch(c *dandelion.Context) bool

type CallbackDataType

type CallbackDataType uint8
const (
	CallbackNone CallbackDataType = iota
	CallbackTypeNodeInfoName
	CallbackTypeNodeInfoDescription
	CallbackTypeNodeInfoAddIP
	CallbackTypeNodeInfoSetIP
	CallbackTypeNodeInfoAuth
	CallbackTypeNodeInfoDeAuth
	CallbackTypeNodeInfoDelete
)

func (CallbackDataType) String

func (c CallbackDataType) String() string

type Command

type Command struct{}

func (Command) Adapter

func (Command) Adapter() dandelion.Adapters

func (Command) Handle

func (Command) Handle(c *dandelion.Context) bool

func (Command) IsMatch

func (Command) IsMatch(c *dandelion.Context) bool

type CommandInfo

type CommandInfo struct{}

type CommandStart

type CommandStart struct{}

type Message

type Message struct{}

func (*Message) Adapter

func (i *Message) Adapter() dandelion.Adapters

func (*Message) Handle

func (i *Message) Handle(c *dandelion.Context) bool

func (*Message) IsMatch

func (i *Message) IsMatch(c *dandelion.Context) bool

Jump to

Keyboard shortcuts

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