Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoReply ¶
type AutoReply struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Text string `bson:"text" json:"text"` Answer string `bson:"answer" json:"answer"` Active bool `bson:"active" json:"active"` ChatIDs []int `bson:"chat_ids" json:"chat_ids"` IdenticalText string `bson:"indentical_text,omitempty" json:"indentical_text"` Data map[string]interface{} `bson:"data" json:"data"` UserID int `bson:"user_id" json:"user_id"` Username string `bson:"username,omitempty" json:"username"` UpdatedAt *carbon.Carbon `bson:"updated_at,omitempty" json:"updated_at"` CreatedAt *carbon.Carbon `bson:"created_at,omitempty" json:"created_at"` DeletedAt *carbon.Carbon `bson:"deleted_at,omitempty" json:"deleted_at"` }
func NewAutoReply ¶
type BroadcastChat ¶
type BroadcastChat struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Type string `bson:"type" json:"type"` ChatID int `bson:"chat_id" json:"chat_id"` UserID int `bson:"user_id" json:"user_id"` Username string `bson:"username" json:"username"` Active bool `bson:"active" json:"active"` UpdatedAt *carbon.Carbon `bson:"updated_at,omitempty" json:"updated_at"` CreatedAt *carbon.Carbon `bson:"created_at,omitempty" json:"created_at"` }
func NewLeaveBroadcastChat ¶
func NewLeaveBroadcastChat(chatID int, userID int, username string, activeStatus bool) BroadcastChat
type CallbackData ¶
type CallbackData struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Data map[string]interface{} `bson:"data" json:"data"` State string `bson:"state" json:"state"` PendingAt *carbon.Carbon `bson:"pending_at,omitempty" json:"pending_at"` FinishedAt *carbon.Carbon `bson:"finished_at,omitempty" json:"finished_at"` UpdatedAt *carbon.Carbon `bson:"updated_at,omitempty" json:"updated_at"` CreatedAt *carbon.Carbon `bson:"created_at,omitempty" json:"created_at"` }
func NewCallbackData ¶
func NewCallbackData() CallbackData
type Leave ¶
type Leave struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Type string `bson:"type" json:"type"` Start *carbon.Carbon `bson:"start" json:"start"` End *carbon.Carbon `bson:"end" json:"end"` Note string `bson:"note" json:"note"` UserID int `bson:"user_id" json:"user_id"` Username string `bson:"username" json:"username"` UpdatedAt *carbon.Carbon `bson:"updated_at,omitempty" json:"updated_at"` CreatedAt *carbon.Carbon `bson:"created_at,omitempty" json:"created_at"` DeletedAt *carbon.Carbon `bson:"deleted_at,omitempty" json:"deleted_at"` }
type Message ¶
type Message struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` ChatID int `bson:"chat_id" json:"chat_id"` UserID int `bson:"user_id" json:"user_id"` Username string `bson:"username" json:"username"` FirstName string `bson:"first_name" json:"first_name"` LastName string `bson:"last_name" json:"last_name"` MessageID int `bson:"message_id" json:"message_id"` ReplyMessageID int `bson:"reply_message_id" json:"reply_message_id"` Content string `bson:"content" json:"content"` Files []string `bson:"files" json:"files"` UpdatedAt *carbon.Carbon `bson:"updated_at,omitempty" json:"updated_at"` CreatedAt *carbon.Carbon `bson:"created_at,omitempty" json:"created_at"` }
func NewMessage ¶
func NewMessage() Message
func (Message) IsMentionBot ¶
type Reminder ¶
type Reminder struct { ID bson.ObjectId `bson:"_id,omitempty" json:"id"` Title string `bson:"title" json:"title"` Content string `bson:"content" json:"content"` Active bool `bson:"active" json:"active"` Data map[string]interface{} `bson:"data" json:"data"` Schedule string `bson:"schedule" json:"schedule"` ChatID int `bson:"chat_id" json:"chat_id"` UserID int `bson:"user_id" json:"user_id"` Username string `bson:"username" json:"username"` UpdatedAt *carbon.Carbon `bson:"updated_at,omitempty" json:"updated_at"` CreatedAt *carbon.Carbon `bson:"created_at,omitempty" json:"created_at"` }
func NewReminder ¶
Click to show internal directories.
Click to hide internal directories.