Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Завершение сессии на всех устройства после использования скрипта #6

Open
Anton-Shvetc opened this issue Sep 27, 2023 · 2 comments

Comments

@Anton-Shvetc
Copy link

Возникала ли проблемы выхода из тг аккаунта со всех устройства после использования скрита? Есть ли решение данной проблемы?

@rbalanev
Copy link

rbalanev commented Oct 3, 2023

Возникала ли проблемы выхода из тг аккаунта со всех устройства после использования скрита? Есть ли решение данной проблемы?

Да, у меня такая же проблема + ограниченное число участников группы\канала в выгрузке. Не более 50 человек((

@Xsenix
Copy link

Xsenix commented Oct 13, 2023

Need to run the client with the following parameters - client = Telegram Client('my_session', api_id, api_hash, system_version="4.16.30-vxCUSTOM")
Необходимо запустить клиент со следующими параметрами - client = Telegram Client('my_session', api_id, api_hash, system_version="4.16.30-vxCUSTOM")

The fact is that authentication algorithms do not allow scripts to work using the current Telegram security patch
Дело в том что алгоритмы аутентификации не позволяет работать скриптам используя текущий патч безопасности Телеграм

In your case, the code will look something like this:
В вашем случае код будет выглядеть примерно так:

my_functions.py

import re
import time
import string
import config
from telethon.sync import TelegramClient
from telethon.tl.types import ChannelParticipantsAdmins, ChannelParticipantsSearch
from telethon import functions, errors
api_id = config.api_id
api_hash = config.api_hash
session = 'session.session'
client = TelegramClient('session.session', api_id, api_hash, system_version="4.16.30-vxCUSTOM")
client.start()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants