Comparing version 1.1.9-rc.3 to 1.1.9-rc.4
{ | ||
"name": "puregram", | ||
"version": "1.1.9-rc.3", | ||
"version": "1.1.9-rc.4", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -47,2 +47,3 @@ # puregram | ||
* [Get My ID](https://t.me/receive_my_id_bot) - bot from [example (get-id-bot.js)](https://github.com/nitreojs/puregram/blob/master/docs/examples/get-id-bot.js) | ||
* [Brawl Stars](https://t.me/BrawlStarsInlineBot) - bot to get user's or club's statistics in Brawl Stars | ||
@@ -49,0 +50,0 @@ If you want to see your bot here — PM [me](https://t.me/nitrojs) _(I will add up to 10 bots here)_ |
@@ -36,3 +36,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -424,3 +424,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -427,0 +427,0 @@ chatId: this.chatId, |
@@ -5,3 +5,4 @@ import Params from '../../typings/params'; | ||
import MessageContext from './message'; | ||
import ReplyMessageContext from './reply-message'; | ||
import ReplyMessage from '../structures/reply-message'; | ||
import ForwardMessage from '../structures/forward-message'; | ||
import Context from './context'; | ||
@@ -22,3 +23,3 @@ | ||
public date?: number; | ||
public createdAt?: number; | ||
@@ -31,18 +32,42 @@ public chat?: Interfaces.IChat; | ||
public forward?: ForwardMessage; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.from` instead | ||
*/ | ||
public forwardFrom?: Interfaces.IUser; | ||
public forwardFromChat?: Interfaces.IUser; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.chat` instead | ||
*/ | ||
public forwardFromChat?: Interfaces.IChat; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.messageId` instead | ||
*/ | ||
public forwardFromMessageId?: number; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.signature` instead | ||
*/ | ||
public forwardSignature?: string; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.senderName` instead | ||
*/ | ||
public forwardSenderName?: string; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.createdAt` instead | ||
*/ | ||
public forwardDate?: number; | ||
public isForward: boolean; | ||
public replyMessage?: ReplyMessage; | ||
public replyMessage?: ReplyMessageContext; | ||
public editDate?: number; | ||
@@ -164,3 +189,3 @@ | ||
public hasForward: boolean; | ||
public isForward: boolean; | ||
@@ -167,0 +192,0 @@ public isPM: boolean; |
@@ -5,4 +5,4 @@ let { inspect } = require('util'); | ||
let MessageContext = require('./message'); | ||
let ReplyMessageContext = require('./reply-message'); | ||
let ReplyMessage = require('../structures/reply-message'); | ||
let AnimationAttachment = require('../structures/animation'); | ||
@@ -28,2 +28,3 @@ let AudioAttachment = require('../structures/audio'); | ||
let EVENTS = require('../structures/events'); | ||
let ForwardMessage = require('../structures/forward-message'); | ||
@@ -59,3 +60,3 @@ let { filterPayload } = require('../utils'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -78,8 +79,14 @@ } | ||
get forward() { | ||
if (this.update.forward_date) return new ForwardMessage(this.update); | ||
return null; | ||
} | ||
get forwardFrom() { | ||
let { forward_from } = this.update; | ||
let { forward_from: forwardFrom } = this.update; | ||
if (!forward_from) return null; | ||
if (!forwardFrom) return null; | ||
return new User(forward_from); | ||
return new User(forwardFrom); | ||
} | ||
@@ -111,6 +118,2 @@ | ||
get isForward() { | ||
return this.forwardFrom !== null; | ||
} | ||
get replyMessage() { | ||
@@ -121,3 +124,3 @@ let { reply_to_message: replyMessage } = this.update; | ||
return new ReplyMessageContext(replyMessage); | ||
return new ReplyMessage(replyMessage); | ||
} | ||
@@ -371,4 +374,4 @@ | ||
get hasForward() { | ||
return this.forwardFrom !== null; | ||
get isForward() { | ||
return this.forward !== null; | ||
} | ||
@@ -731,12 +734,7 @@ | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
chatId: this.chatId, | ||
chatType: this.chatType, | ||
forwardFrom: this.forwardFrom, | ||
forwardFromChat: this.forwardFromChat, | ||
forwardFromMessageId: this.forwardFromMessageId, | ||
forwardSignature: this.forwardSignature, | ||
forwardSenderName: this.forwardSenderName, | ||
forwardDate: this.forwardDate, | ||
forward: this.forward, | ||
replyMessage: this.replyMessage, | ||
@@ -743,0 +741,0 @@ editDate: this.editDate, |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -422,3 +422,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -425,0 +425,0 @@ chatId: this.chatId, |
@@ -5,3 +5,5 @@ import Params from '../../typings/params'; | ||
import ReplyMessageContext from './reply-message'; | ||
import ReplyMessage from '../structures/reply-message'; | ||
import ForwardMessage from '../structures/forward-message'; | ||
import MessageContext from './message'; | ||
@@ -27,18 +29,42 @@ import Context from './context'; | ||
public forward?: ForwardMessage; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.from` instead | ||
*/ | ||
public forwardFrom?: Interfaces.IUser; | ||
public forwardFromChat?: Interfaces.IUser; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.chat` instead | ||
*/ | ||
public forwardFromChat?: Interfaces.IChat; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.messageId` instead | ||
*/ | ||
public forwardFromMessageId?: number; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.signature` instead | ||
*/ | ||
public forwardSignature?: string; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.senderName` instead | ||
*/ | ||
public forwardSenderName?: string; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.createdAt` instead | ||
*/ | ||
public forwardDate?: number; | ||
public isForward: boolean; | ||
public replyMessage?: ReplyMessage; | ||
public replyMessage?: ReplyMessageContext; | ||
public editDate?: number; | ||
@@ -160,3 +186,3 @@ | ||
public hasForward: boolean; | ||
public isForward: boolean; | ||
@@ -163,0 +189,0 @@ public isPM: boolean; |
@@ -5,4 +5,4 @@ let { inspect } = require('util'); | ||
let MessageContext = require('./message'); | ||
let ReplyMessageContext = require('./reply-message'); | ||
let ReplyMessage = require('../structures/reply-message'); | ||
let AnimationAttachment = require('../structures/animation'); | ||
@@ -28,2 +28,3 @@ let AudioAttachment = require('../structures/audio'); | ||
let EVENTS = require('../structures/events'); | ||
let ForwardMessage = require('../structures/forward-message'); | ||
@@ -59,3 +60,3 @@ let { filterPayload } = require('../utils'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -78,8 +79,14 @@ } | ||
get forward() { | ||
if (this.update.forward_date) return new ForwardMessage(this.update); | ||
return null; | ||
} | ||
get forwardFrom() { | ||
let { forward_from } = this.update; | ||
let { forward_from: forwardFrom } = this.update; | ||
if (!forward_from) return null; | ||
if (!forwardFrom) return null; | ||
return new User(forward_from); | ||
return new User(forwardFrom); | ||
} | ||
@@ -111,6 +118,2 @@ | ||
get isForward() { | ||
return this.forwardFrom !== null; | ||
} | ||
get replyMessage() { | ||
@@ -121,3 +124,3 @@ let { reply_to_message: replyMessage } = this.update; | ||
return new ReplyMessageContext(replyMessage); | ||
return new ReplyMessage(replyMessage); | ||
} | ||
@@ -371,4 +374,4 @@ | ||
get hasForward() { | ||
return this.forwardFrom !== null; | ||
get isForward() { | ||
return this.forward !== null; | ||
} | ||
@@ -729,14 +732,9 @@ | ||
id: this.id, | ||
from: filterPayload(this.from), | ||
from: this.from, | ||
senderId: this.senderId, | ||
date: this.date, | ||
chat: filterPayload(this.chat), | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
chatId: this.chatId, | ||
chatType: this.chatType, | ||
forwardFrom: this.forwardFrom, | ||
forwardFromChat: this.forwardFromChat, | ||
forwardFromMessageId: this.forwardFromMessageId, | ||
forwardSignature: this.forwardSignature, | ||
forwardSenderName: this.forwardSenderName, | ||
forwardDate: this.forwardDate, | ||
forward: this.forward, | ||
replyMessage: this.replyMessage, | ||
@@ -743,0 +741,0 @@ editDate: this.editDate, |
@@ -5,3 +5,5 @@ import Params from '../../typings/params'; | ||
import ReplyMessageContext from './reply-message'; | ||
import ReplyMessage from '../structures/reply-message'; | ||
import ForwardMessage from '../structures/forward-message'; | ||
import MessageContext from './message'; | ||
@@ -27,18 +29,42 @@ import Context from './context'; | ||
public forward?: ForwardMessage; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.from` instead | ||
*/ | ||
public forwardFrom?: Interfaces.IUser; | ||
public forwardFromChat?: Interfaces.IUser; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.chat` instead | ||
*/ | ||
public forwardFromChat?: Interfaces.IChat; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.messageId` instead | ||
*/ | ||
public forwardFromMessageId?: number; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.signature` instead | ||
*/ | ||
public forwardSignature?: string; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.senderName` instead | ||
*/ | ||
public forwardSenderName?: string; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.createdAt` instead | ||
*/ | ||
public forwardDate?: number; | ||
public isForward: boolean; | ||
public replyMessage?: ReplyMessage; | ||
public replyMessage?: ReplyMessageContext; | ||
public editDate?: number; | ||
@@ -160,3 +186,3 @@ | ||
public hasForward: boolean; | ||
public isForward: boolean; | ||
@@ -163,0 +189,0 @@ public isPM: boolean; |
@@ -5,3 +5,3 @@ let { inspect } = require('util'); | ||
let MessageContext = require('./message'); | ||
let ReplyMessageContext = require('./reply-message'); | ||
let ReplyMessage = require('../structures/reply-message'); | ||
@@ -28,2 +28,3 @@ let AnimationAttachment = require('../structures/animation'); | ||
let EVENTS = require('../structures/events'); | ||
let ForwardMessage = require('../structures/forward-message'); | ||
@@ -59,3 +60,3 @@ let { filterPayload } = require('../utils'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -78,8 +79,14 @@ } | ||
get forward() { | ||
if (this.update.forward_date) return new ForwardMessage(this.update); | ||
return null; | ||
} | ||
get forwardFrom() { | ||
let { forward_from } = this.update; | ||
let { forward_from: forwardFrom } = this.update; | ||
if (!forward_from) return null; | ||
if (!forwardFrom) return null; | ||
return new User(forward_from); | ||
return new User(forwardFrom); | ||
} | ||
@@ -111,6 +118,2 @@ | ||
get isForward() { | ||
return this.forwardFrom !== null; | ||
} | ||
get replyMessage() { | ||
@@ -121,3 +124,3 @@ let { reply_to_message: replyMessage } = this.update; | ||
return new ReplyMessageContext(replyMessage); | ||
return new ReplyMessage(replyMessage); | ||
} | ||
@@ -371,4 +374,4 @@ | ||
get hasForward() { | ||
return this.forwardFrom !== null; | ||
get isForward() { | ||
return this.forward !== null; | ||
} | ||
@@ -729,14 +732,9 @@ | ||
id: this.id, | ||
from: filterPayload(this.from), | ||
from: this.from, | ||
senderId: this.senderId, | ||
date: this.date, | ||
chat: filterPayload(this.chat), | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
chatId: this.chatId, | ||
chatType: this.chatType, | ||
forwardFrom: this.forwardFrom, | ||
forwardFromChat: this.forwardFromChat, | ||
forwardFromMessageId: this.forwardFromMessageId, | ||
forwardSignature: this.forwardSignature, | ||
forwardSenderName: this.forwardSenderName, | ||
forwardDate: this.forwardDate, | ||
forward: this.forward, | ||
replyMessage: this.replyMessage, | ||
@@ -743,0 +741,0 @@ editDate: this.editDate, |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -422,3 +422,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -425,0 +425,0 @@ chatId: this.chatId, |
@@ -36,3 +36,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -424,3 +424,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -427,0 +427,0 @@ chatId: this.chatId, |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -405,3 +405,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -408,0 +408,0 @@ chatId: this.chatId, |
@@ -6,2 +6,3 @@ import Params from '../../typings/params'; | ||
import Context from './context'; | ||
import ForwardMessage from '../structures/forward-message'; | ||
@@ -51,3 +52,3 @@ type Attachment = | ||
*/ | ||
public date: number; | ||
public createdAt: number; | ||
@@ -70,2 +71,10 @@ /** | ||
/** | ||
* Information about forwarded message | ||
*/ | ||
public forward?: ForwardMessage; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.from` instead | ||
* | ||
* For forwarded messages, sender of the original message | ||
@@ -76,7 +85,13 @@ */ | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.chat` instead | ||
* | ||
* For messages forwarded from channels, information about the original channel | ||
*/ | ||
public forwardFromChat?: Interfaces.IUser; | ||
public forwardFromChat?: Interfaces.IChat; | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.messageId` instead | ||
* | ||
* For messages forwarded from channels, identifier of the original message in the channel | ||
@@ -87,2 +102,5 @@ */ | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.signature` instead | ||
* | ||
* For messages forwarded from channels, signature of the post author if present | ||
@@ -93,2 +111,5 @@ */ | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.senderName` instead | ||
* | ||
* Sender's name for messages forwarded from users | ||
@@ -100,2 +121,5 @@ * who disallow adding a link to their account in forwarded messages | ||
/** | ||
* DEPRECATED, will be removed in v2. | ||
* Use `context.forward.createdAt` instead | ||
* | ||
* For forwarded messages, date the original message was sent in Unix time | ||
@@ -106,7 +130,2 @@ */ | ||
/** | ||
* Is message a forwarded one? | ||
*/ | ||
public isForward: boolean; | ||
/** | ||
* For replies, the original message. | ||
@@ -262,3 +281,3 @@ * Note that the Message object in this field will not contain further | ||
public getAttachments(type: 'photo'): Interfaces.PhotoAttachment; | ||
public getAttachments(type: 'photo'): Array<Interfaces.PhotoAttachment>; | ||
@@ -404,3 +423,3 @@ public getAttachments(type: 'sticker'): Array<Interfaces.ISticker>; | ||
*/ | ||
public hasForward: boolean; | ||
public isForward: boolean; | ||
@@ -407,0 +426,0 @@ /** |
let { inspect } = require('util'); | ||
let Context = require('./context'); | ||
let ReplyMessageContext = require('./reply-message'); | ||
let ReplyMessage = require('../structures/reply-message'); | ||
@@ -28,2 +28,3 @@ let AnimationAttachment = require('../structures/animation'); | ||
let EVENTS = require('../structures/events'); | ||
let ForwardMessage = require('../structures/forward-message'); | ||
@@ -69,3 +70,3 @@ let { filterPayload } = require('../utils'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -88,8 +89,30 @@ } | ||
get isPM() { | ||
return this.chatType === 'private'; | ||
} | ||
get isGroup() { | ||
return this.chatType === 'group'; | ||
} | ||
get isChannel() { | ||
return this.chatType === 'channel'; | ||
} | ||
get isSupergroup() { | ||
return this.chatType === 'supergroup'; | ||
} | ||
get forward() { | ||
if (this.update.forward_date) return new ForwardMessage(this.update); | ||
return null; | ||
} | ||
get forwardFrom() { | ||
let { forward_from } = this.update; | ||
let { forward_from: forwardFrom } = this.update; | ||
if (!forward_from) return null; | ||
if (!forwardFrom) return null; | ||
return new User(forward_from); | ||
return new User(forwardFrom); | ||
} | ||
@@ -121,6 +144,2 @@ | ||
get isForward() { | ||
return this.forwardFrom !== null; | ||
} | ||
get replyMessage() { | ||
@@ -131,3 +150,3 @@ let { reply_to_message: replyMessage } = this.update; | ||
return new ReplyMessageContext(replyMessage); | ||
return new ReplyMessage(replyMessage); | ||
} | ||
@@ -405,22 +424,6 @@ | ||
get hasForward() { | ||
return this.forwardFrom !== null; | ||
get isForward() { | ||
return this.forward !== null; | ||
} | ||
get isPM() { | ||
return this.chatType === 'private'; | ||
} | ||
get isGroup() { | ||
return this.chatType === 'group'; | ||
} | ||
get isChannel() { | ||
return this.chatType === 'channel'; | ||
} | ||
get isSupergroup() { | ||
return this.chatType === 'supergroup'; | ||
} | ||
async send(text = '', params = {}) { | ||
@@ -775,13 +778,7 @@ let response = await this.telegram.api.sendMessage({ | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
chatId: this.chatId, | ||
chatType: this.chatType, | ||
forwardFrom: this.forwardFrom, | ||
forwardFromChat: this.forwardFromChat, | ||
forwardFromMessageId: this.forwardFromMessageId, | ||
forwardSignature: this.forwardSignature, | ||
forwardSenderName: this.forwardSenderName, | ||
forwardDate: this.forwardDate, | ||
isForward: this.isForward, | ||
forward: this.forward, | ||
replyMessage: this.replyMessage, | ||
@@ -788,0 +785,0 @@ editDate: this.editDate, |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -423,3 +423,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -426,0 +426,0 @@ chatId: this.chatId, |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -311,9 +311,2 @@ } | ||
replyWithContact(poll, params = {}) { | ||
return this.sendPoll(poll, { | ||
reply_to_message_id: this.id, | ||
...params, | ||
}); | ||
} | ||
sendChatAction(action, params = {}) { | ||
@@ -430,3 +423,3 @@ return this.telegram.api.sendChatAction({ | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -433,0 +426,0 @@ chatId: this.chatId, |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -424,3 +424,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -427,0 +427,0 @@ chatId: this.chatId, |
@@ -36,3 +36,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -428,3 +428,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -431,0 +431,0 @@ chatId: this.chatId, |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -422,3 +422,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -425,0 +425,0 @@ chatId: this.chatId, |
@@ -35,3 +35,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -426,3 +426,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -429,0 +429,0 @@ chatId: this.chatId, |
@@ -19,3 +19,3 @@ import Params from '../../typings/params'; | ||
public date?: number; | ||
public createdAt?: number; | ||
@@ -22,0 +22,0 @@ public chat?: Interfaces.IChat; |
@@ -35,3 +35,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -406,3 +406,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -409,0 +409,0 @@ chatId: this.chatId, |
@@ -19,3 +19,3 @@ import Params from '../../typings/params'; | ||
public date?: number; | ||
public createdAt?: number; | ||
@@ -22,0 +22,0 @@ public chat?: Interfaces.IChat; |
@@ -34,3 +34,3 @@ let { inspect } = require('util'); | ||
get date() { | ||
get createdAt() { | ||
return this.update.date || null; | ||
@@ -422,3 +422,3 @@ } | ||
senderId: this.senderId, | ||
date: this.date, | ||
createdAt: this.createdAt, | ||
chat: this.chat, | ||
@@ -425,0 +425,0 @@ chatId: this.chatId, |
@@ -12,2 +12,6 @@ let { inspect } = require('util'); | ||
get fileUniqueId() { | ||
return this.payload.file_unique_id; | ||
} | ||
get width() { | ||
@@ -34,2 +38,3 @@ return this.payload.width; | ||
fileId: this.fileId, | ||
fileUniqueId: this.fileUniqueId, | ||
width: this.width, | ||
@@ -36,0 +41,0 @@ height: this.height, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
780443
114
23539
58