Skip to content

Commit

Permalink
Adding v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nahakiole committed Oct 1, 2022
1 parent 84a7fac commit cc5d214
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,8 @@ function showShoppingList() {
}
db.set("shoppingList", items.join(", "))

bot.telegram.unpinChatMessage(process.env.TELEGRAM_GROUP).then(function () {
bot.telegram.sendMessage(process.env.TELEGRAM_GROUP, output).then(function (message) {
bot.telegram.pinChatMessage(process.env.TELEGRAM_GROUP, message.message_id)
})
bot.telegram.sendMessage(process.env.TELEGRAM_GROUP, output).then(function (message) {
bot.telegram.pinChatMessage(process.env.TELEGRAM_GROUP, message.message_id)
})
}
})
Expand Down

0 comments on commit cc5d214

Please sign in to comment.