summaryrefslogtreecommitdiff
path: root/get_telegram_id.sh
blob: 5e57d23658962bc76f3a8e36334773a45c7b025e (plain)
1
2
3
4
5
6
#!/bin/bash

read -p "Enter your Telegram Bot Token: " TOKEN

echo "Fetching recent updates..."
curl -s "https://api.telegram.org/bot$TOKEN/getUpdates" | jq '.result[].message.chat | {id, type, title, username, first_name}'