Class TdApi.GetPreferredCountryLanguage

Enclosing class:
TdApi

public static class TdApi.GetPreferredCountryLanguage extends TdApi.Function<TdApi.Text>
Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.

Returns Text

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    A two-letter ISO 3166-1 alpha-2 country code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details.
    Creates a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • countryCode

      public String countryCode
      A two-letter ISO 3166-1 alpha-2 country code.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetPreferredCountryLanguage

      public GetPreferredCountryLanguage()
      Default constructor for a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.

      Returns Text

    • GetPreferredCountryLanguage

      public GetPreferredCountryLanguage(String countryCode)
      Creates a function, which returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.

      Returns Text

      Parameters:
      countryCode - A two-letter ISO 3166-1 alpha-2 country code.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR