fix: send docs without caption (#2660)
* fix: allow to send docs without a caption * fix: typo * fix: async function proper handling
This commit is contained in:
parent
ac0a50082f
commit
981fa822a0
3 changed files with 4 additions and 6 deletions
|
|
@ -171,9 +171,7 @@ exports.LoadUtils = () => {
|
|||
forceGif: options.sendVideoAsGif
|
||||
});
|
||||
|
||||
if (options.caption){
|
||||
attOptions.caption = options.caption;
|
||||
}
|
||||
attOptions.caption = options.caption;
|
||||
content = options.sendMediaAsSticker ? undefined : attOptions.preview;
|
||||
attOptions.isViewOnce = options.isViewOnce;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue