grammy-media-groups 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -68,13 +68,13 @@ bot.on("message", async (ctx) => {
68
68
  if (group?.length === 1) {
69
69
  await ctx.reply("Media group detected", {
70
70
  reply_parameters: { message_id: ctx.msg.message_id },
71
- reply_markup: new InlineKeyboard().text("Resend album", "resend"),
71
+ reply_markup: new InlineKeyboard().text("Copy", "copy"),
72
72
  });
73
73
  }
74
74
  });
75
75
 
76
- // Reply to an album message with /album to resend the full media group
77
- bot.command("album", async (ctx) => {
76
+ // Reply to an album message with /copy to resend the full media group
77
+ bot.command("copy", async (ctx) => {
78
78
  const group = await ctx.mediaGroups.getForReply();
79
79
  if (group) {
80
80
  await ctx.replyWithMediaGroup(
@@ -84,7 +84,7 @@ bot.command("album", async (ctx) => {
84
84
  });
85
85
 
86
86
  // Handle inline keyboard button to resend a media group
87
- bot.on("callback_query:data", async (ctx) => {
87
+ bot.callbackQuery("copy", async (ctx) => {
88
88
  const group = await ctx.mediaGroups.getForReply();
89
89
  if (group) {
90
90
  await ctx.replyWithMediaGroup(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grammy-media-groups",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Media Groups Storage Plugin for grammY",
5
5
  "homepage": "https://github.com/PonomareVlad/grammy-media-groups",
6
6
  "main": "./out/mod.js",