@grammyjs/storage-firestore
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@grammyjs/storage-firestore", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Google Firestore storage adapter for grammY", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -38,3 +38,3 @@ # Google Firestore storage adapter for grammY | ||
// adjust these values: | ||
projectId: "cloudconvert-bot-257814", | ||
projectId: "YOUR_PROJECT_ID", | ||
keyFilename: "firestore-keyfile.json", | ||
@@ -44,7 +44,7 @@ }); | ||
// Create bot and register session middleware | ||
const bot = new Bot<MyContext>("797115886:AAEsOSRAqzpWBpQocm-_VcfT6S_HgRslf_g"); | ||
const bot = new Bot<MyContext>(""); | ||
bot.use( | ||
session({ | ||
initial: () => ({ counter: 0 }), | ||
storage: adapter(db.collection("test-sessions")), | ||
storage: adapter(db.collection("sessions")), | ||
}) | ||
@@ -51,0 +51,0 @@ ); |
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
5036