Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# UserShared

class telegram.UserShared(request_id, user_id, *, api_kwargs=None)

  Bases: `telegram.UsersShared`

  Alias for `UsersShared`, kept for backward compatibility.

  Available In

  - `telegram.Message.user_shared`

  - `telegram.Message.users_shared`

  New in version 20.1.

  Deprecated since version 20.8: Use `UsersShared` instead.

  property user_id

    Alias for the first entry of `UsersShared.user_ids`.

    Deprecated since version 20.8: Bot API 7.0 deprecates this attribute in favor of `UsersShared.user_ids`.