I tried this code to scrape telegram's username, userids. I need to scrape user's about/bio info too but after trying many codes from telethon, pyrogram etc, it didnt't worked. I recently started learning python basics. I have mentioned below the code i have tried, but it didn't work. I am looking for scraping only userid, username and specially /about/bio info of group members.
Tried this code https://github.com/LonamiWebs/Telethon/issues/1243#issue-472897491
I did tried it by using below code but in out i am getting "function get_user_bio at 0x7f xxxxxxxxx" in place of bio in output, rest all details are coming perfectly, its just the bio information which is not correct.
from telethon.tl.functions.users
import GetFullUserRequest
async def get_user_bio(client, user):
try:
full_user = await client(GetFullUserRequest(user))
return full_user.full_user.about
except ChatAdminRequiredError:
# Get the user's bio
bio = full_user.full_user.about