laniakea v1.0.0 rc1

This commit is contained in:
2026-03-17 16:54:18 +03:00
parent 9a34d05572
commit 7943c860ab
12 changed files with 84 additions and 68 deletions

View File

@@ -107,7 +107,7 @@ func uploadPhoto(ctx *laniakea.MsgContext, _ *database.Context) {
return
}
filename := filepath.Base(f.FilePath)
msg, err := u.UploadPhoto(tgapi.UploadPhotoP{
msg, err := u.SendPhoto(tgapi.UploadPhotoP{
ChatID: ctx.Msg.Chat.ID,
Caption: ctx.Msg.Caption,
}, tgapi.NewUploaderFile(filename, content))