Class TdApi.SharePhoneNumber

Enclosing class:
TdApi

public static class TdApi.SharePhoneNumber
extends TdApi.Function
Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber.

Returns Ok

  • Field Details

    • userId

      public long userId
      Identifier of the user with whom to share the phone number. The user must be a mutual contact.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • SharePhoneNumber

      public SharePhoneNumber()
      Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber.

      Returns Ok

    • SharePhoneNumber

      public SharePhoneNumber​(long userId)
      Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber.

      Returns Ok

      Parameters:
      userId - long Identifier of the user with whom to share the phone number. The user must be a mutual contact.
    • SharePhoneNumber

      public SharePhoneNumber​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details