
Codex Did the Work Remotely. I Still Had to Fetch the Files.
I wanted Codex on my Office MiniPC to send a file to my private Telegram conversation when I asked. I also wanted that functionality available across my local Codex projects, not a new build inside every project.
The request is simple. Send the file I choose, through my existing Maverick Telegram bot, to my own private Telegram conversation.
I gave Codex the completed version 1.0.3 Telegram reader kit, the installation checklist, and the accompanying instruction outline. Then I asked Codex to review the requirements and ask any questions before starting the implementation.
Verify the computer,
inspect the source kit,
preserve the computer's current state,
test the system,
install it,
enter Telegram credentials privately, and
confirm it sent an actual test file attachment.
Because I started with the full installation package, most of this installation was done while I stared at the screen, patiently waiting. Or maybe bored. It took less than five minutes end-to-end. Probably less than three minutes, but I didn't think to time it.
Confirm the Office MiniPC First
Codex started by checking its own execution environment. It read the computer name and Windows identity, then resolved the user profile and Documents folder.
Those checks confirmed that yes, we were working on the intended Office MiniPC and user account.
The installer needs the Windows known-folder location for the account that will use the connection.
The Documents folder check was important, because your Documents folder can be moved from its default location inside your Windows profile.
Codex used that verified folder to create the installation destination:
<DOCUMENTS>\Codex\Integrations\telegram-filesIf you decide to install this on your own system, confirm those values from Codex and your own terminal.
Key: Establish where the work will run before you approve a change.
Review the Kit Before Running the Installer
The Telegram 1.0.3 reader kit archive contained the sender, the local MCP server, the masked setup helper, the installer, the registration helper, and the tests.
It also contained the source manifest, required documentation, and recorded verification evidence.
MCP, or Model Context Protocol, gives Codex access to tools from another program. Here, the local server exposes two Telegram tools: one checks readiness, and the other sends a chosen file.
Codex inspected the package and compared its files with the manifest.
It checked the ZIP for corruption and recorded its SHA-256 fingerprint, identifying the exact source archive we used. Comparing that fingerprint with a downloaded copy would also let us verify that the file arrived unchanged.
All 24 manifested entries matched in that reviewed copy.
Software Requirements: What the Installer Checks and What You Must Check
If you already use Codex for development, you probably have several prerequisites already installed on your computer.
Check each one anyway.
A Codex installation doesn't guarantee that you also have Python, Tcl/Tk, or the other components this Telegram sender requires.
The v1.0.3 package combines automatic installer checks with separate checklist steps.
Codex completed those steps for my Office installation.
If you follow the package yourself, you must complete the reader checks below; running Install.ps1 alone doesn't complete them.
Requirement | What the installer checks automatically | What you must check or complete |
|---|---|---|
Windows with credential encryption and file-permission support | The Python probe loads the Windows DPAPI and ACL libraries and checks for required API functions. | Run the offline tests to verify actual encryption, protected storage, and file-lock behavior. This implementation targets Windows. |
A supported local Codex client with MCP support | No Codex presence, version, or connection check. | Check the local Codex version, then verify actual tool discovery in two local project contexts after installation. |
A real Python 3.11+ interpreter and its standard library | Resolves | Choose a working interpreter. If you find it through the |
Tcl/Tk and tkinter for the setup interface | Imports tkinter. | Open the Tk demonstration window from the checklist and confirm that the graphical interface works. An import alone doesn't prove that a window can open. |
A sibling | Checks that the executable exists beside the selected Python interpreter. | Confirm that the installed masked setup window actually opens. |
PowerShell and Windows security helpers | The installer runs in PowerShell; it doesn't separately verify the PowerShell version or every helper executable. | Confirm access to Windows PowerShell and the built-in |
The sender uses Python's standard library. You don't need third-party Python packages for it. The package does not install missing software for you. If a setup check fails, fix the reported problem and run the check again before continuing.
You also need the service-side prerequisites:
A Telegram account and access to it. Use a device or client that lets you receive and open the attachment. Telegram Desktop on the Office computer isn't a requirement of the sender.
An existing bot and its credentials. Keep the token, exact bot username, and your personal numeric Telegram user ID ready for masked local entry. Open the exact bot's private conversation from the intended receiving account and tap Start if needed. The installer doesn't check these values; the setup helper verifies bot and private-chat identity later.
HTTPS access to
api.telegram.org. The installer doesn't test this connection. Successful setup checks establish API connectivity at that point; the later sample upload and your receipt establish file delivery.
The installer does not run the 24-test offline suite. Follow the checklist to run them yourself, and make sure all 24 pass before entering your bot credentials.
Complete each stage separately: the installer’s automatic checks, the checks you run yourself, confirmation of the bot and recipient in the local setup window, and a live test where you receive and open the sample attachment.
Check the Runtime and the Existing Installation
My Office MiniPC already had version 1.0.0 of the sender. That's because I started the development here, then switched to the Studio computer for the rest, not realizing that while I was physically working in the studio, the Codex Chat ran on the MiniPC. Read more about the whole process in "Codex-to-Telegram File Sending Integration: Because “Your File Is Ready” Doesn’t Help When It’s on Another Computer". [link to article]
That meant it needed a controlled upgrade, not a new installation.
It also checked the computer's prerequisites:
Component | Office result |
|---|---|
Python | 3.14.0 |
Interpreter |
|
Local setup interface | tkinter/Tk 8.6 and sibling |
Windows credential protection | DPAPI and ACL APIs present |
Codex CLI | 0.153.4 |
Codex parsed the Python source, the PowerShell installer, and all 19 checklist commands without syntax errors. Those checks established that the components existed and the commands parsed. The functional tests still needed to run.
Next, Codex inspected the relevant user-level configuration. The existing telegram_files entry already pointed to the correct absolute Python executable and installed server path, with a 180-second timeout.
Codex supports user-level MCP configuration, which lets local projects on the same computer and account share a connection. That matched my requirement. We could retain the existing registration while upgrading the runtime behind it.
Office had no saved credential blob. Codex checked its existence without searching for or loading a token.
Confirm readiness without putting credentials in chat
Before implementation, Codex asked whether I had the existing Maverick token, the exact bot username, and my personal numeric Telegram user ID ready for local entry.
I confirmed that I did and authorized the upgrade.
The question established readiness. The credential values stayed with me for the masked local window.
Keep that distinction when you set up your own connection. Your assistant can ask whether you can supply a credential locally. You don't need to paste the credential into the conversation.
Preserve the current state before replacing it
Codex rechecked the target, the Documents folder, and the Python interpreter. Then it captured the current user configuration before installation.
It encrypted that baseline with Windows DPAPI and stored it in a protected directory. It also recorded the existing configuration access-control list, or ACL, so the later comparison could check permissions as well as contents.
DPAPI ties credential protection to the Windows user in this implementation. Microsoft documents its protection boundaries, including the fact that the same user's logon credentials normally permit decryption. This protects stored bytes; it doesn't make secrets inaccessible to programs that act as you.
Codex also copied the complete old runtime, calculated its file hashes, and verified the backup.
The installer refuses to overwrite different existing source files. We retained that protection. After the checks passed, Codex preserved the old installation directory under a separate previous-version name, leaving the original destination available for the reviewed upgrade.
Run all 24 offline tests on Office
The reviewed working copy went through the full supplied test suite before I entered a real token.
The tests used synthetic credentials and disposable fixtures. They exercised Windows encryption and protected storage, file locking, exact attachment bytes, pinned identities, rejection of the bot's own ID as the recipient, safe error messages, and the masked setup controls.
They also checked configuration preservation, private-store protection, the absence of automatic retries, and MCP discovery through isolated test profiles.
The Office result was precise: 24 tests passed in 1.080 seconds.
Those tests made no Telegram calls. Their result gave us evidence to proceed with installation. We still needed secure setup and a real attachment test afterward.
Install the reviewed version and verify the result
Codex ran the reviewed installer with the verified Python executable explicitly selected.
The installer installed version 1.0.3 at the existing destination and recognized the matching user registration. It installed all 17 required files. Codex also retained the manifest, orientation README, and redacted evidence.
Then it compared every required installed file with the reviewed source and rechecked the preserved previous runtime against its hash inventory.
The configuration check went further. Codex privately decrypted the before-baseline and compared it with the current file. The complete configuration bytes, parsed values, and ACL remained unchanged.
The original source ZIP also remained unchanged.
That comparison established preservation for this upgrade. We could name exactly what changed: the owned runtime and its maintained documents.
Confirm that Codex can discover the tools across projects
A configuration entry alone doesn't prove that Codex can use the connection.
Codex started two fresh standalone app-server processes in separate disposable Office project folders. Each process read its effective configuration and discovered the same two tools:
telegram_statustelegram_send_file
Both reported server version 1.0.3 and the expected user-level executable and source paths. The send-tool schema accepted one file path and an optional caption. The private destination stayed fixed to the locally approved recipient.
These checks created no additional chats or project-specific configuration. They also left the user configuration unchanged and made no Telegram requests.
At this stage, a fresh installed process reported unconfigured readiness. That result matched the sequence: I still needed to enter my credentials.
Enter the credentials in the local masked window
Codex saved the Office verification record and opened the installed version 1.0.3 setup helper. It checked the process and window title without reading entered values or taking screenshots.
The reusable launcher uses the current account's Documents folder. The entire PowerShell command fits on one physical line:
& (Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'Codex\Integrations\telegram-files\Setup Telegram.cmd')The window asked for three values:
Field | Value to enter |
|---|---|
Existing bot token | The token for your existing bot |
Your personal Telegram user ID | Your own numeric ID |
Expected bot username | The exact username for that bot |
Choose Your ID, rather than Selected Bot ID, if your ID utility shows both. The recipient must identify you.
I entered the details locally, checked the bot and personal recipient in the confirmation, and saved the encrypted settings. Then I told Codex, “Setup saved.”
The helper checks bot identity, private-chat identity, and read-only webhook status. It sends no attachment during setup and doesn't consume incoming bot updates or change its webhook.
Check readiness, then request the sample
After my confirmation, Codex called the actual readiness tool. It reported configured readiness and a pinned private destination.
A separate metadata check confirmed that the credential store existed. Its parent ACL granted FullControl only to my Windows user and SYSTEM. Codex read no credential contents during that check.
I then gave the delivery instruction:
Setup saved. Send the sample file to my Telegram so we can verify it works from Office.
Codex rechecked the Office executor and the exact installed sample's hash. It recorded a unique marker for the first Office attempt, then invoked the send tool once.
The sender checked the pinned bot and private-chat identities before uploading the actual file bytes through Telegram's document-sending API.
Telegram returned:
Receipt field | Result |
|---|---|
Status |
|
File |
|
Size | 345 bytes |
Message ID | 14 |
Codex made no additional upload or automatic retry.
Finish with the file the person receives
The API receipt established Telegram's acceptance. I still needed to confirm the attachment and its readable contents.
Codex asked me to open the sample and confirm the marker. I replied with the complete file contents, including:
CODEX-TELEGRAM-LOCAL-2026-11-01That reply supplied the human check. The attachment reached me, and I could access its expected contents. The record doesn't separately claim observation of a manual save-to-disk action.
Codex saved that confirmation separately from the API receipt and updated the Office verification record.
The Office connection now does the job I requested. I can choose a local file, ask Codex to send it through Maverick, and receive the actual attachment in my private Telegram conversation. The same user-level installation supports my local Office projects, subject to each project's policy.
For your own installation, follow the sequence through the received file: confirm the target, preserve the current state, test the source, verify discovery, enter credentials locally, and open the attachment. That last action supplies the result you actually need.
You don't need to do more. You just need to stop doing it all alone.
Bring the real problem into the room. We will help you see what deserves your attention first. Schedule your 75-minute Wolf Pack Solution Session with Deana Brown Mitchell and Christopher di Armani today.

