User

class qpy.User(userdict, bot)

Represents a qpost User object

id: int

The unique identifier of this user

display_name: str

The display name of this user

username: str

The username/”@-handle” of this user

avatar_url: str

The URL of this user’s avatar

header: str

The URL of this user’s header image

bio: str

The biography of this user

birthday: str

The birthday date of this user in the format “Y-m-d”

privacy_level: str

The privacy level of this user, one of these values; PUBLIC / PRIVATE / CLOSED

time_created: str

The timestamp of when this user was created

is_verified: bool

Whether or not this user has a verified badge

is_suspended: bool

Whether or not this user’s account was suspended

total_posts: int

The total amount of feed entries this user has created

total_following: int

The amount of users this user follows

total_followers: int

The amount of users that follow this user

total_favorites: int

The amount of posts this user has favorited

follows_me: bool

Whether or not this user follows the currently authenticated user, false if not authenticated

is_blocked: bool

Whether or not the currently authenticated user has blocked this user, false if not authenticated

extras: list

Additional features that were enabled for this user

identities: list[LinkedAccount]

This user’s linked identities

follow()

Follows the user

unfollow()

Unfollows the user

block()

Blocks the user

unblock()

Unblocks the user

known_followers(offset: int = None, limit: int = None)

Returns a list of followers you know

Parameters
  • offset – The amount of users to skip in the query.

  • limit – The maximum amount of users to return.

Returns

list[User]