Skip to content

Commit

Permalink
2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TemaSM committed Feb 6, 2021
1 parent e578593 commit f91470d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/LocalSession.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h4 class="name" id="LocalSession"><span class="type-signature"></span>new Local

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


Expand Down Expand Up @@ -1473,7 +1473,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
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.
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.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ <h4 class="name" id="LocalSession.storageMemory"><span class="type-signature">(r
<br class="clear">

<footer>
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.
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.
</footer>

<script>prettyPrint();</script>
Expand Down
16 changes: 7 additions & 9 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ <h2>🚀 Installation</h2>
</code></pre>
<h3><a href="http://realspeaker.github.io/telegraf-session-local/">Documentation &amp; API</a></h3>
<h2>👀 Quick-start example</h2>
<pre class="prettyprint source lang-js"><code>const
Telegraf = require('telegraf'),
LocalSession = require('telegraf-session-local')
<pre class="prettyprint source lang-js"><code>const {Telegraf} = require('telegraf')
const LocalSession = require('telegraf-session-local')

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

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

bot.startPolling()
bot.launch()
</code></pre>
<h2>💡 Full example</h2>
<pre class="prettyprint source lang-js"><code>const
Telegraf = require('telegraf'),
LocalSession = require('telegraf-session-local')
<pre class="prettyprint source lang-js"><code>const {Telegraf} = require('telegraf')
const LocalSession = require('telegraf-session-local')

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

Expand Down Expand Up @@ -183,7 +181,7 @@ <h2>💡 Full example</h2>
ctx[property] = null
})

bot.startPolling()
bot.launch()
</code></pre>
<h4>Another examples located in <code>/examples</code> folder (PRs welcome)</h4>
<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>
Expand All @@ -203,7 +201,7 @@ <h1></h1>
<br class="clear">

<footer>
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.
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.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/module-telegraf-session-local.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h3 class="subsection-title">Requires</h3>
<br class="clear">

<footer>
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.
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.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/session.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h1 class="page-title">session.js</h1>
getSessionKey: (ctx) => {
if (!ctx.from) return // should never happen

let chatInstance = ctx.from.id
let chatInstance
if (ctx.chat) {
chatInstance = ctx.chat.id
} else if (ctx.updateType === 'callback_query') {
Expand Down Expand Up @@ -354,7 +354,7 @@ <h1 class="page-title">session.js</h1>
<br class="clear">

<footer>
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.
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.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "telegraf-session-local",
"version": "2.0.0",
"version": "2.1.0",
"description": "Telegraf local sessions middleware with multiple supported storage types (Memory/FileSync/FileAsync/...) using lowdb",
"main": "lib/session.js",
"repository": {
Expand Down

0 comments on commit f91470d

Please sign in to comment.