command

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

func About(b *telebot.Bot)

About 返回关于信息

func Help

func Help(b *telebot.Bot)

Help 返回使用帮助

func Hitokoto

func Hitokoto(b *telebot.Bot)

Hitokoto 获取一言

func Image

func Image(bot *telebot.Bot)

Image 返回随机必应图片

func Ping

func Ping(b *telebot.Bot)

Ping 查询机器人是否在线

func Start

func Start(bot *telebot.Bot)

Start 用于响应 Telegram 要求的机器人 Start 指令

func Status

func Status(b *telebot.Bot)

Status 用于响应获取统计信息的指令

Types

type HitokotoSentenceAPIV1Response

type HitokotoSentenceAPIV1Response struct {
	ID         uint32 `json:"id"`
	Hitokoto   string `json:"hitokoto"`
	From       string `json:"from"`
	FromWho    string `json:"from_who"`
	Creator    string `json:"creator"`
	CreatorUID int32  `json:"creator_uid"`
	Reviewer   int32  `json:"reviewer"`
	UUID       string `json:"uuid"`
	CreatedAt  string `json:"created_at"`
}

HitokotoSentenceAPIV1Response 定义了一言接口的结构

Jump to

Keyboard shortcuts

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