Preparing search index...
The search index is not available
mtcute - v0.17.2
mtcute
@mtcute/core
index
getMarkedPeerId
Function getMarkedPeerId
get
Marked
Peer
Id
(
peerId
,
peerType
)
:
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
get
Marked
Peer
Id
(
peer
)
:
number
Parameters
peer
:
|
TypePeer
|
TypeInputPeer
|
TypeInputUser
|
TypeInputChannel
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
mtcute - v0.17.2
Loading...
Get the marked (non-bare) ID from a tl.TypePeer
Mark* is bot API compatible, which is:
-1e12
is subtracted for channels