Code Monkey home page Code Monkey logo

signalapngsticker's Introduction

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.

signalapngsticker's People

Contributors

laggykiller avatar teynav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

signalapngsticker's Issues

Error

I keep getting message "Can't download pack [link]", despite having everything installed, even as a root

Rick and Morty animated sticker pack

First, I would like to thank you for your work and your script. Animated stickers are great! :)

I tried converting this pack:
https://t.me/addstickers/RickAndMorty
using the script but no success. There were no apng files in the output folder, just static png images.
Some potentially helpful lines from the terminal:

  • tmp.png already at best
  • warning: GIF too complex to unoptimize
    (The reason was local color tables or complex transparency.
    Try running the GIF through ‘gifsicle --colors=255’ first.)
    gifsicle: frame ‘#150’ out of range, image has 150 frames

Is it possible to convert these to Signal or are they just too complex/large? Or it might just be me doing something wrong.

Error in uploading stickers

I'm using script_v2 on Ubuntu in WSL
The script downloaded all the dependencies
everything goes as it's supposed to go but then I get this-

# Time to upload pack!!!!
Pack wasn't uploaded Doing backup !!
Couldn't Upload hence backup created in folder .output/0 , rerun script to do Upload
Cleaning up

Then when I rerun the script it tells me that a backup was found and when I tell it to upload them, I get-
Please check network connection!!!

I obviously am connected to internet coz you can read this

support for bash

i have noticed that the script uses zsh.

its there any plans for compatibility with bash?

also tgs-to-gif requires npm?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.