halbot 1995.1.36 → 1995.1.37

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "halbot",
3
3
  "description": "Just another AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
4
- "version": "1995.1.36",
4
+ "version": "1995.1.37",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -70,6 +70,7 @@ const action = async (ctx, next) => {
70
70
  let lastMsg;
71
71
  if (resp.text.trim()) {
72
72
  lastMsg = await ok({ processing: false });
73
+ lastMsg = lastMsg[lastMsg.length - 1];
73
74
  } else {
74
75
  await ctx.deleteMessage(ctx._.done[0].message_id);
75
76
  }
@@ -82,6 +83,7 @@ const action = async (ctx, next) => {
82
83
  // 2: adding ctx.append feature
83
84
  // 3: Consider the layout for small screens, such as the footer and other elements.
84
85
  // 4: using webjam config instead of hardcoding the url
86
+ // 5: Add the following links only when web functionality is enabled.
85
87
  await ctx.edit(lastMsg.message_id,
86
88
  lastMsg.raw
87
89
  + `\n\n\-\-\-\n\n✨ [View in well-formatted page](https://hal.leaskh.com/turns/${ctx._.token}).`