telegram-inline-calendar
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "telegram-inline-calendar", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Date Selection tool & Inline calendar for Node.js telegram bots", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -142,2 +142,2 @@ <h1 align="center">telegram-inline-calendar</h1> | ||
Copyright © 2022 Dmitry Vyazin | ||
Copyright © 2022-2023 Dmitry Vyazin |
@@ -62,5 +62,5 @@ const lang = require("./language.json"); | ||
cnk.inline_keyboard.push([{},{},{}]); | ||
cnk.inline_keyboard[0][0] = {text: '<<', callback_data: 'n_' + date + '_--'}; | ||
cnk.inline_keyboard[0][0] = {text: '<<', callback_data: 'n_' + dayjs(date).format("YYYY") + '_--'}; | ||
cnk.inline_keyboard[0][1] = {text: lang.month3[this.options.language][date.getMonth()] + ' ' + date.getFullYear(), callback_data: ' '}; | ||
cnk.inline_keyboard[0][2] = {text: '>>', callback_data: 'n_' + date + '_++'}; | ||
cnk.inline_keyboard[0][2] = {text: '>>', callback_data: 'n_' + dayjs(date).format("YYYY") + '_++'}; | ||
cnk.inline_keyboard.push([{},{},{},{},{},{},{}]); | ||
@@ -83,5 +83,5 @@ for(j = 0; j < 7; j++) { | ||
cnk.inline_keyboard.push([{},{},{}]); | ||
cnk.inline_keyboard[cr - 1][0] = {text: '<', callback_data: 'n_' + date + '_-'}; | ||
cnk.inline_keyboard[cr - 1][0] = {text: '<', callback_data: 'n_' + dayjs(date).format("YYYY-MM") + '_-'}; | ||
cnk.inline_keyboard[cr - 1][1] = {text: ' ', callback_data: ' '}; | ||
cnk.inline_keyboard[cr - 1][2] = {text: '>', callback_data: 'n_' + date + '_+'}; | ||
cnk.inline_keyboard[cr - 1][2] = {text: '>', callback_data: 'n_' + dayjs(date).format("YYYY-MM") + '_+'}; | ||
return cnk; | ||
@@ -88,0 +88,0 @@ } |
Sorry, the diff of this file is not supported yet
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
15865