
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
react-telegram-sticker-viewer
Advanced tools
React component for viewing telegram sticker url with .tgs extension got from the telegram bot webhook
$ npm install react-telegram-sticker-viewer
For a live demo, visit: https://kokim2022.github.io/react-telegram-sticker-viewer/
import React, { useState } from 'react';
import ReactTelegramStickerViewer from 'react-telegram-sticker-viewer';
const App: React.FC = () => {
const [tgsUrl, setTgsUrl] = useState<string>(
'https://cdn.chatapi.net/stickers/telegram/1c49672ec5dbeef5cfd517996acf2bac/file_10.tgs'
);
return (
<ReactTelegramStickerViewer
tgsUrl={tgsUrl}
// Optional: You can pass a custom CORS proxy URL if needed
// corsProxyServerUrl="https://your-custom-cors-proxy.com/?url="
style={{ height: '300px', width: '300px' }}
/>
);
};
export default App;
tgsUrl
(required, string)
The URL of the Telegram Sticker (TGS file) to be displayed.
style
(optional, object)
The style of the sticker viewer. Default is { height: '100px', width: '100px' }
.
corsProxyServerUrl
(optional, string)
You can provide a custom CORS proxy URL if needed. This is useful if you're encountering CORS issues when accessing the TGS URL.
MIT @ kokim2020.
FAQs
React component for viewing telegram sticker url with .tgs extension got from the telegram bot webhook
The npm package react-telegram-sticker-viewer receives a total of 7 weekly downloads. As such, react-telegram-sticker-viewer popularity was classified as not popular.
We found that react-telegram-sticker-viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.