Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (async function() {
- let tlgMsg = new models.TelegramMessage();
- tlgMsg.first_name = fname;
- tlgMsg.last_name = lname;
- tlgMsg.username = uname;
- tlgMsg.chatId = chatid;
- tlgMsg.date = moment.unix(message.date).toDate();
- tlgMsg.messageObject = message;
- await tlgMsg.save();
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement