feat: send Media HD (#3535)
* Changing the quality of media downloads * return function result * add option sendImageAsHd * change example * fix quotes * chore: remove unused code --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
c142c3bf93
commit
0ffb66fdb1
4 changed files with 25 additions and 9 deletions
|
|
@ -840,6 +840,7 @@ class Client extends EventEmitter {
|
|||
* @property {boolean} [sendVideoAsGif=false] - Send video as gif
|
||||
* @property {boolean} [sendMediaAsSticker=false] - Send media as a sticker
|
||||
* @property {boolean} [sendMediaAsDocument=false] - Send media as a document
|
||||
* @property {boolean} [sendMediaAsHd=false] - Send image as quality HD
|
||||
* @property {boolean} [isViewOnce=false] - Send photo/video as a view once message
|
||||
* @property {boolean} [parseVCards=true] - Automatically parse vCards and send them as contacts
|
||||
* @property {string} [caption] - Image or video caption
|
||||
|
|
@ -894,6 +895,7 @@ class Client extends EventEmitter {
|
|||
sendVideoAsGif: options.sendVideoAsGif,
|
||||
sendMediaAsSticker: options.sendMediaAsSticker,
|
||||
sendMediaAsDocument: options.sendMediaAsDocument,
|
||||
sendMediaAsHd: options.sendMediaAsHd,
|
||||
caption: options.caption,
|
||||
quotedMessageId: options.quotedMessageId,
|
||||
parseVCards: options.parseVCards !== false,
|
||||
|
|
@ -2145,7 +2147,7 @@ class Client extends EventEmitter {
|
|||
return false;
|
||||
}, chatId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Save new contact to user's addressbook or edit the existing one
|
||||
* @param {string} phoneNumber The contact's phone number in a format "17182222222", where "1" is a country code
|
||||
|
|
|
|||
Loading…
Reference in a new issue