2020-04-18 19:00:31 +00:00
|
|
|
package cli
|
|
|
|
|
2020-05-09 18:54:42 +00:00
|
|
|
import (
|
|
|
|
"git.dragon-labs.de/alphyron/group_helper/models"
|
|
|
|
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
|
|
|
|
)
|
2020-04-18 19:00:31 +00:00
|
|
|
|
|
|
|
type Command interface {
|
|
|
|
GetUsage() string
|
|
|
|
GetCommand() string
|
|
|
|
GetDescription() string
|
2020-05-09 18:54:42 +00:00
|
|
|
ExecuteCommand(*tgbotapi.BotAPI, *tgbotapi.Update, *models.Group) (bool, error)
|
2020-04-18 19:00:31 +00:00
|
|
|
AllowChatType(*tgbotapi.Chat) bool
|
|
|
|
AllowMember(*tgbotapi.ChatMember) bool
|
|
|
|
AllowEveryMember() bool
|
|
|
|
}
|