teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
Authorization
Class Authorization
Hierarchy (
View Summary
)
VirtualClass
<
{
apiId
:
int
;
appName
:
string
;
appVersion
:
string
;
callRequestsDisabled
?:
boolean
;
country
:
string
;
current
?:
boolean
;
dateActive
:
int
;
dateCreated
:
int
;
deviceModel
:
string
;
encryptedRequestsDisabled
?:
boolean
;
hash
:
long
;
ip
:
string
;
officialApp
?:
boolean
;
passwordPending
?:
boolean
;
platform
:
string
;
region
:
string
;
systemVersion
:
string
;
unconfirmed
?:
boolean
;
}
,
>
Authorization
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
api
Id
app
Name
app
Version
call
Requests
Disabled?
class
Name
class
Type
CONSTRUCTOR_
ID
country
current?
date
Active
date
Created
device
Model
encrypted
Requests
Disabled?
hash
ip
official
App?
original
Args
password
Pending?
platform
region
SUBCLASS_
OF_
ID
system
Version
unconfirmed?
Constructors
constructor
new
Authorization
(
args
:
{
apiId
:
number
;
appName
:
string
;
appVersion
:
string
;
callRequestsDisabled
?:
boolean
;
country
:
string
;
current
?:
boolean
;
dateActive
:
number
;
dateCreated
:
number
;
deviceModel
:
string
;
encryptedRequestsDisabled
?:
boolean
;
hash
:
BigInteger
;
ip
:
string
;
officialApp
?:
boolean
;
passwordPending
?:
boolean
;
platform
:
string
;
region
:
string
;
systemVersion
:
string
;
unconfirmed
?:
boolean
;
}
,
)
:
Api
.
Authorization
Parameters
args
:
{
apiId
:
number
;
appName
:
string
;
appVersion
:
string
;
callRequestsDisabled
?:
boolean
;
country
:
string
;
current
?:
boolean
;
dateActive
:
number
;
dateCreated
:
number
;
deviceModel
:
string
;
encryptedRequestsDisabled
?:
boolean
;
hash
:
BigInteger
;
ip
:
string
;
officialApp
?:
boolean
;
passwordPending
?:
boolean
;
platform
:
string
;
region
:
string
;
systemVersion
:
string
;
unconfirmed
?:
boolean
;
}
Returns
Api
.
Authorization
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
Api
.
Authorization
Parameters
reader
:
any
Returns
Api
.
Authorization
Static
serialize
Bytes
serializeBytes
(
data
:
string
|
Buffer
<
ArrayBufferLike
>
)
:
Buffer
Parameters
data
:
string
|
Buffer
<
ArrayBufferLike
>
Returns
Buffer
Static
serialize
Date
serializeDate
(
date
:
number
|
Date
)
:
Buffer
Parameters
date
:
number
|
Date
Returns
Buffer
get
Bytes
getBytes
()
:
Buffer
Returns
Buffer
to
JSON
toJSON
()
:
{
apiId
:
number
;
appName
:
string
;
appVersion
:
string
;
callRequestsDisabled
?:
boolean
;
country
:
string
;
current
?:
boolean
;
dateActive
:
number
;
dateCreated
:
number
;
deviceModel
:
string
;
encryptedRequestsDisabled
?:
boolean
;
hash
:
BigInteger
;
ip
:
string
;
officialApp
?:
boolean
;
passwordPending
?:
boolean
;
platform
:
string
;
region
:
string
;
systemVersion
:
string
;
unconfirmed
?:
boolean
;
}
Returns
{
apiId
:
number
;
appName
:
string
;
appVersion
:
string
;
callRequestsDisabled
?:
boolean
;
country
:
string
;
current
?:
boolean
;
dateActive
:
number
;
dateCreated
:
number
;
deviceModel
:
string
;
encryptedRequestsDisabled
?:
boolean
;
hash
:
BigInteger
;
ip
:
string
;
officialApp
?:
boolean
;
passwordPending
?:
boolean
;
platform
:
string
;
region
:
string
;
systemVersion
:
string
;
unconfirmed
?:
boolean
;
}
Properties
Static
class
Name
className
:
string
Static
class
Type
classType
:
"constructor"
|
"request"
Static
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
number
Static
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
number
api
Id
apiId
:
number
app
Name
appName
:
string
app
Version
appVersion
:
string
Optional
call
Requests
Disabled
callRequestsDisabled
?:
boolean
class
Name
className
:
"Authorization"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
2902578717
country
country
:
string
Optional
current
current
?:
boolean
date
Active
dateActive
:
number
date
Created
dateCreated
:
number
device
Model
deviceModel
:
string
Optional
encrypted
Requests
Disabled
encryptedRequestsDisabled
?:
boolean
hash
hash
:
BigInteger
ip
ip
:
string
Optional
official
App
officialApp
?:
boolean
original
Args
originalArgs
:
{
apiId
:
number
;
appName
:
string
;
appVersion
:
string
;
callRequestsDisabled
?:
boolean
;
country
:
string
;
current
?:
boolean
;
dateActive
:
number
;
dateCreated
:
number
;
deviceModel
:
string
;
encryptedRequestsDisabled
?:
boolean
;
hash
:
BigInteger
;
ip
:
string
;
officialApp
?:
boolean
;
passwordPending
?:
boolean
;
platform
:
string
;
region
:
string
;
systemVersion
:
string
;
unconfirmed
?:
boolean
;
}
Optional
password
Pending
passwordPending
?:
boolean
platform
platform
:
string
region
region
:
string
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
3373514778
system
Version
systemVersion
:
string
Optional
unconfirmed
unconfirmed
?:
boolean
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
api
Id
app
Name
app
Version
call
Requests
Disabled
class
Name
class
Type
CONSTRUCTOR_
ID
country
current
date
Active
date
Created
device
Model
encrypted
Requests
Disabled
hash
ip
official
App
original
Args
password
Pending
platform
region
SUBCLASS_
OF_
ID
system
Version
unconfirmed
GitHub
npm
Issues
teleproto - v1.229.0
Loading...