Skip to content
On this page

Sharing button

Sharing Button

A Telegram Sharing Button is an easy way to let users forward content from your website or app to their friends, Channels or Saved Messages on Telegram.

When a user presses the button, Telegram asks them to choose a chat, group or channel where your link will be shared. You can also add some text that describes the link – the user will be able to edit it before sending the message.

Official Telegram documentation

Demo

Usage

vue
<script setup>
import { ButtonShare } from 'televue'

const pageUrl = location.href
</script>

<template>
  <ButtonShare
    :url="pageUrl"
    size="large"
    comment="Check this out!"
  />
</template>

Props

PropertyTypeDefaultOptions
urlstringRequired prop
sizestring'medium''medium' or 'large'
commentstring''
hide-textbooleanfalse

Try an official configurator to learn more about widget options

Released under the MIT License.