Add isGif to message._patch (#963)

* Update Message.js

Add isGif to the message data

* add typings

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
This commit is contained in:
shirser121 2021-12-13 03:57:11 +02:00 • committed by GitHub
commit 46ba9c5e9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,6 +179,12 @@ class Message extends Base {
*/
this.token = data.token ? data.token : undefined;
/**
* Indicates whether the message is a Gif
* @type {boolean}
*/
this.isGif = Boolean(data.isGif);
/** Title */
if (data.title) {
this.title = data.title;