Documentation - v0.27.0
    Preparing search index...

    Type Alias InputPeerLike

    InputPeerLike:
        | "me"
        | "self"
        | "some_username"
        | string & {}
        | number
        | tl.TypePeer
        | tl.TypeInputPeer
        | tl.TypeInputUser
        | tl.TypeInputChannel
        | { inputPeer: tl.TypeInputPeer }

    Type that can be used as an input peer to most of the high-level methods. Can be:

    • number, representing peer's marked ID*
    • string, representing user's username
    • "me" and "self" which will be replaced with the current user/bot
    • Any object with inputPeer: tl.TypeInputPeer property
    • Raw TL object
    • Telegram has moved to int64 IDs. Though, Levin has confirmed that new IDs will still fit into int53, meaning JS integers are fine.