note

package
v0.0.0-...-728e8f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkIndexNotes

func BulkIndexNotes(bot *tgbotapi.BotAPI, notes []*Note)

func BulkSaveNotes

func BulkSaveNotes(notes []*Note) error

BulkSaveNotes inserts the entire array of notes from the user session to the database

func DeleteTag

func DeleteTag(tag string) (int64, error)

Types

type Note

type Note struct {
	ID                primitive.ObjectID `bson:"_id,omitempty"`
	FileID            string             `bson:"fileID,omitempty"`
	Tag               string             `bson:"tag,omitempty"`
	MessageID         int                `bson:"messageID,omitempty"`
	MessageFromChatID int64              `bson:"messageFromChatID,omitempty"`
	Content           string             `bson:"content,omitempty"`
}

Note denotes how a note is saved in the database

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL