Skip to content

Releases: VDS13/telegram-inline-calendar

2.3.0

05 Feb 12:35
Compare
Choose a tag to compare

Added:

  • Option user_lang_select which gives the user the ability to select the language of the calendar.

1.9.0

05 Feb 12:35
Compare
Choose a tag to compare

Added:

  • Option user_lang_select which gives the user the ability to select the language of the calendar.

2.2.0: Merge pull request #15 from semklim/patch-1

30 Jul 11:19
ee31141
Compare
Choose a tag to compare

Added:

  • Ukrainian language support.
  • Function changeLang, which changes the language of the bot messages. A little later we will add the ability to bind the language to the user.
    (Thanks @semklim)

1.8.0: Merge pull request #15 from semklim/patch-1

30 Jul 11:20
ee31141
Compare
Choose a tag to compare

Added:

  • Ukrainian language support.
  • Function changeLang, which changes the language of the bot messages. A little later we will add the ability to bind the language to the user.
    (Thanks @semklim)

2.1.0

28 Nov 11:36
Compare
Choose a tag to compare

Added:

  • Option lock_date to block the selection of certain dates. Defaults to false.
    Locked dates are specified as an array of strings in the format "YYYY-MM-DD" in the class variable lock_date_array (By default the array is empty).

Example:

const calendar = new Calendar(bot, {
    date_format: 'MMM D, YYYY h:mm A',
    language: 'de',
    start_week_day: 1,
    lock_date: true
});

calendar.lock_date_array = ["2023-11-17", "2023-11-19"];
  • Option lock_datetime to block the selection of time on a specific date.. Defaults to false.
    Locked dates are specified as an array of strings in the format "YYYY-MM-DD HH:mm" in the class variable lock_datetime_array (By default the array is empty).

Example:

const calendar = new Calendar(bot, {
    date_format: 'MMM D, YYYY h:mm A',
    language: 'en',
    start_week_day: 1,
    lock_datetime: true
});

calendar.lock_datetime_array = ["2023-11-17 08:30", "2023-11-17 11:45"];

Changed:

  • Options start_date and stop_date can also be entered in the format "YYYY-MM-DD HH:mm". The specified time is taken into account in the time selection menu.
  • Options start_date and stop_date now work conditionally:
start_date < stop_date

instead of:

start_date <= new Date() <= stop_date
  • In options start_date and stop_date you can specify the value "now", which, when launched, will set the current date and time in the format "YYYY-MM-DD HH:mm" (does not change dynamically, the feature will be added in future updates).

Example:

const calendar = new Calendar(bot, {
    date_format: 'MMM D, YYYY h:mm A',
    language: 'de',
    start_week_day: 1,
    time_selector_mod: true,
    time_range: "08:00-15:59",
    time_step: "15m",
    start_date: 'now',
    stop_date: '2024-04-20 14:00'
});

More details in the API and examples

#12

1.7.0

28 Nov 11:37
Compare
Choose a tag to compare

Added:

  • Option lock_date to block the selection of certain dates. Defaults to false.
    Locked dates are specified as an array of strings in the format "YYYY-MM-DD" in the class variable lock_date_array (By default the array is empty).

Example:

const calendar = new Calendar(bot, {
    date_format: 'MMM D, YYYY h:mm A',
    language: 'de',
    start_week_day: 1,
    lock_date: true
});

calendar.lock_date_array = ["2023-11-17", "2023-11-19"];
  • Option lock_datetime to block the selection of time on a specific date.. Defaults to false.
    Locked dates are specified as an array of strings in the format "YYYY-MM-DD HH:mm" in the class variable lock_datetime_array (By default the array is empty).

Example:

const calendar = new Calendar(bot, {
    date_format: 'MMM D, YYYY h:mm A',
    language: 'en',
    start_week_day: 1,
    lock_datetime: true
});

calendar.lock_datetime_array = ["2023-11-17 08:30", "2023-11-17 11:45"];

Changed:

  • Options start_date and stop_date can also be entered in the format "YYYY-MM-DD HH:mm". The specified time is taken into account in the time selection menu.
  • Options start_date and stop_date now work conditionally:
start_date < stop_date

instead of:

start_date <= new Date() <= stop_date
  • In options start_date and stop_date you can specify the value "now", which, when launched, will set the current date and time in the format "YYYY-MM-DD HH:mm" (does not change dynamically, the feature will be added in future updates).

Example:

const calendar = new Calendar(bot, {
    date_format: 'MMM D, YYYY h:mm A',
    language: 'de',
    start_week_day: 1,
    time_selector_mod: true,
    time_range: "08:00-15:59",
    time_step: "15m",
    start_date: 'now',
    stop_date: '2024-04-20 14:00'
});

More details in the API and examples

#12

2.0.6

19 Jul 05:48
Compare
Choose a tag to compare

Added:

  • Turkish language support.
  • Indonesian language support.

#9
#10

1.6.4

19 Jul 05:41
Compare
Choose a tag to compare

Added:

  • Turkish language support.
  • Indonesian language support.

#9
#10

2.0.3

16 Mar 11:14
Compare
Choose a tag to compare

Added:

#5
#6

1.6.2

16 Mar 11:11
Compare
Choose a tag to compare

Added:

  • ESM Support Information.