GNU General Public License v3.0

项目介绍

teynav/signalApngSticker 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,采用 GNU General Public License v3.0 许可证,目前获得 72 个 Star、5 次 Fork。

仓库全名
teynav/signalApngSticker
开源许可证
GNU General Public License v3.0
Star 数
72
Fork 数
5
未关闭 Issue
3

README 摘要

signalApngSticker Convert Telegram Stickers (tgs) to Apng (<300) kb for Signal And uploads it while you grab a coffee and makes sure you have it to send it to friends when you are back :") Welcome Rust program(Alpha) and Script v3(Linux only) are here :") What do I need to run this program? Linux , Windows (only for Rust program) Look for Script folder on details about script For Rust program , you would need 1…

完整内容见 GitHub 原始 README 或本页 。

常见问题

signalApngSticker 用什么语言开发?

主要使用 Shell 编写,采用 GNU General Public License v3.0 许可证,目前有 72 个 Star。

signalApngSticker 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 signalApngSticker 的源码?

可以直接克隆仓库:git clone https://github.com/teynav/signalApngSticker.git,默认分支为 main;安装与运行步骤见仓库 README。

signalApngSticker 最近还在维护吗?

仓库最近一次更新为 2024年2月19日,当前有 3 个未关闭 Issue;Star 数为 72,可作为社区活跃度的参考。

关于

Convert Telegram Stickers (tgs) to Apng <300 kb for Signal Automatically using script

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
85
价值分
44
活跃状态
活跃

语言占比

Python
Rust
Shell

Release

README

signalApngSticker

Convert Telegram Stickers (tgs) to Apng (<300) kb for Signal And uploads it while you grab a coffee and makes sure you have it to send it to friends when you are back :")


Welcome Rust program(Alpha) and Script v3(Linux only) are here :")

What do I need to run this program? Linux , Windows (only for Rust program)

Look for Script folder on details about script

For Rust program , you would need

  1. Apngasm and Apngdis
  2. Tgs2Png
  3. Ffmpeg
  4. Python for singalstickers_client in uploader.py

Intial setup

  1. Get Telegram Bot token ready
  2. Install and launch Signal Desktop BETA VERSION
    • Goto Menu
      • Toggle Developers tools
      • On there open Console
      • Store somehwere output of window.SignalDebug.getReduxState().items.uuid_id
      • Also store output of window.SignalDebug.getReduxState().items.password
Don’t share both of these with anyone else
How to see what all packs i converted with this script ?
cat packs

Background

For v3, v2 and binary you need just the link to stickerpack, NO NEED TO DOWNLOAD TGS FILES Just have links like “https://t.me/addstickers/HalloUtya” and that’s enough !!!

For bot to upload on your behalf, using your account credentials given above.

If you want telegram bot token get it using BotFather :")

Once Intial setup , from next time just sending link would be enough.


Usage of v3 script (for v2 change name)

./script_v3_beta.sh 

./script_v3_beta.sh <filename>

Where file has list of Telegram sticker links

Usage of Binary

cargo r --release <link> <link> <link>
Internal working of v1 and v2 Usage of v1 of script
./script_v1.sh

Converts tgs in current diretory to apng within ./outut

You could use it to :

  1. To create custom stickerpack from group of tgs files
  2. You don’t need to have telegram account , although you need source of tgs files Dependencies of v1 of script
  3. gifsicle
  4. imagemagick
  5. apngasm
  6. tgs-to-gif

Prefer v2 since it does job automated.


What do this script do? (Just v1 )

  1. Convert tgs to gif
  2. optimize that gif
  3. breaks gif into frames
  4. Make apng out of those frames

How do i do this? (For v2 )

  1. Install above mentioned packages and python modules
  2. Copy script_v2 , bot.py , download.py to a folder.
  3. For first time you will be asked bot token and authentican info from Signal-Desktop
  4. Do you have link to Telegram-Sticker ? Enter it when prompted eg : https://t.me/addstickers/MsWitchCat
  5. Grab a coffee , Because you will now get link to signalstickerpack after wizardry is done !!!

How do i do this? (For v1 )

  1. Install above mentioned packages
  2. Copy your tgs into a folder
  3. Copy this script_v1 to same folder
  4. Run it!!
  5. Wait for cpu to cook your apngs
  6. Look for all apngs in ./output/
  7. Create stickerpack using those apngs all are below 300kb !!!

You say so, but what have you done???

With v2 porting becomes way easier since you don’t have to be actively involved in porting

Contains 80+ stickerpack as of now ported from Telegram

Mastodon Owwww, That’s nice , How can I help you

  1. Suggestions , Signal +919519873721
  2. Donations , PayPal or UPI 9519873721@ybl
  3. If you are using brave you can donate me directly.

评论

暂无评论