Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
func NewUserServiceStatic ¶
func NewUserServiceStatic(allowedUserIDs []int64, allowedChatIDs []int64, adminIDs []int64) UserService
type UserServiceStatic ¶
type UserServiceStatic struct {
// contains filtered or unexported fields
}
func (UserServiceStatic) IsAdmin ¶
func (us UserServiceStatic) IsAdmin(userID int64) bool
func (UserServiceStatic) IsUsageAllowed ¶ added in v1.0.7
func (us UserServiceStatic) IsUsageAllowed(userID, chatID int64) bool
Click to show internal directories.
Click to hide internal directories.