Skip to content

Telegram: Getting User IDs

jack edited this page Feb 4, 2019 · 1 revision

Getting User IDs

Screenshots in this guide are taken from the Telegram Desktop app, but the process should be the same on the mobile app.

Unfortunately there isn't a straightforward way to obtain user IDs from the Telegram app, but there is a bot that can make it really easy!

  1. Search for "@Telegram Bot Raw" (note the spaces)

    image

  2. Click "Start"

    image

    Immediately, the bot will send you detailed information.

    There's one piece of data we're looking for, the "id" value under the "from" line:

    image
    For privacy reasons, I've blurred and omitted my personal values.

  3. Copy your user ID

    Telegram user IDs are, generally, positive 9-digit numbers: e.g. 123456789. Copy the ID shown.

    This can be used in the TG_USER_WHITELIST (env) / tg_user_whitelist (yaml) configuration for NxBot. It can also be used in the TG_MOTION_RECIPIENT (env) / tg_motion_recipient (yaml) value, to receive motion-event action camera snapshots.

Clone this wiki locally