Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
grammy-calendar
Advanced tools
Readme
WARNING: unstable. This is not completely stable yet. Please try it out and provide feedback, either by opening an issue or in the group chat.
This grammY plugin ports telegraf-calendar-telegram to the grammY framework.
import { Calendar, type CalendarContext, type CalendarOptions } from "grammy-calendar";
import { Bot } from "grammy";
type MyContext = Context & CalendarContext;
type SessionData = {
calendarOptions: CalendarOptions;
}
const bot = new Bot<MyContext>("BOT-TOKEN");
bot.use(session({
initial: () => ({
calendarOptions: {}
})
}));
const calendarMenu = new Calendar<MyContext>(
(ctx) => ctx.session.calendarOptions
);
bot.use(calendarMenu);
bot.on("message:text", async (ctx) => {
ctx.session.calendarOptions = { defaultDate: new Date() };
await ctx.reply("This is a calendar", { reply_markup: calendarMenu })
})
bot.filter((ctx) => !!ctx.calendarSelectedDate, async (ctx) => {
const dateText = ctx.calendarSelectedDate!.toString()
await ctx.reply(`You have selected this date: ${dateText}`)
})
FAQs
Calendar menu for grammY
The npm package grammy-calendar receives a total of 4 weekly downloads. As such, grammy-calendar popularity was classified as not popular.
We found that grammy-calendar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.