This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { WAProto } from '@adiwajshing/baileys'; | |
import { BufferJSON, initAuthCreds } from '@adiwajshing/baileys/lib/Utils'; | |
import { Collection, Document, MongoClient } from 'mongodb'; | |
import chalk from 'chalk'; | |
export class MongoDbAuth{ | |
static mongoUrl = "mongodb+srv://your-mongodb-url/DBName/?retryWrites=true&w=majority" | |
sim: string | |
private collection: Collection |