Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = await client.get_entity(username)
- print(user)
- invite_request = await client(AddChatUserRequest(
- channel=channel.id,
- user_id=user.id
- ))
- loop = asyncio.get_event_loop()
- loop.run_until_complete(invite_request)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement