Socket
Socket
Sign inDemoInstall

telegram-inline-calendar

Package Overview
Dependencies
1
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

8

package.json
{
"name": "telegram-inline-calendar",
"version": "1.0.3",
"version": "1.1.0",
"description": "Date Selection tool & Inline calendar for Node.js telegram bots",

@@ -20,7 +20,3 @@ "main": "./index.js",

"bot",
"calendar",
"telegram-bot",
"telegraf",
"telebot",
"node-telegram-bot-api"
"calendar"
],

@@ -27,0 +23,0 @@ "dependencies": {

@@ -9,3 +9,4 @@ <h1 align="center">telegram-inline-calendar</h1>

[![Bot API](https://img.shields.io/badge/Bot%20API-v.6.3-00aced.svg?style=flat-square&logo=telegram)](https://core.telegram.org/bots/api)
[![npm package](https://img.shields.io/npm/v/telegram-inline-calendar?logo=npm&style=flat-square)](https://www.npmjs.org/package/node-telegram-bot-api)
[![npm package](https://img.shields.io/npm/v/telegram-inline-calendar?logo=npm&style=flat-square)](https://www.npmjs.org/package/telegram-inline-calendar)
[![npm download](https://img.shields.io/npm/dm/telegram-inline-calendar)](https://www.npmjs.org/package/telegram-inline-calendar)
[![https://t.me/vds_13](https://img.shields.io/badge/💬%20Telegram-VDS13-blue.svg?style=flat-square)](https://t.me/vds_13)

@@ -39,3 +40,6 @@

```
## [🎚️ Changelog](https://github.com/VDS13/telegram-inline-calendar/blob/main/CHANGELOG.md)
## [🗺 API](https://github.com/VDS13/telegram-inline-calendar/blob/main/API.md)
## 🚀 Usage

@@ -131,3 +135,4 @@

language: 'en', //language (en/es/de/es/fr/it)
bot_api: 'node-telegram-bot-api' //telegram bot library
bot_api: 'node-telegram-bot-api', //telegram bot library
close_calendar: true //Close calendar after date selection
}

@@ -134,0 +139,0 @@ ```

@@ -12,2 +12,3 @@ const lang = require("./language.json");

this.options.bot_api = (typeof options.bot_api === 'undefined') ? 'node-telegram-bot-api' : options.bot_api;
this.options.close_calendar = (typeof options.bot_api === 'undefined') ? true : options.close_calendar;
}

@@ -141,3 +142,4 @@ twoDigits(num) {

this.chats.delete(query.message.chat.id);
this.deleteMessage(query);
if (this.options.close_calendar === true)
this.deleteMessage(query);
res = dayjs(code[1]).format(this.options.date_format);

@@ -144,0 +146,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc