catto.js 1.2.9 → 1.3.0

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.
@@ -30,7 +30,7 @@ module.exports = class {
30
30
  if (data instanceof TelegramMessageBuilder) {
31
31
  data = data.data;
32
32
  }
33
- if (data.media) {
33
+ if (data.media && data.media.length) {
34
34
  await this.bot.client.telegram.sendMediaGroup(this.id, data.media.map((media, index) => {
35
35
  if (index < 1) {
36
36
  return {
@@ -100,3 +100,4 @@ module.exports = class {
100
100
 
101
101
 
102
102
 
103
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "1.2.9",
3
+ "version": "1.3.0",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {