Skip to content

Commit f91470d

Browse files
committed
2.1.0
1 parent e578593 commit f91470d

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

docs/LocalSession.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h4 class="name" id="LocalSession"><span class="type-signature"></span>new Local
8383

8484
<dt class="tag-source">Source:</dt>
8585
<dd class="tag-source"><ul class="dummy"><li>
86-
<a href="session.js.html">session.js</a>, <a href="session.js.html#line28">line 28</a>
86+
<a href="session.js.html">session.js</a>, <a href="session.js.html#line27">line 27</a>
8787
</li></ul></dd>
8888

8989

@@ -1473,7 +1473,7 @@ <h5>Returns:</h5>
14731473
<br class="clear">
14741474

14751475
<footer>
1476-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1476+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
14771477
</footer>
14781478

14791479
<script>prettyPrint();</script>

docs/global.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ <h4 class="name" id="LocalSession.storageMemory"><span class="type-signature">(r
399399
<br class="clear">
400400

401401
<footer>
402-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
402+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
403403
</footer>
404404

405405
<script>prettyPrint();</script>

docs/index.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ <h2>🚀 Installation</h2>
9797
</code></pre>
9898
<h3><a href="http://realspeaker.github.io/telegraf-session-local/">Documentation &amp; API</a></h3>
9999
<h2>👀 Quick-start example</h2>
100-
<pre class="prettyprint source lang-js"><code>const
101-
Telegraf = require('telegraf'),
102-
LocalSession = require('telegraf-session-local')
100+
<pre class="prettyprint source lang-js"><code>const {Telegraf} = require('telegraf')
101+
const LocalSession = require('telegraf-session-local')
103102

104103
const bot = new Telegraf(process.env.BOT_TOKEN) // Your Bot token here
105104

@@ -122,12 +121,11 @@ <h2>👀 Quick-start example</h2>
122121
ctx.session = null
123122
})
124123

125-
bot.startPolling()
124+
bot.launch()
126125
</code></pre>
127126
<h2>💡 Full example</h2>
128-
<pre class="prettyprint source lang-js"><code>const
129-
Telegraf = require('telegraf'),
130-
LocalSession = require('telegraf-session-local')
127+
<pre class="prettyprint source lang-js"><code>const {Telegraf} = require('telegraf')
128+
const LocalSession = require('telegraf-session-local')
131129

132130
const bot = new Telegraf(process.env.BOT_TOKEN) // Your Bot token here
133131

@@ -183,7 +181,7 @@ <h2>💡 Full example</h2>
183181
ctx[property] = null
184182
})
185183

186-
bot.startPolling()
184+
bot.launch()
187185
</code></pre>
188186
<h4>Another examples located in <code>/examples</code> folder (PRs welcome)</h4>
189187
<p>Also, you may read comments in <a href="https://github.com/RealSpeaker/telegraf-session-local/blob/master/lib/session.js">/lib/session.js</a></p>
@@ -203,7 +201,7 @@ <h1></h1>
203201
<br class="clear">
204202

205203
<footer>
206-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
204+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
207205
</footer>
208206

209207
<script>prettyPrint();</script>

docs/module-telegraf-session-local.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ <h3 class="subsection-title">Requires</h3>
206206
<br class="clear">
207207

208208
<footer>
209-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
209+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
210210
</footer>
211211

212212
<script>prettyPrint();</script>

docs/session.js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h1 class="page-title">session.js</h1>
8888
getSessionKey: (ctx) => {
8989
if (!ctx.from) return // should never happen
9090

91-
let chatInstance = ctx.from.id
91+
let chatInstance
9292
if (ctx.chat) {
9393
chatInstance = ctx.chat.id
9494
} else if (ctx.updateType === 'callback_query') {
@@ -354,7 +354,7 @@ <h1 class="page-title">session.js</h1>
354354
<br class="clear">
355355

356356
<footer>
357-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.4</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
357+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
358358
</footer>
359359

360360
<script>prettyPrint();</script>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "telegraf-session-local",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "Telegraf local sessions middleware with multiple supported storage types (Memory/FileSync/FileAsync/...) using lowdb",
55
"main": "lib/session.js",
66
"repository": {

0 commit comments

Comments
 (0)