1
bot/models/bot_command.go

23 lines
638 B
Go
Raw Permalink Normal View History

2022-04-29 17:21:42 +08:00
package models
// BotCommand https://core.telegram.org/bots/api#botcommand
type BotCommand struct {
Command string `json:"command" rules:"min:1,max:32"`
Description string `json:"description" rules:"min:1,max:256"`
2022-04-29 17:21:42 +08:00
}
2023-04-24 14:11:48 +08:00
// BotName https://core.telegram.org/bots/api#botname
type BotName struct {
Name string `json:"name"`
}
// BotDescription https://core.telegram.org/bots/api#botdescription
type BotDescription struct {
Description string `json:"description"`
}
// BotShortDescription https://core.telegram.org/bots/api#botshortdescription
type BotShortDescription struct {
ShortDescription string `json:"short_description"`
}