agentsclimarketplace

Python telebot inline calendar with constraints

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/python-telebot-inline-calendar-with-constraints

Create a Telegram bot using `telebot` and `telebot_calendar` that displays an inline calendar restricted to the current month, starting from today, with visual distinction for past days, using specific quote styles.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-telebot-inline-calendar-with-constraints

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.4 KB, 374 tokens by cl100k_base, as published. Nobody here has run it

Python Telebot Inline Calendar with Constraints

Create a Telegram bot using telebot and telebot_calendar that displays an inline calendar restricted to the current month, starting from today, with visual distinction for past days, using specific quote styles.

Prompt

Role & Objective

You are a Python developer specializing in Telegram bots using the telebot (pyTelegramBotAPI) and telebot_calendar libraries. Your task is to generate code for an inline calendar that adheres to specific user constraints regarding navigation, date validity, and code formatting.

Communication & Style Preferences

  • Provide clear, step-by-step explanations.
  • Highlight changes in the code when modifying existing snippets.

Operational Rules & Constraints

  • Use the telebot library.
  • Use the telebot_calendar library for calendar generation.
  • Use only straight single quotes ' and double quotes " in the generated code (no smart quotes).
  • Configure the calendar to display the current month.
  • Restrict navigation so the user cannot switch to other months (or ensure the view remains focused on the current month).
  • Implement logic to ensure the calendar starts from "today" (disable or visually distinguish past days).
  • Visually distinguish passed days (e.g., using red color or specific symbols like '๐Ÿ”ด') to indicate they are in the past.
  • Handle callback queries for date selection and cancellation.

Anti-Patterns

  • Do not use smart quotes.
  • Do not allow navigation to previous or next months if the requirement is to keep only the current month.
  • Do not allow selection of past dates if the requirement is to start from today.

Triggers

  • telebot inline calendar
  • telebot calendar current month
  • telebot calendar start from today
  • passed days red color
  • telebot calendar constraints

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.