sticker-convert 2.12.1__py3-none-any.whl → 2.12.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sticker_convert/utils/auth/telegram_api.py +5 -2
- sticker_convert/utils/auth/telethon_setup.py +6 -1
- sticker_convert/version.py +1 -1
- {sticker_convert-2.12.1.dist-info → sticker_convert-2.12.2.dist-info}/METADATA +1 -1
- {sticker_convert-2.12.1.dist-info → sticker_convert-2.12.2.dist-info}/RECORD +9 -9
- {sticker_convert-2.12.1.dist-info → sticker_convert-2.12.2.dist-info}/WHEEL +0 -0
- {sticker_convert-2.12.1.dist-info → sticker_convert-2.12.2.dist-info}/entry_points.txt +0 -0
- {sticker_convert-2.12.1.dist-info → sticker_convert-2.12.2.dist-info}/licenses/LICENSE +0 -0
- {sticker_convert-2.12.1.dist-info → sticker_convert-2.12.2.dist-info}/top_level.txt +0 -0
@@ -386,7 +386,10 @@ class TelethonAPI(TelegramAPI):
|
|
386
386
|
if isinstance(msg, str):
|
387
387
|
sent_message = await self.client.send_message("Stickers", msg)
|
388
388
|
else:
|
389
|
-
sent_message = cast(
|
389
|
+
sent_message = cast(
|
390
|
+
Message,
|
391
|
+
await self.client.send_file("Stickers", msg, force_document=True),
|
392
|
+
) # type: ignore
|
390
393
|
|
391
394
|
for _ in range(5):
|
392
395
|
# https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this
|
@@ -426,7 +429,7 @@ class TelethonAPI(TelegramAPI):
|
|
426
429
|
) -> Tuple[int, int]:
|
427
430
|
stickers_ok = 0
|
428
431
|
if self.is_emoji:
|
429
|
-
repl = await self._send_and_recv("/
|
432
|
+
repl = await self._send_and_recv("/newpack")
|
430
433
|
elif stickers_list[0][3] == "static":
|
431
434
|
repl = await self._send_and_recv("/newsticker")
|
432
435
|
elif stickers_list[0][3] == "video":
|
@@ -3,6 +3,7 @@ from typing import Callable, Tuple
|
|
3
3
|
|
4
4
|
import anyio
|
5
5
|
from telethon import TelegramClient # type: ignore
|
6
|
+
from telethon.errors import SessionPasswordNeededError # type: ignore
|
6
7
|
|
7
8
|
from sticker_convert.definitions import CONFIG_DIR
|
8
9
|
from sticker_convert.job_option import CredOption
|
@@ -38,7 +39,11 @@ class TelethonSetup:
|
|
38
39
|
phone_number = self.cb_ask_str("Enter phone number: ")
|
39
40
|
await client.send_code_request(phone_number)
|
40
41
|
code = self.cb_ask_str("Enter code: ")
|
41
|
-
|
42
|
+
try:
|
43
|
+
await client.sign_in(phone_number, code)
|
44
|
+
except SessionPasswordNeededError:
|
45
|
+
password = self.cb_ask_str("Enter password: ")
|
46
|
+
await client.sign_in(password=password)
|
42
47
|
authed = await client.is_user_authorized()
|
43
48
|
|
44
49
|
return (
|
sticker_convert/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: sticker-convert
|
3
|
-
Version: 2.12.
|
3
|
+
Version: 2.12.2
|
4
4
|
Summary: Convert (animated) stickers to/from WhatsApp, Telegram, Signal, Line, Kakao, Viber, Discord, iMessage. Written in Python.
|
5
5
|
Author-email: laggykiller <chaudominic2@gmail.com>
|
6
6
|
Maintainer-email: laggykiller <chaudominic2@gmail.com>
|
@@ -6,7 +6,7 @@ sticker_convert/definitions.py,sha256=BqROmOvqIqw8ANaqZXIxJAXGD0HgjAvCfFouQ4SaWH
|
|
6
6
|
sticker_convert/gui.py,sha256=D9L-lFif4P4MANglis_wpjkzlUuGPuq8AybWGyPVP8E,33824
|
7
7
|
sticker_convert/job.py,sha256=gEd6yF8WPUR1_7q9SVhnwdD5usrDxwowNnR5q9uS8Yc,28011
|
8
8
|
sticker_convert/job_option.py,sha256=NysZtKVVG7EzRkLnVaeYJY0uNlYKFmjoststB1cvVrY,8020
|
9
|
-
sticker_convert/version.py,sha256=
|
9
|
+
sticker_convert/version.py,sha256=Ny2Dh7an9BvfE99fybKX4G10b6DDlm3tYiK2_Jm2E2A,47
|
10
10
|
sticker_convert/downloaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
sticker_convert/downloaders/download_base.py,sha256=MI5pCT_tkfoaFlrD1oNynDj1Rv1CK0APuNVElTEAEis,5110
|
12
12
|
sticker_convert/downloaders/download_discord.py,sha256=6AFpLAYL2hRvVcsqUtzDUC31U66U02ZcnKXDnZRi2jk,3496
|
@@ -95,8 +95,8 @@ sticker_convert/utils/auth/get_kakao_desktop_auth.py,sha256=BBfFI08cVOmi6akenQwM
|
|
95
95
|
sticker_convert/utils/auth/get_line_auth.py,sha256=8l8ha2vQmk3rHGvDE7PkcxQXbH3oe62LKbI3qVUtvqc,2196
|
96
96
|
sticker_convert/utils/auth/get_signal_auth.py,sha256=oDTcIUcRM8_zfmR6UoBvzBhIscwLRe7n2zw4aw0j8_Q,4564
|
97
97
|
sticker_convert/utils/auth/get_viber_auth.py,sha256=mUTrcxq5bTrzSXEVaeTPqVQIdZdwvIhrbMgBUb7dU30,8173
|
98
|
-
sticker_convert/utils/auth/telegram_api.py,sha256=
|
99
|
-
sticker_convert/utils/auth/telethon_setup.py,sha256=
|
98
|
+
sticker_convert/utils/auth/telegram_api.py,sha256=Z0lV-WdzSK3LEdEs_tqpbrJlzZuLNiyMJGA1rh_UvLA,24232
|
99
|
+
sticker_convert/utils/auth/telethon_setup.py,sha256=QW0RAP3KwnxK9ZHmCo_iGqc1NiskOzsGa1kcmPT9PsQ,2972
|
100
100
|
sticker_convert/utils/files/cache_store.py,sha256=etfe614OAhAyrnM5fGeESKq6R88YLNqkqkxSzEmZ0V0,1047
|
101
101
|
sticker_convert/utils/files/json_manager.py,sha256=Vr6pZJdLMkrJJWN99210aduVHb0ILyf0SSTaw4TZqgc,541
|
102
102
|
sticker_convert/utils/files/json_resources_loader.py,sha256=flZFixUXRTrOAhvRQpuSQgmJ69yXL94sxukcowLT1JQ,1049
|
@@ -107,9 +107,9 @@ sticker_convert/utils/media/apple_png_normalize.py,sha256=LbrQhc7LlYX4I9ek4XJsZE
|
|
107
107
|
sticker_convert/utils/media/codec_info.py,sha256=_F_iV3k2GYtb8vYZUSKrWl9E7XEW6LDywbnJ-DM6kbk,16476
|
108
108
|
sticker_convert/utils/media/decrypt_kakao.py,sha256=4wq9ZDRnFkx1WmFZnyEogBofiLGsWQM_X69HlA36578,1947
|
109
109
|
sticker_convert/utils/media/format_verify.py,sha256=oM32P186tWe9YxvBQRPr8D3FEmBN3b2rEe_2S_MwxyQ,6236
|
110
|
-
sticker_convert-2.12.
|
111
|
-
sticker_convert-2.12.
|
112
|
-
sticker_convert-2.12.
|
113
|
-
sticker_convert-2.12.
|
114
|
-
sticker_convert-2.12.
|
115
|
-
sticker_convert-2.12.
|
110
|
+
sticker_convert-2.12.2.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
111
|
+
sticker_convert-2.12.2.dist-info/METADATA,sha256=iynMnOEyI6RFdcXwZjEzTD93-zMIiyThJXSHGtRkWz0,53484
|
112
|
+
sticker_convert-2.12.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
113
|
+
sticker_convert-2.12.2.dist-info/entry_points.txt,sha256=MNJ7XyC--ugxi5jS1nzjDLGnxCyLuaGdsVLnJhDHCqs,66
|
114
|
+
sticker_convert-2.12.2.dist-info/top_level.txt,sha256=r9vfnB0l1ZnH5pTH5RvkobnK3Ow9m0RsncaOMAtiAtk,16
|
115
|
+
sticker_convert-2.12.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|