Preparing search index...
The search index is not available
Documentation - v0.19.5
Documentation
@mtcute/core
index
getMarkedPeerId
Function getMarkedPeerId
getMarkedPeerId
(
peerId
:
number
,
peerType
:
BasicPeerType
)
:
number
Get the marked (non-bare) ID from a
tl.TypePeer
Mark* is bot API compatible, which is:
ID stays the same for users
ID is negated for chats
ID is negated and
-1e12
is subtracted for channels
Parameters
peerId
:
number
peerType
:
BasicPeerType
Returns
number
getMarkedPeerId
(
peer
:
TypePeer
|
TypeInputPeer
|
TypeInputUser
|
TypeInputChannel
,
)
:
number
Get the marked (non-bare) ID from a
tl.TypePeer
Mark* is bot API compatible, which is:
ID stays the same for users
ID is negated for chats
ID is negated and
-1e12
is subtracted for channels
Parameters
peer
:
TypePeer
|
TypeInputPeer
|
TypeInputUser
|
TypeInputChannel
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation - v0.19.5
Loading...
Get the marked (non-bare) ID from a tl.TypePeer
Mark* is bot API compatible, which is:
-1e12
is subtracted for channels