Skip to content

From a comp to a file

Make a Telegram sticker ​

You will turn a comp into a .tgs sticker that Telegram accepts on the first upload. About ten minutes.

You needA comp of 512 × 512 px (one side may be 512–832 in steps of 16) at 60 fps (30 is accepted), at most 3 seconds long.
You getA .tgs file, checked against Telegram's own rules, ready for the Stickers bot.
TrialAudit, fixes and the .tgs work in the trial; the optimizer (for a sticker over 64 KB) is in the full version.

1. Tell the audit it is a sticker ​

In Audit, open Target players and tick Telegram (rlottie). Untick the web players if the comp is only a sticker: then the audit judges it by Telegram's rules alone.

2. Run Audit and fix ​

Press Run Audit. Telegram findings are about the upload: Telegram refuses a sticker that breaks one of its rules.

The audit saysDo
Sticker size, frame rate or lengthSet the comp to 512 × 512, 60 fps, 3 s or less (Composition › Composition Settings).
Auto-bezier position keysThe most common refusal, because it is After Effects' default. Select the position keys, right-click › Keyframe Interpolation… › Spatial Interpolation Bezier or Linear.
Gradient strokeUse a solid stroke; gradient fills are allowed.
Solid layerDraw a rectangle shape layer instead.
Star or polygon shapeConvert it to a path (right-click the shape › Convert to Bezier Path).
Time remapping, time stretchBake the timing into keyframes, or precompose differently.
Text, effects, blend modesTelegram never draws them: turn text into shapes, and leave effects out.

Everything Telegram allows and forbids: Target players › Telegram.

3. Build the .tgs ​

  1. In Build, switch on the tgs chip.
  2. Tick the comp and press Build selected.
  3. Read the row's mark: the build checks the written file against Telegram's 64 KB limit and says so if it is over.

Too big? Optimize the .json first, then Export as… .tgs from Files, or simplify the artwork: fewer path points and keyframes are what make a sticker heavy.

4. Upload ​

Send the .tgs to Telegram's @Stickers bot and follow its steps.

AXO for After Effects