|
1 |
| -<!-- omit in toc --> |
2 |
| -# Tutorial |
3 | 1 |
|
4 |
| -See below for a step-by-step tutorial on how to use TStickers |
| 2 | +# TStickers Tutorials and User Guides |
5 | 3 |
|
6 |
| -- [Step 1 - Send a message to @BotFather](#step-1---send-a-message-to-botfather) |
7 |
| -- [Step 2 - Create a file called 'env'](#step-2---create-a-file-called-env) |
8 |
| -- [Step 3 - Get the URL of the telegram sticker pack(s)](#step-3---get-the-url-of-the-telegram-sticker-packs) |
9 |
| - - [Option 1 - Use a browser and search for the pack](#option-1---use-a-browser-and-search-for-the-pack) |
10 |
| - - [Option 2 - Use telegram](#option-2---use-telegram) |
11 |
| -- [Step 4 - Use TStickers](#step-4---use-tstickers) |
| 4 | +Welcome to the TStickers tutorials. This section provides a handful of tutorials |
| 5 | +to help you get started with TStickers and make the most of its features. |
12 | 6 |
|
13 |
| -## Step 1 - Send a message to @BotFather |
| 7 | +## Resource Table |
14 | 8 |
|
15 |
| -1. You must have a telegram account to use this |
16 |
| -2. Send a message to @BotFather to get started. |
17 |
| -3. Send a message containing `/newbot` |
18 |
| -4. Send a message containing the name of the bot e.g. `/test` |
19 |
| -5. Send a message containing the username of the bot e.g. `/test_bot` |
20 |
| -6. @BotFather will send a message with the token |
21 |
| - |
22 |
| -<img src="assets/step1.png" alt="Step 1" width="600"> |
23 |
| - |
24 |
| -## Step 2 - Create a file called 'env' |
25 |
| - |
26 |
| -Create a file called 'env' (or env.txt) and paste your token from part 1. |
27 |
| - |
28 |
| -e.g. `env.txt` |
29 |
| - |
30 |
| -```txt |
31 |
| -14************ |
32 |
| -``` |
33 |
| - |
34 |
| -## Step 3 - Get the URL of the telegram sticker pack(s) |
35 |
| - |
36 |
| -### Option 1 - Use a browser and search for the pack |
37 |
| - |
38 |
| -1. Use a browser and search for the pack e.g. `telegram donut the dog` |
39 |
| - |
40 |
| - <img src="assets/step3_0.png" alt="Step 3: Part 1" width="300"> |
41 |
| - |
42 |
| -2. Click on the link |
43 |
| -3. Copy the url: e.g. `https://t.me/addstickers/DonutTheDog` |
44 |
| - |
45 |
| -### Option 2 - Use telegram |
46 |
| - |
47 |
| -1. Open telegram, find the desired sticker pack and share the pack (on mobile pick copy link). An example of sharing a pack is below |
48 |
| - |
49 |
| - <img src="assets/step3_1.png" alt="Step 3: Part 2" width="300"> |
50 |
| - |
51 |
| -2. Click on share stickers/ link - this will copy the url: e.g. `https://t.me/addstickers/DonutTheDog` |
52 |
| - |
53 |
| -## Step 4 - Use TStickers |
54 |
| - |
55 |
| -- Run the program `python -m tstickers` |
56 |
| -- Enter the URL of the sticker pack |
57 |
| -- Get the output in the `downloads` folder. |
58 |
| - |
59 |
| -```bash |
60 |
| -$ tstickers |
61 |
| -Enter sticker_set url (leave blank to stop): https://t.me/addstickers/DonutTheDog |
62 |
| -Enter sticker_set url (leave blank to stop): |
63 |
| -INFO | ============================================================ |
64 |
| -INFO | Starting to scrape "DonutTheDog" .. |
65 |
| -INFO | Time taken to scrape 31 stickers - 0.044s |
66 |
| -INFO | |
67 |
| -INFO | ------------------------------------------------------------ |
68 |
| -INFO | Starting download of "donutthedog" into downloads\donutthedog |
69 |
| -INFO | Time taken to download 31 stickers - 0.157s |
70 |
| -INFO | |
71 |
| -INFO | ------------------------------------------------------------ |
72 |
| -INFO | -> Cache miss for DonutTheDog! |
73 |
| -INFO | Converting stickers "DonutTheDog"... |
74 |
| -INFO | Time taken to convert 31 stickers (tgs) - 60.970s |
75 |
| -INFO | |
76 |
| -INFO | Time taken to convert 31 stickers (webp) - 0.447s |
77 |
| -INFO | |
78 |
| -INFO | Time taken to convert 62 stickers (total) - 61.434s |
79 |
| -INFO | |
80 |
| -``` |
| 9 | +| Guide | Description | Link | |
| 10 | +|-----------------------|---------------------|---------------------------------------| |
| 11 | +| **getting-started.md** | This guide will walk you through the initial setup of TStickers, including installation and basic usage. | [View getting-started.md](./getting-started.md) | |
| 12 | +| **backends.md** | Learn about the different backend options available with TStickers. | [View backends.md](./backends.md) | |
0 commit comments