diff options
author | doc <doc@filenotfound.org> | 2025-06-30 20:11:52 +0000 |
---|---|---|
committer | doc <doc@filenotfound.org> | 2025-06-30 20:11:52 +0000 |
commit | 41e897f4945aaf8fbcdf0b12ac2f08c5e6ae0458 (patch) | |
tree | db7c3520fd91abc3cf56b1a52095d23f3a80d059 /get_telegram_id.sh |
Diffstat (limited to 'get_telegram_id.sh')
-rwxr-xr-x | get_telegram_id.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/get_telegram_id.sh b/get_telegram_id.sh new file mode 100755 index 0000000..5e57d23 --- /dev/null +++ b/get_telegram_id.sh @@ -0,0 +1,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}' |