Class TdApi.RequestQrCodeAuthentication

  • Enclosing class:
    TdApi

    public static class TdApi.RequestQrCodeAuthentication
    extends TdApi.Function
    Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.

    Returns Ok

    • Field Detail

      • otherUserIds

        public long[] otherUserIds
        List of user identifiers of other users currently using the application.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RequestQrCodeAuthentication

        public RequestQrCodeAuthentication()
        Default constructor for a function, which requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.

        Returns Ok

      • RequestQrCodeAuthentication

        public RequestQrCodeAuthentication​(long[] otherUserIds)
        Creates a function, which requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword.

        Returns Ok

        Parameters:
        otherUserIds - List of user identifiers of other users currently using the application.