В
Size: a a a
В
⟁ᴡ
В
F🍭
⟁ᴡ
Successfully unmuted:
919017785
⟁ᴡ
⟁ᴡ
F🍭
⟁ᴡ
from datetime import datetime
from telethon.tl import functions
now = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
joined = (await client(functions.channels.GetParticipantRequest(channel=event.chat_id, user_id=(await event.get_reply_message()).from_id))).participant.date.strftime('%Y-%m-%d %H:%M:%S')
delta = datetime.strptime(now, '%Y-%m-%d %H:%M:%S') - datetime.strptime(joined, '%Y-%m-%d %H:%M:%S')
await event.respond(f"__Last joined date: {joined} ({delta.days} days ago)__")
return;
None
⟁ᴡ
F🍭
⟁ᴡ
F🍭
⟁ᴡ
from telethon.tl import functions
(await client(functions.channels.GetParticipantRequest(channel=event.chat_id, user_id=267519921))).participant.date.strftime('%Y-%m-%d %H:%M:%S')
2019-10-31 12:14:44
F🍭
С
️️
F🍭
С
⟁ᴡ
from telethon.tl.patched import MessageService
from telethon.tl import types
[m.id async for m in client.iter_messages('telethonrussian', limit=None, reverse=True) if isinstance(m.action, (types.MessageActionChatAddUser, types.MessageActionChatJoinedByLink)) and m.action.users == 267519921]
[]