laniakea v1.0.0 rc1
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user