diff --git a/bot/utils.lua b/bot/utils.lua index 5df34ae1..7ac5f8a4 100644 --- a/bot/utils.lua +++ b/bot/utils.lua @@ -239,7 +239,7 @@ function _send_photo(receiver, file_path, cb_function, cb_extra) cb_extra = cb_extra } -- Call to remove with optional callback - send_photo(receiver, file_path, rmtmp_cb, cb_extra) + send_photo(receiver, file_path, cb_function, cb_extra) end -- Download the image and send to receiver, it will be deleted. @@ -525,4 +525,4 @@ function unescape_html(str) return var end) return new -end \ No newline at end of file +end