Module tdlight.api

Class TdApi.SharePhoneNumber

Enclosing class:
TdApi

public static final class TdApi.SharePhoneNumber extends TdApi.Function<TdApi.Ok>
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:
  • 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
      Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber. Returns Ok
      Throws:
      IOException
  • Method Details