Back to rankings

n0a/telegram-get-remote-ip

Python

Get IP address on other side audio call in Telegram.

telegramip
Star Growth
Stars
1.9k
Forks
217
Weekly Growth
Issues
12
5001k1.5k
Dec 2020Oct 2022Sep 2024Jul 2026
ArtifactsPyPIpip install telegram-get-remote-ip
README

Telegram get remote IP

New 2023 version written in python, against bash.

This script is intended to be used to determine the IP address of the interlocutor in the telegram messenger. You must have tshark installed to use it.

Working on MacOS, Linux and Windows.

Thx @WonderMr for adding Windows support and other improovements.

TechCrunch wrote about the utility — Telegram is still leaking user IP addresses to contacts

Attention! To determine the IP address, you must be in each other's contacts.

Get caller IP

How to use?

  1. Install Telegram desktop client on Linux or Mac.
  2. Install tshark (sudo apt install tshark or download for macOS here, it's comes with wireshark).
  3. Run script, call and wait for an answer.
  4. Profit! You have received the IP address of the interlocutor.

Get & Run (Ubuntu 20 example)

$ sudo apt update
$ sudo apt install -y python3-pip python3-venv tshark
$ git clone https://github.com/n0a/telegram-get-remote-ip
$ cd telegram-get-remote-ip
$ python3 -m venv venv
$ source ./venv/bin/activate
$ sudo pip3 install -r requirements.txt
$ sudo python3 tg_get_ip.py

Or specify the interface immediately at startup:

$ sudo python3 -i en0 tg_get_ip.py

PS. Possible work with termux on android smartphones. Root authority is required to capture traffic.

Docker

Alternatively to the previous Ubuntu + pyenv way of running it, a Dockerfile is provided, just build it with:

$ docker build ./ -t telegram-get-remote-ip

And run it with:

$ docker run -it --cap-add=NET_RAW --cap-add=NET_ADMIN telegram-get-remote-ip

Для русскоязыных пользователей

Более подробно об утилите можно почитать у меня в блоге: https://n0a.pw/telegram-get-remote-ip/

Related repositories
DIYgod/RSSHub

🧡 Everything is RSSible

TypeScriptnpmGNU Affero General Public License v3.0rsstwitter
docs.rsshub.app
45.3k10k
AstrBotDevs/AstrBot

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

PythonPyPIGNU Affero General Public License v3.0aichatbot
astrbot.app
37.5k2.6k
telegramdesktop/tdesktop

Telegram Desktop messaging app

C++Othertelegramtelegram-desktop
desktop.telegram.org
32.4k6.9k
tqdm/tqdm

:zap: A Fast, Extensible Progress Bar for Python and CLI

PythonPyPIOtherprogressbarprogressmeter
tqdm.github.io
31.2k1.5k
DrKLO/Telegram

Telegram for Android source

JavaMavenGNU General Public License v2.0telegram
29.6k9.8k
python-telegram-bot/python-telegram-bot

We have made you a wrapper you can't refuse

PythonPyPIGNU General Public License v3.0pythontelegram
python-telegram-bot.org
29.3k6.1k
pppscn/SmsForwarder

短信转发器——监控Android手机短信、来电、APP通知,并根据指定规则转发到其他手机:钉钉群自定义机器人、钉钉企业内机器人、企业微信群机器人、飞书机器人、企业微信应用消息、邮箱、bark、webhook、Telegram机器人、Server酱、PushPlus、手机短信等。包括主动控制服务端与客户端,让你轻松远程发短信、查短信、查通话、查话簿、查电量等。(V3.0 新增)PS.这个APK主要是学习与自用,如有BUG请提ISSUE,同时欢迎大家提PR指正

KotlinBSD 2-Clause "Simplified" Licensesmsdingding
27.2k3.3k
AZeC4/TelegramGroup

2026最新悄咪咪收集的10000+个Telegram群合集,附全网最有趣好用的机器人BOT🤖【dianbaodaohang.com】

telegramtelegram-bot
dianbaodaohang.com
22.1k1.5k
lss233/kirara-ai

🤖 可 DIY 的 多模态 AI 聊天机器人 | 🚀 快速接入 微信、 QQ、Telegram、等聊天平台 | 🦈支持DeepSeek、Grok、Claude、Ollama、Gemini、OpenAI | 工作流系统、网页搜索、AI画图、人设调教、虚拟女仆、语音对话 |

PythonPyPIGNU Affero General Public License v3.0chatgptopenai
kirara-docs.app.lss233.com
18.9k1.8k
elizaOS/eliza

Open source agentic operating system

TypeScriptnpmMIT Licenseagentagentic
elizaos.ai
18.8k5.6k
xming521/WeClone

🚀 One-stop solution for creating your AI twin from chat history 💡 Fine-tune LLMs with your chat logs to capture your unique style, then bind to a chatbot to bring your digital self to life.

PythonPyPIGNU Affero General Public License v3.0llmqwen
weclone.love
18.1k1.5k
langbot-app/LangBot

Production-grade platform for building agentic IM bots - 生产级多平台智能机器人开发平台/ Agent、知识库编排、插件系统 / Bots for Discord / Slack / LINE / Telegram / WeChat(企业微信, 企微智能机器人, 公众号) / 飞书 / 钉钉 / QQ / Matrix e.g. Integrated with ChatGPT(GPT), DeepSeek, Dify, n8n, Langflow, Coze, Claude, Gemini, GLM, Ollama, SiliconFlow, Moonshot, openclaw / hermes agent, deerflow

PythonPyPIApache License 2.0qqopenai
langbot.app
17k1.5k