Get Telegram Bot Chat ID

Send a message to your Telegram Bot first using the Bot token, then you can retrieve the Chat ID.

curl --silent --request GET https://api.telegram.org/bot<bot_api_token>/getUpdates | jq '.result[]|.message.chat.id'