Skip to content

Commit

Permalink
Merge pull request #4 from SergeyKons/fix/telegram-share
Browse files Browse the repository at this point in the history
Fix telegram share
  • Loading branch information
delfimov authored Apr 7, 2020
2 parents 2ffe499 + ebf2bcb commit ea77534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsshare.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
// Telegram
telegram: function (options) {
return options.link_telegram
+ '?text=' + encodeURIComponent(_getURL(options) + "\n" + options.title);
+ '?url=' + encodeURIComponent(_getURL(options) + "\n" + options.title);
},

// WhatsApp
Expand Down

0 comments on commit ea77534

Please sign in to comment.