Documentation ¶
Index ¶
- func Close()
- func Connect()
- func GetMaxMsgIDInChat(chatID int64) (int64, error)
- func GetMessageByMessageID(m *entity.Message, MessageID, ChatID int64) error
- func GetTGPhotoByFileID(fileID int32) (*entity.Photo, error)
- func GetTGVideoByFileID(fileID int32) (*entity.Video, error)
- func IfFileExists(f *tdlib.File) (bool, error)
- func InsertChat(c *entity.Chat) error
- func InsertMessage(m *entity.Message) error
- func InsertTGPhoto(p *entity.Photo) error
- func InsertTGVideo(v *entity.Video) error
- func UpdateMessageUploadStatus(m *entity.Message, uploaded bool) error
- func UpdateTGPhoto(f *tdlib.File, path string) error
- func UpdateTGVideo(f *tdlib.File, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMaxMsgIDInChat ¶
GetMaxMsgIDInChat get max message id in chat
func GetMessageByMessageID ¶
GetMessageByMessageID get message by message id and chat id
func GetTGPhotoByFileID ¶
GetTGPhotoByFileID get file ID by file id
func GetTGVideoByFileID ¶
GetTGVideoByFileID get file ID by file id
func IfFileExists ¶
IfFileExists check if file exists in db
func InsertMessage ¶
InsertMessage insert new message to db
func UpdateMessageUploadStatus ¶
UpdateMessageUploadStatus update message upload status
func UpdateTGPhoto ¶
UpdateTGPhoto update TG photo
func UpdateTGVideo ¶
UpdateTGVideo update TG video
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.