sticker-convert 2.12.0__tar.gz → 2.12.2__tar.gz

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.
Files changed (125) hide show
  1. {sticker_convert-2.12.0/src/sticker_convert.egg-info → sticker_convert-2.12.2}/PKG-INFO +1 -1
  2. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/download_kakao.py +1 -1
  3. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/uploaders/upload_viber.py +6 -5
  4. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/telegram_api.py +5 -2
  5. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/telethon_setup.py +6 -1
  6. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/chrome_remotedebug.py +0 -3
  7. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/version.py +1 -1
  8. {sticker_convert-2.12.0 → sticker_convert-2.12.2/src/sticker_convert.egg-info}/PKG-INFO +1 -1
  9. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/LICENSE +0 -0
  10. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/MANIFEST.in +0 -0
  11. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/README.md +0 -0
  12. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/pyproject.toml +0 -0
  13. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/requirements.txt +0 -0
  14. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/setup.cfg +0 -0
  15. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/__init__.py +0 -0
  16. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/__main__.py +0 -0
  17. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/cli.py +0 -0
  18. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/converter.py +0 -0
  19. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/definitions.py +0 -0
  20. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/__init__.py +0 -0
  21. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/download_base.py +0 -0
  22. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/download_discord.py +0 -0
  23. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/download_line.py +0 -0
  24. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/download_signal.py +0 -0
  25. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/download_telegram.py +0 -0
  26. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/downloaders/download_viber.py +0 -0
  27. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui.py +0 -0
  28. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/__init__.py +0 -0
  29. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/__init__.py +0 -0
  30. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/comp_frame.py +0 -0
  31. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/config_frame.py +0 -0
  32. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/control_frame.py +0 -0
  33. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/cred_frame.py +0 -0
  34. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/input_frame.py +0 -0
  35. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/output_frame.py +0 -0
  36. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/progress_frame.py +0 -0
  37. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/frames/right_clicker.py +0 -0
  38. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/gui_utils.py +0 -0
  39. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/__init__.py +0 -0
  40. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/advanced_compression_window.py +0 -0
  41. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/base_window.py +0 -0
  42. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/discord_get_auth_window.py +0 -0
  43. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/kakao_get_auth_window.py +0 -0
  44. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/line_get_auth_window.py +0 -0
  45. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/signal_get_auth_window.py +0 -0
  46. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/gui_components/windows/viber_get_auth_window.py +0 -0
  47. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/.github/FUNDING.yml +0 -0
  48. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/.gitignore +0 -0
  49. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/README.md +0 -0
  50. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers/Info.plist +0 -0
  51. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Info.plist +0 -0
  52. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Contents.json +0 -0
  53. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Contents.json +0 -0
  54. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 1.sticker/Contents.json +0 -0
  55. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 1.sticker/Sticker 1.png +0 -0
  56. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 2.sticker/Contents.json +0 -0
  57. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 2.sticker/Sticker 2.png +0 -0
  58. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 3.sticker/Contents.json +0 -0
  59. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 3.sticker/Sticker 3.png +0 -0
  60. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/App-Store-1024x1024pt.png +0 -0
  61. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Contents.json +0 -0
  62. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-App-Store-1024x768pt.png +0 -0
  63. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPad-67x50pt@2x.png +0 -0
  64. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPad-Pro-74x55pt@2x.png +0 -0
  65. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPhone-60x45pt@2x.png +0 -0
  66. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPhone-60x45pt@3x.png +0 -0
  67. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@2x.png +0 -0
  68. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@3x.png +0 -0
  69. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@2x.png +0 -0
  70. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@3x.png +0 -0
  71. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPad-Settings-29pt@2x.png +0 -0
  72. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPhone-Settings-29pt@3x.png +0 -0
  73. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPhone-settings-29pt@2x.png +0 -0
  74. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.pbxproj +0 -0
  75. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
  76. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
  77. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcuserdata/niklaspeterson.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  78. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/xcuserdata/niklaspeterson.xcuserdatad/xcschemes/xcschememanagement.plist +0 -0
  79. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/job.py +0 -0
  80. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/job_option.py +0 -0
  81. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/NotoColorEmoji.ttf +0 -0
  82. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/appicon.icns +0 -0
  83. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/appicon.ico +0 -0
  84. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/appicon.png +0 -0
  85. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/compression.json +0 -0
  86. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/emoji.json +0 -0
  87. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/help.json +0 -0
  88. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/input.json +0 -0
  89. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/memdump_linux.sh +0 -0
  90. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/memdump_windows.ps1 +0 -0
  91. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/resources/output.json +0 -0
  92. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/uploaders/__init__.py +0 -0
  93. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/uploaders/compress_wastickers.py +0 -0
  94. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/uploaders/upload_base.py +0 -0
  95. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/uploaders/upload_signal.py +0 -0
  96. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/uploaders/upload_telegram.py +0 -0
  97. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/uploaders/xcode_imessage.py +0 -0
  98. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/get_discord_auth.py +0 -0
  99. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/get_kakao_auth.py +0 -0
  100. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/get_kakao_desktop_auth.py +0 -0
  101. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/get_line_auth.py +0 -0
  102. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/get_signal_auth.py +0 -0
  103. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/auth/get_viber_auth.py +0 -0
  104. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/callback.py +0 -0
  105. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/emoji.py +0 -0
  106. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/files/cache_store.py +0 -0
  107. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/files/json_manager.py +0 -0
  108. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/files/json_resources_loader.py +0 -0
  109. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/files/metadata_handler.py +0 -0
  110. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/files/run_bin.py +0 -0
  111. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/files/sanitize_filename.py +0 -0
  112. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/media/apple_png_normalize.py +0 -0
  113. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/media/codec_info.py +0 -0
  114. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/media/decrypt_kakao.py +0 -0
  115. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/media/format_verify.py +0 -0
  116. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/process.py +0 -0
  117. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert/utils/url_detect.py +0 -0
  118. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert.egg-info/SOURCES.txt +0 -0
  119. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert.egg-info/dependency_links.txt +0 -0
  120. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert.egg-info/entry_points.txt +0 -0
  121. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert.egg-info/requires.txt +0 -0
  122. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/src/sticker_convert.egg-info/top_level.txt +0 -0
  123. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/tests/test_compression.py +0 -0
  124. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/tests/test_download.py +0 -0
  125. {sticker_convert-2.12.0 → sticker_convert-2.12.2}/tests/test_export.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sticker-convert
3
- Version: 2.12.0
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>
@@ -146,7 +146,7 @@ class DownloadKakao(DownloadBase):
146
146
  "Warning: auth_token invalid, cannot download animated sticker"
147
147
  )
148
148
  self.cb.put("Downloading static stickers...")
149
- self.download_static(thumbnail_urls)
149
+ return self.download_static(thumbnail_urls)
150
150
  else:
151
151
  return self.download_animated(item_code)
152
152
 
@@ -25,13 +25,14 @@ class UploadViber(UploadBase):
25
25
  self.png_spec = copy.deepcopy(self.base_spec)
26
26
  self.png_spec.set_res_max(490)
27
27
  self.png_spec.set_format((".png",))
28
+ self.opt_comp_merged = copy.deepcopy(self.opt_comp)
29
+ self.opt_comp_merged.merge(self.png_spec)
28
30
 
29
31
  self.png_cover_spec = copy.deepcopy(self.base_spec)
30
32
  self.png_cover_spec.set_res_max(120)
31
- self.png_spec.set_format((".png",))
32
-
33
- self.opt_comp_merged = copy.deepcopy(self.opt_comp)
34
- self.opt_comp_merged.merge(self.png_spec)
33
+ self.png_cover_spec.set_format((".png",))
34
+ self.opt_comp_cover_merged = copy.deepcopy(self.opt_comp)
35
+ self.opt_comp_cover_merged.merge(self.png_cover_spec)
35
36
 
36
37
  def upload_stickers_viber(self) -> Tuple[int, int, List[str]]:
37
38
  urls: List[str] = []
@@ -83,7 +84,7 @@ class UploadViber(UploadBase):
83
84
  _, _, cover_bytes, _ = StickerConvert.convert( # type: ignore
84
85
  cover_path,
85
86
  Path("bytes.png"),
86
- self.opt_comp_merged,
87
+ self.opt_comp_cover_merged,
87
88
  self.cb,
88
89
  self.cb_return,
89
90
  )
@@ -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(Message, await self.client.send_file("Stickers", msg)) # type: ignore
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("/newemojipack")
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
- await client.sign_in(phone_number, code)
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 (
@@ -38,7 +38,6 @@ class CRD:
38
38
  self.port = port
39
39
 
40
40
  launch_cmd: List[str] = []
41
- self.display = None
42
41
  if (
43
42
  platform.system() == "Linux"
44
43
  and os.environ.get("DISPLAY", False) is False
@@ -230,5 +229,3 @@ class CRD:
230
229
  def close(self):
231
230
  self.ws.close()
232
231
  self.chrome_proc.kill()
233
- if self.display:
234
- self.display.stop()
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- __version__ = "2.12.0"
3
+ __version__ = "2.12.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sticker-convert
3
- Version: 2.12.0
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>