14 lines
339 B
Go
14 lines
339 B
Go
|
package cli
|
||
|
|
||
|
import tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
|
||
|
|
||
|
type Command interface {
|
||
|
GetUsage() string
|
||
|
GetCommand() string
|
||
|
GetDescription() string
|
||
|
ExecuteCommand(*tgbotapi.BotAPI, *tgbotapi.Update) (bool, error)
|
||
|
AllowChatType(*tgbotapi.Chat) bool
|
||
|
AllowMember(*tgbotapi.ChatMember) bool
|
||
|
AllowEveryMember() bool
|
||
|
}
|