@mtkruto/node 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/client/5_client.js
CHANGED
|
@@ -243,7 +243,7 @@ export class Client extends Composer {
|
|
|
243
243
|
};
|
|
244
244
|
const chat_ = "messageReactions" in update ? update.messageReactions.chat : "messageReactionCount" in update ? update.messageReactionCount.chat : "chatMember" in update ? update.chatMember.chat : "joinRequest" in update ? update.joinRequest.chat : "story" in update ? update.story.chat : undefined;
|
|
245
245
|
const chat = chat_ ?? msg?.chat;
|
|
246
|
-
const from =
|
|
246
|
+
const from = "callbackQuery" in update ? update.callbackQuery.from : "inlineQuery" in update ? update.inlineQuery.from : "chatMember" in update ? update.chatMember.from : "messageReactions" in update ? update.messageReactions.user : "preCheckoutQuery" in update ? update.preCheckoutQuery.from : "joinRequest" in update ? update.joinRequest.user : "businessConnection" in update ? update.businessConnection.user : msg?.from ? msg.from : undefined;
|
|
247
247
|
const senderChat = msg?.senderChat;
|
|
248
248
|
const getReplyTo = (quote, chatId, messageId) => {
|
|
249
249
|
if ("story" in update) {
|
package/package.json
CHANGED
|
@@ -247,7 +247,7 @@ class Client extends Composer {
|
|
|
247
247
|
};
|
|
248
248
|
const chat_ = "messageReactions" in update ? update.messageReactions.chat : "messageReactionCount" in update ? update.messageReactionCount.chat : "chatMember" in update ? update.chatMember.chat : "joinRequest" in update ? update.joinRequest.chat : "story" in update ? update.story.chat : undefined;
|
|
249
249
|
const chat = chat_ ?? msg?.chat;
|
|
250
|
-
const from =
|
|
250
|
+
const from = "callbackQuery" in update ? update.callbackQuery.from : "inlineQuery" in update ? update.inlineQuery.from : "chatMember" in update ? update.chatMember.from : "messageReactions" in update ? update.messageReactions.user : "preCheckoutQuery" in update ? update.preCheckoutQuery.from : "joinRequest" in update ? update.joinRequest.user : "businessConnection" in update ? update.businessConnection.user : msg?.from ? msg.from : undefined;
|
|
251
251
|
const senderChat = msg?.senderChat;
|
|
252
252
|
const getReplyTo = (quote, chatId, messageId) => {
|
|
253
253
|
if ("story" in update) {
|