Задать вопрос
a3d
@a3d
Пофигистический атеист.

Как удалить все свои сообщения в конкретной телеграмм группе?

Есть вот такой репозиторий со py скриптами для удаления сообщений
https://github.com/gurland/telegram-delete-all-messages/

По нему гуглятся простые гайды как использовать например тут:
https://piratecpa.net/2023/10/kak-bystro-udalit-vse-svoi-soobshheniya-v-gruppah-v-telegram/


Однако похоже проблему с установкой зависимостей?

d:\Prog10\AyuGram\telegram-delete-all-messages-master>install.bat

d:\Prog10\AyuGram\telegram-delete-all-messages-master>set filepath=d:\Prog10\AyuGram\telegram-delete-all-messages-master\

d:\Prog10\AyuGram\telegram-delete-all-messages-master>python -m venv d:\Prog10\AyuGram\telegram-delete-all-messages-master\venv

d:\Prog10\AyuGram\telegram-delete-all-messages-master>call d:\Prog10\AyuGram\telegram-delete-all-messages-master\venv\Scripts\activate.bat
Collecting pyrogram==1.4 (from -r d:\Prog10\AyuGram\telegram-delete-all-messages-master\requirements.txt (line 1))
  Downloading Pyrogram-1.4.0-py3-none-any.whl.metadata (4.4 kB)
Collecting tgcrypto (from -r d:\Prog10\AyuGram\telegram-delete-all-messages-master\requirements.txt (line 2))
  Downloading TgCrypto-1.2.5.tar.gz (37 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyaes==1.6.1 (from pyrogram==1.4->-r d:\Prog10\AyuGram\telegram-delete-all-messages-master\requirements.txt (line 1))
  Downloading pyaes-1.6.1.tar.gz (28 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pysocks==1.7.1 (from pyrogram==1.4->-r d:\Prog10\AyuGram\telegram-delete-all-messages-master\requirements.txt (line 1))
  Downloading PySocks-1.7.1-py3-none-any.whl.metadata (13 kB)
Downloading Pyrogram-1.4.0-py3-none-any.whl (3.0 MB)
   ---------------------------------------- 3.0/3.0 MB 6.1 MB/s eta 0:00:00
Downloading PySocks-1.7.1-py3-none-any.whl (16 kB)
Building wheels for collected packages: pyaes, tgcrypto
  Building wheel for pyaes (pyproject.toml) ... done
  Created wheel for pyaes: filename=pyaes-1.6.1-py3-none-any.whl size=26404 sha256=3faf04e1ed8fa92bb7a65c49df6011b411c5b0b9bae55f551ab6cb945c276a28
  Stored in directory: c:\users\a3d\appdata\local\pip\cache\wheels\d9\43\32\ec313dd557e88e419489b9df40c04dad7b99576bde162496f8
  Building wheel for tgcrypto (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for tgcrypto (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      C:\Users\a3d\AppData\Local\Temp\pip-build-env-2chrdhyp\overlay\Lib\site-packages\setuptools\_distutils\dist.py:270: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312\tests
      copying tests\__init__.py -> build\lib.win-amd64-cpython-312\tests
      creating build\lib.win-amd64-cpython-312\tests\cbc
      copying tests\cbc\test_cbc.py -> build\lib.win-amd64-cpython-312\tests\cbc
      copying tests\cbc\__init__.py -> build\lib.win-amd64-cpython-312\tests\cbc
      creating build\lib.win-amd64-cpython-312\tests\ctr
      copying tests\ctr\test_ctr.py -> build\lib.win-amd64-cpython-312\tests\ctr
      copying tests\ctr\__init__.py -> build\lib.win-amd64-cpython-312\tests\ctr
      creating build\lib.win-amd64-cpython-312\tests\ige
      copying tests\ige\test_ige.py -> build\lib.win-amd64-cpython-312\tests\ige
      copying tests\ige\__init__.py -> build\lib.win-amd64-cpython-312\tests\ige
      running build_ext
      building 'tgcrypto' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tgcrypto
Successfully built pyaes
Failed to build tgcrypto

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tgcrypto)
"Successfully installed requirements!"

(venv) d:\Prog10\AyuGram\telegram-delete-all-messages-master>start.bat

(venv) d:\Prog10\AyuGram\telegram-delete-all-messages-master>set filepath=d:\Prog10\AyuGram\telegram-delete-all-messages-master\

(venv) d:\Prog10\AyuGram\telegram-delete-all-messages-master>call d:\Prog10\AyuGram\telegram-delete-all-messages-master\venv\Scripts\activate.bat
Traceback (most recent call last):
  File "d:\Prog10\AyuGram\telegram-delete-all-messages-master\cleaner.py", line 6, in <module>
    from pyrogram import Client
ModuleNotFoundError: No module named 'pyrogram'


Что за модуль pyrogram, почему он может быть не найден?
  • Вопрос задан
  • 45 просмотров
Подписаться 1 Простой 2 комментария
Пригласить эксперта
Ответы на вопрос 2
Ну вот же вроде бы причина:
error: Microsoft Visual C++ 14.0 or greater is required.
Get it with "Microsoft C++ Build Tools":
https://visualstudio.microsoft.com/visual-cpp-buil...


У вас не установлен Visual C++, из-за этого не получается собрать tgcrypto.
Ответ написан
Комментировать
@rPman
не мучайтесь в попытках сделать все в windows, там по определению все будет работать плохо и требовать ручного разруливания зависимостей.

Сделайте все в linux (в т.ч. в штатной виндовой виртуалке wsl)
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы