python-osint
A small, self-contained Python package for OSINT-style result formatting and Telegram reporting.
Key point
This package does not use python-telegram-bot. It talks directly to the official Telegram Bot API using Python's standard library, so there is no PTB dependency.
Install
pip install python-osint
For local development:
pip install -e .
Configure Telegram
Do not put a bot token into the package source or publish it to PyPI.
Set environment variables:
OSINT_BOT_TOKEN=123456:YOUR_TOKEN
OSINT_CHAT_ID=-1001234567890
# Optional:
OSINT_THREAD_ID=123
OSINT_TELEGRAM_TIMEOUT=20
Send a report
import asyncio
from python_osint import OSINTReport
async def main():
report = OSINTReport(
"Firebase Connection Submitted",
fields={
"Firebase URL": "https://example-default-rtdb.firebaseio.com",
"Status": "connected",
},
source="python-osint",
)
await report.send()
asyncio.run(main())
Direct Telegram API access
from python_osint import TelegramBot
bot = TelegramBot() # reads OSINT_BOT_TOKEN
await bot.send_message("-1001234567890", "hello")
Available built-ins currently include:
get_mesend_messageedit_message_textdelete_messageanswer_callback_querysend_documentgetUpdates- long polling through
poll
For the existing OTP/Firebase bot
The intended integration is:
from python_osint import OSINTReport
await OSINTReport(
"Firebase Connection Submitted",
fields={"Firebase URL": firebase_url},
source="otp-panel-bot",
).send()
This lets the existing project report newly-added Firebase panels without installing python-telegram-bot just for reporting.
Important distinction
python-osint can report data to a Telegram bot, but a Telegram bot token does not magically create a public OSINT database. If you want data to be stored centrally, add a database/API layer separately. Never ship private Firebase credentials or bot tokens inside a public PyPI package.
Metadata
Release files for python-osint 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_osint-0.1.0.tar.gz | 11.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_osint-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / python_osint-0.1.0.tar.gz
| Download URL | python_osint-0.1.0.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82020f1c471294c76fa18b907567c37bc9a67c22c76e859ea9336238b2c68b9d
|
|
BLAKE2b-256 checksum How to use checksums |
8ab1c8bd1dc16a03967fa98222fb28f14ee91d4dab4c09f1cda92998f63ae029
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / python_osint-0.1.0-py3-none-any.whl
| Download URL | python_osint-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
876329e02237e70aa05fcec368a28bf6a1e95390486d985a3b3089176394fbba
|
|
BLAKE2b-256 checksum How to use checksums |
56ff835ac03ae955cbb792f5adf59bf714a72cda220c877355ec101f558fdb87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|