it returns objects. use attributes
Bro can you say how to fix this error https://batbin.me/wastely
the error is clear, access the .users list if you want generic entity attributes {sed.users[0].first_name} why aren't you using get_entity(user.sender_id), "sed" thing is useless unless you need bio and other info
Can you explain little bit clear of seeing the codes ? I shared the module in DM
I've seen it, learn to code properly first by reading the docs. you're making GetFullUser when it's not neccessary. just use sed = tbot.get_entity(username or id), then sed.first_name and you can also use tbot.edit_admin than EditAdminRequest for simplicity, plus, all fields in ChatAdminRights() are False by default, no need to specificy negative permission, just set the ones you want to True. the rest are already None = False
Ok bro lemme try itb
sed = await tbot.get_entity(id=user.sender_id or input_str)) await tbot( Is this right now ?
try and see, and remove "id="
In place what to give ? If i remove id =
nothing, you can use positional arguments. or if you must use entity=
Can you send it as a code ?
No, it's clear enough. just run your code and search any errors you get or ask it back, it's healthy for the brain cells to face problems and successfully solve them.
Oh ok lemme try
How to solve this bro ? https://spaceb.in/QGtuZzfD
That issue is no longer related with Telethon, and this group is not meant to be a group for learning Python. Some good resources to learn Python: • Official Docs. • Dive Into Python 3. • Learn Python. • Project Python. • Computer Science Circles. • MIT OpenCourse. • Hitchhiker’s Guide to Python. • The @PythonRes Telegram Channel. • Corey Schafer videos for beginners and in general.
Обсуждают сегодня