Python Telethon получает всех администраторов группыPython

Программы на Python
Anonymous
Python Telethon получает всех администраторов группы

Сообщение Anonymous »

Я хочу получить администраторов групп Telegram, я пытаюсь использовать этот код, но получаю пустой ответ, мой код
client.connect()
if not client.is_user_authorized():
client.send_code_request(phone)
client.sign_in(phone, input('Enter the code: '))
result = client(functions.channels.GetParticipantsRequest(
channel='mychannel',
filter=types.ChannelParticipantsAdmins(),
offset=42,
limit=100,
hash=0
))
print(result.stringify())

вот мой ответ
ChannelParticipants(
count=1,
participants=[
],
users=[
]
)


Подробнее здесь: https://stackoverflow.com/questions/689 ... s-of-group

Вернуться в «Python»