teleproto - v1.230.0
    Preparing search index...

    Function getPeerId

    • Convert the given peer into its marked ID by default.

      This "mark" comes from the "bot api" format, and with it the peer type can be identified back. User ID is left unmodified, chat ID is negated, and channel ID is prefixed with -100:

      • userId
      • -chatId
      • -100channel_id

      The original ID and the peer type class can be returned with a call to :meth:resolve_id(marked_id). *

      Parameters

      • peer: EntityLike
      • addMark: boolean = true

      Returns string