teleproto - v1.229.0
GitHub
npm
Issues
Preparing search index...
Api
MessageActionGiftCode
Class MessageActionGiftCode
Hierarchy (
View Summary
)
VirtualClass
<
{
amount
?:
long
;
boostPeer
?:
TypePeer
;
cryptoAmount
?:
long
;
cryptoCurrency
?:
string
;
currency
?:
string
;
days
:
int
;
message
?:
TypeTextWithEntities
;
slug
:
string
;
unclaimed
?:
boolean
;
viaGiveaway
?:
boolean
;
}
,
>
MessageActionGiftCode
Index
Constructors
constructor
Methods
from
Reader
serialize
Bytes
serialize
Date
get
Bytes
to
JSON
Properties
class
Name
class
Type
CONSTRUCTOR_
ID
SUBCLASS_
OF_
ID
amount?
boost
Peer?
class
Name
class
Type
CONSTRUCTOR_
ID
crypto
Amount?
crypto
Currency?
currency?
days
message?
original
Args
slug
SUBCLASS_
OF_
ID
unclaimed?
via
Giveaway?
Constructors
constructor
new
MessageActionGiftCode
(
args
:
{
amount
?:
BigInteger
;
boostPeer
?:
TypePeer
;
cryptoAmount
?:
BigInteger
;
cryptoCurrency
?:
string
;
currency
?:
string
;
days
:
number
;
message
?:
TextWithEntities
;
slug
:
string
;
unclaimed
?:
boolean
;
viaGiveaway
?:
boolean
;
}
,
)
:
MessageActionGiftCode
Parameters
args
:
{
amount
?:
BigInteger
;
boostPeer
?:
TypePeer
;
cryptoAmount
?:
BigInteger
;
cryptoCurrency
?:
string
;
currency
?:
string
;
days
:
number
;
message
?:
TextWithEntities
;
slug
:
string
;
unclaimed
?:
boolean
;
viaGiveaway
?:
boolean
;
}
Returns
MessageActionGiftCode
Methods
Static
from
Reader
fromReader
(
reader
:
any
)
:
MessageActionGiftCode
Parameters
reader
:
any
Returns
MessageActionGiftCode
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
()
:
{
amount
?:
BigInteger
;
boostPeer
?:
TypePeer
;
cryptoAmount
?:
BigInteger
;
cryptoCurrency
?:
string
;
currency
?:
string
;
days
:
number
;
message
?:
TextWithEntities
;
slug
:
string
;
unclaimed
?:
boolean
;
viaGiveaway
?:
boolean
;
}
Returns
{
amount
?:
BigInteger
;
boostPeer
?:
TypePeer
;
cryptoAmount
?:
BigInteger
;
cryptoCurrency
?:
string
;
currency
?:
string
;
days
:
number
;
message
?:
TextWithEntities
;
slug
:
string
;
unclaimed
?:
boolean
;
viaGiveaway
?:
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
Optional
amount
amount
?:
BigInteger
Optional
boost
Peer
boostPeer
?:
TypePeer
class
Name
className
:
"MessageActionGiftCode"
class
Type
classType
:
"constructor"
CONSTRUCTOR_
ID
CONSTRUCTOR_ID
:
834962247
Optional
crypto
Amount
cryptoAmount
?:
BigInteger
Optional
crypto
Currency
cryptoCurrency
?:
string
Optional
currency
currency
?:
string
days
days
:
number
Optional
message
message
?:
TextWithEntities
original
Args
originalArgs
:
{
amount
?:
BigInteger
;
boostPeer
?:
TypePeer
;
cryptoAmount
?:
BigInteger
;
cryptoCurrency
?:
string
;
currency
?:
string
;
days
:
number
;
message
?:
TextWithEntities
;
slug
:
string
;
unclaimed
?:
boolean
;
viaGiveaway
?:
boolean
;
}
slug
slug
:
string
SUBCLASS_
OF_
ID
SUBCLASS_OF_ID
:
2256589094
Optional
unclaimed
unclaimed
?:
boolean
Optional
via
Giveaway
viaGiveaway
?:
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
amount
boost
Peer
class
Name
class
Type
CONSTRUCTOR_
ID
crypto
Amount
crypto
Currency
currency
days
message
original
Args
slug
SUBCLASS_
OF_
ID
unclaimed
via
Giveaway
GitHub
npm
Issues
teleproto - v1.229.0
Loading...