S
Size: a a a
S
⟁ᴡ
from telethon.tl.types import ChannelParticipantsAdmins, ChannelParticipantCreator
e = event; c = event.client
p((await c.get_participants('telethonrussian', filter=ChannelParticipantsAdmins))[4].participant.rank)
'fox'
КА
from telethon.tl.types import ChannelParticipantsAdmins, ChannelParticipantCreator
e = event; c = event.client
p((await c.get_participants('telethonrussian', filter=ChannelParticipantsAdmins))[4].participant.rank)
'fox'
⟁ᴡ
from telethon.tl.types import ChannelParticipantsAdmins
print((await client.get_participants('telethonrussian', filter=ChannelParticipantsAdmins))[4].participant.rank)
fox
КА
from telethon.tl.types import ChannelParticipantsAdmins
(await client.get_participants('telethonrussian', filter=ChannelParticipantsAdmins))[0]
User(id=593700134, is_self=False, contact=False, mutual_contact=False, deleted=False, bot=False, bot_chat_history=False, bot_nochats=False, verified=False, restricted=False, min=False, bot_inline_geo=False, support=False, scam=False, access_hash=-1718177361374414276, first_name='⟁⃤ʀᴛʜᴜʀ ᴡ⟁ʏɴΞ', last_name=None, username=None, phone=None, photo=UserProfilePhoto(photo_id=2549922659617056690, photo_small=FileLocationToBeDeprecated(volume_id=100008100762, local_id=12423), photo_big=FileLocationToBeDeprecated(volume_id=100008100762, local_id=12425), dc_id=1), status=UserStatusRecently(), bot_info_version=None, restriction_reason=[], bot_inline_placeholder=None, lang_code=None)
КА
from telethon.tl.types import ChannelParticipantsAdmins
print((await client.get_participants('telethonrussian', filter=ChannelParticipantsAdmins))[4].participant.rank)
fox
from telethon.tl.types import ChannelParticipantsAdmins
a = (await client.get_participants('telethonrussian', filter=ChannelParticipantsAdmins))
reply.sender in a
True
КА
⟁ᴡ
MV
from telethon.tl.types import ChannelParticipantsAdmins
print((await client.get_participants('telethonrussian', filter=ChannelParticipantsAdmins))[4].participant.rank)
fox
⟁ᴡ
КА
reply.sender.participant.rank
AttributeError: 'User' object has no attribute 'participant'
КА
⟁ᴡ
⟁ᴡ
reply.sender.participant.rank
AttributeError: 'User' object has no attribute 'participant'
MV
⟁ᴡ
from telethon.tl.types import ChannelParticipantsAdmins, ChannelParticipantCreator
from telethon import utils
await event.respond("\n".join(map(lambda x: f"**Name: **[{utils.get_display_name(x)}](tg://user?id={x.id})\n**Rank: **`{x.participant.rank or 'admin'}`\n", list(p for p in await client.get_participants('telethonrussian', filter=ChannelParticipantsAdmins)))))
return;
None
⟁ᴡ
tl contributor
this guy helps
fox
this bot helps
this guy helps
⟁ᴡ
MV