Documentation ¶
Index ¶
- Constants
- func AppendRequest(c int64, u int64) (result *mongo.UpdateResult, err error)
- func DelChat(c *Chat) error
- func GetChat(c *Chat, id int64) error
- func GetUserLocale(r tele.Recipient) string
- func IsManager(id int64) bool
- func NewUser(user *tele.User, role string, state string) error
- func RemoveRequest(c int64, u int64) (result *mongo.UpdateResult, err error)
- func SetUserLocale(user *tele.User, locale string) error
- type Chat
- type User
Constants ¶
View Source
const CHAT = "CHAT_"
View Source
const USER = "USER_"
Variables ¶
This section is empty.
Functions ¶
func AppendRequest ¶
func AppendRequest(c int64, u int64) (result *mongo.UpdateResult, err error)
func GetUserLocale ¶
func RemoveRequest ¶
func RemoveRequest(c int64, u int64) (result *mongo.UpdateResult, err error)
Types ¶
type Chat ¶
type Chat struct { db.DateFields `bson:",inline"` ID string `json:"id" bson:"_id,omitempty"` Owner string `json:"owner" bson:"owner"` Requests []int64 `json:"requests" bson:"requests"` }
Click to show internal directories.
Click to hide internal directories.