summaryrefslogtreecommitdiff
path: root/get_telegram_id.sh
diff options
context:
space:
mode:
authordoc <doc@filenotfound.org>2025-06-30 20:11:52 +0000
committerdoc <doc@filenotfound.org>2025-06-30 20:11:52 +0000
commit41e897f4945aaf8fbcdf0b12ac2f08c5e6ae0458 (patch)
treedb7c3520fd91abc3cf56b1a52095d23f3a80d059 /get_telegram_id.sh
commit of legacy codeHEADmaster
Diffstat (limited to 'get_telegram_id.sh')
-rwxr-xr-xget_telegram_id.sh6
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}'