Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

Commit 1c32ca7

Browse files
committed
Bump to 0.0.6
1 parent a736e91 commit 1c32ca7

File tree

9 files changed

+32
-15
lines changed

9 files changed

+32
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nodeogram
1+
# Nodeogram ![](https://img.shields.io/npm/v/nodeogram.svg)
22
Nodeogram is a simple yet complete Node.JS module for Telegram bots.
33

44
## Features

docs/changelog.rst

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,23 @@ Nodeogram 0.0.5
4545

4646
* Added support for webhooks
4747
* It is now possible to disable the automatic fetching of updates
48-
* It is now possible to manually provide updates to the bot
48+
* It is now possible to manually provide updates to the bot
49+
50+
===============
51+
Nodeogram 0.0.6
52+
===============
53+
54+
* Added support for the Telegram gaming platform
55+
56+
* New objects: Animation, Game, GameHighScore, InlineQueryResultGame
57+
* Added parsing for the Game object
58+
* Implemented sendGame, setGameScore, getGameHighScores
59+
60+
* Changed the signature for methods ``Bot#answerCallbackQuery`` and ``CallbackQuery#answer``
61+
62+
* Implemented a deprecation warning
63+
* The old signature will likely be available until the next release
64+
65+
* Implemented debug logging
66+
67+
* Can be activated either by passing ``debug: true`` to the bot or using the ``NODEOGRAM_DEBUG`` environment variable

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = u'0.0.5'
62+
version = u'0.0.6'
6363
# The full version, including alpha/beta/rc tags.
64-
release = u'0.0.5'
64+
release = u'0.0.6'
6565

6666
# The language for content autogenerated by Sphinx. Refer to documentation
6767
# for a list of supported languages.

examples/powercalcbot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"license": "MIT",
1515
"dependencies": {
1616
"mathjs": "^3.2.1",
17-
"nodeogram": "0.0.3"
17+
"nodeogram": "0.0.6"
1818
}
1919
}

examples/redditlivebot/app.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,16 @@ bot.command('unfollow', 'Stop following a thread', false, (args, message) => {
6464

6565
bot.on('callback_query', (query) => {
6666
var data = JSON.parse(query.data);
67-
console.log(query);
6867
if (data.action === 'follow') {
6968
if (query.message) {
70-
updateUser(query.message.chat, data.id)
71-
query.answer('👍 Got it!')
69+
updateUser(query.message.chat, data.id);
70+
query.answer({text: '👍 Got it!'})
7271
}
7372
}
7473
if (data.action === 'unfollow') {
7574
if (query.message) {
76-
unfollow(query.message.chat, data.id)
77-
query.answer('👍 Got it!')
75+
unfollow(query.message.chat, data.id);
76+
query.answer({text: '👍 Got it!'})
7877
}
7978
}
8079
});
@@ -181,7 +180,6 @@ function createClient(id, thread) {
181180
});
182181

183182
connection.on('message', message => {
184-
console.log(message);
185183
if (message.type === 'utf8') {
186184
message = JSON.parse(message.utf8Data);
187185
switch (message.type) {

examples/redditlivebot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Alberto Coscia",
1111
"license": "GPL-3.0",
1212
"dependencies": {
13-
"nodeogram": "0.0.5",
13+
"nodeogram": "0.0.6",
1414
"superagent": "^2.1.0",
1515
"superagent-promise": "^1.1.0",
1616
"websocket": "^1.0.23"

examples/thingsbot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"author": "Alberto Coscia",
1111
"license": "GPL-3.0",
1212
"dependencies": {
13-
"nodeogram": "0.0.5",
13+
"nodeogram": "0.0.6",
1414
"superagent": "^1.8.3"
1515
}
1616
}

examples/thingsbot/thingsbot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ bot.on('callback_query', (query) => {
370370
.then((data) => {
371371
var msg = message(data);
372372
query.message.editText(msg, false, {parse_mode: 'Markdown', disable_web_page_preview: true});
373-
query.answer("👍 Alright, got it!", true);
373+
query.answer({text: "👍 Alright, got it!", alert: true});
374374
console.timeEnd(query.id)
375375
})
376376
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodeogram",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "A simple yet complete Node.JS module for Telegram bots",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)