@tma.js/sdk 2.5.0 → 2.5.1

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
@@ -1,6 +1,6 @@
1
1
  var Ot = Object.defineProperty;
2
2
  var Ut = (e, t, s) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var c = (e, t, s) => (Ut(e, typeof t != "symbol" ? t + "" : t, s), s);
3
+ var c = (e, t, s) => Ut(e, typeof t != "symbol" ? t + "" : t, s);
4
4
  function at(e, t) {
5
5
  let s;
6
6
  const n = () => {
@@ -2215,10 +2215,11 @@ class Ue extends st {
2215
2215
  * @param url - URL to share.
2216
2216
  * @param text - text to append after the URL.
2217
2217
  * @see https://core.telegram.org/api/links#share-links
2218
+ * @see https://core.telegram.org/widgets/share#custom-buttons
2218
2219
  */
2219
2220
  shareURL(s, n) {
2220
2221
  this.openTelegramLink(
2221
- "https://t.me/share?" + new URLSearchParams({ url: s, text: n || "" }).toString()
2222
+ "https://t.me/share/url?" + new URLSearchParams({ url: s, text: n || "" }).toString()
2222
2223
  );
2223
2224
  }
2224
2225
  }