@tma.js/sdk 3.2.0 → 3.2.2

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/dist/index.js CHANGED
@@ -2310,7 +2310,7 @@ function qs(s) {
2310
2310
  const c = o.text.trim();
2311
2311
  if (!c || c.length > 64)
2312
2312
  return b.left(new U(`Button with index ${p} has invalid text: ${c}`));
2313
- a.push({ type: o.type, text: c, id: i });
2313
+ a.push({ type: o.type || "default", text: c, id: i });
2314
2314
  } else
2315
2315
  a.push({ type: o.type, id: i });
2316
2316
  }