Class TdApi.SendPhoneNumberConfirmationCode

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SendPhoneNumberConfirmationCode
Enclosing class:
TdApi

public static class TdApi.SendPhoneNumberConfirmationCode
extends TdApi.Function
Sends phone number confirmation code. Should be called when user presses "https://t.me/confirmphone?phone=*******&hash=**********" or "tg://confirmphone?phone=*******&hash=**********" link.

Returns AuthenticationCodeInfo

  • Field Details

    • hash

      public String hash
      Value of the "hash" parameter from the link.
    • phoneNumber

      public String phoneNumber
      Value of the "phone" parameter from the link.
    • settings

      Settings for the authentication of the user's phone number.
    • CONSTRUCTOR

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

    • SendPhoneNumberConfirmationCode

      public SendPhoneNumberConfirmationCode()
      Sends phone number confirmation code. Should be called when user presses "https://t.me/confirmphone?phone=*******&hash=**********" or "tg://confirmphone?phone=*******&hash=**********" link.

      Returns AuthenticationCodeInfo

    • SendPhoneNumberConfirmationCode

      public SendPhoneNumberConfirmationCode​(String hash, String phoneNumber, TdApi.PhoneNumberAuthenticationSettings settings)
      Sends phone number confirmation code. Should be called when user presses "https://t.me/confirmphone?phone=*******&hash=**********" or "tg://confirmphone?phone=*******&hash=**********" link.

      Returns AuthenticationCodeInfo

      Parameters:
      hash - String Value of the "hash" parameter from the link.
      phoneNumber - String Value of the "phone" parameter from the link.
      settings - PhoneNumberAuthenticationSettings Settings for the authentication of the user's phone number.
    • SendPhoneNumberConfirmationCode

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