Version 2.10.0 · updated 23 October 2026. Features and examples first, installation and settings next. Real Telegram screenshots use sample data; personal names are hidden.
01 / Introduction
What is NexusTG?
NexusTG is a toolkit for your Telegram account: an AI assistant, a conversational twin, transcription, text editing, media downloads and a personal archive. Choose the tools you need and control them through your own separate bot with buttons.
Your contacts do not need to install NexusTG. Results appear in ordinary Telegram chats: a transcript, an AI reply, a shopping list or a downloaded video. Automatic account actions follow the enabled settings and the rules of each module.
The one-minute introduction
- Cannot listen to a voice message? Read the transcript and a short summary.
- Have two recordings and a task?
.fix 2 transcribe both conversationsreads the two preceding messages, including their files, and applies the task. - Need help with a conversation or an image? Call
.aimanually, including as a reply to a message. - Want to automate a particular conversation? Configure AI Twin for that person: tone, delays, schedule and search.
- Received a short-video link? The downloader can put the actual video or photo album in the chat.
- Want a personal archive? There are tools for caching incoming messages, tracking deletion/edit events and moving new Saved Messages into a chosen destination.
You do not have to enable everything. Use only transcription and .ai while keeping automatic replies and archiving disabled. NexusTG is an independent project using the Telegram API, not an official Telegram or Google product.
02 / Introduction
Explore the toolkit
| Tool | What it is for | How it starts |
|---|---|---|
| AI Twin | Automatic replies in selected private conversations, in a configured voice | Chat settings or a manual reply button |
| Manual AI | Explain, compare, draft a reply or examine an attachment | .ai question |
| Transcription | Turn voice, audio and video into text | Reply with .text; optional automatic voice/video-note processing |
| Text Structurer | Rewrite text or combine messages and attachments | .fix, .fix N task |
| YouTube | Extract a video’s main points | .sum URL |
| Media Downloader | Send a file instead of a supported short-video/post link | .dl or an enabled automatic mode |
| Shopping | Turn ordinary text into a shopping list | .shop or a selected chat/topic |
| Message archive | Cache incoming content and notify about deletion/edit events | Enable and select an archive in the menu |
| Custom Saved | Send selected messages to your own chat/topic | .save and optional transfer of new Saved Messages |
| Always online | Periodically refresh the account’s online status | One settings toggle |
| Activity simulation | Temporarily show typing, recording and other chat actions | Selected chat’s card |
| Profile information | Read available account/contact profile fields | Profile button |
| API keys | Inspect key state and run or stop tests | Core settings → API keys |
| My bots | Add and maintain independent accounts | Primary controller’s owner only |
| Guided setup | Explain settings step by step | 22 steps after authorization |
| Fact checking | Older dedicated module | Currently paused |
03 / Introduction
How it works
There are two distinct components. Your BotFather-created controller displays menus, accepts settings and guides authorization. The userbot is a client connected to your personal Telegram account; it reads accessible messages and performs the enabled actions as that account.
The shared application runs on your computer or server. Settings, the session, caches and databases are local. AI tasks send the selected text and supported attachments to Gemini using your API keys. Hosting the application yourself therefore does not mean all processing is offline.

The controller does not replace your normal Telegram app: you can keep using your phone and desktop. NexusTG must remain running with an internet connection. A powered-off computer cannot transcribe new voice messages or send automatic replies.
04 / Every module
AI Twin — conversational replies
What it does. Drafts and sends the connected account’s next reply in a private conversation. It considers history, text, supported photos, videos, voice, audio and video notes. It may send text or use a configured reaction when the model decides that a full reply is unnecessary.
When it helps. Repeated conversations, agreed automation and responses in a particular style. One contact can receive short informal replies while another gets a calmer, more detailed tone. This is text generation under rules, not an exact copy of a person or a guarantee of a correct answer.
Set it up
- Open My chats, select a contact and open AI Twin settings.
- Set the global prompt and, optionally, extra rules for this conversation.
- Choose the scope: the global mode, a specific chat’s activation or a chat exclusion.
- Configure search, before/after delays, typing speed and interruptions, the reaction, sleep hours and reading behavior.
- For one explicit run, use Answer latest messages. A manual launch bypasses sleep, random ignoring and artificial delays while respecting Telegram restrictions.

How it reads history
The current code considers up to 1000 messages, with a separate history budget: 65,536 tokens by default, configurable from 4096 to 262,144. These are ceilings, not a promise to send all 1000 messages. System rules, the current task, media and the future answer also need model capacity.
Participants have distinct tags: owner, chat partner and other sources. Quotes, forwards and attachment content stay attached to their original messages. Persona rules are system instructions; conversation history is data. The model is told to answer the current target and avoid reviving old topics without a reason.
Media is processed concurrently, up to three attachments at a time; each completed result is cached. Completion order does not change chronological message order. Cancellation stops child tasks before file cleanup, and later passes reuse completed cache entries. Successfully processed incoming voice/video notes receive playback receipts. The processed message is acknowledged before a reaction. Date and time come from a fresh clock in your configured timezone, rather than old conversation dates.
Progress and waiting
Refresh the chat card to see the current phase, processed/total media, cached and skipped sources, total age and time since the last change. Counters show concurrent downloads, AI jobs and queued files. Active downloads show received/total MiB, with byte progress updating the last-change timer. The AI phase includes uploading to Gemini and waiting for an API slot. Downloading is separate from final reply generation. Processed counts include handled attempts; skips are separate and are not presented as successful recognition.
A timeout countdown is an upper waiting limit, not a completion estimate. The API does not provide an exact finish time. This is an on-demand snapshot, not an automatically updating stopwatch. A first pass over hundreds of older attachments can take a while; caching helps later requests. A long unchanged phase warrants checking the logs rather than proving that the bot is stuck.
Limits. Recordings longer than ten minutes are not fully recognized through this AI Twin history path; use transcription or .fix for a long conversation. A partner’s statements are not automatically owner facts, but interpretation, recognition and style can still be wrong. Do not delegate decisions requiring your personal approval to an automatic reply.
05 / Every module
Manual AI — .ai
What it does. Calls a conventional assistant inside a conversation. Ask a question, draft a message, explain a document or examine an accessible attachment. Unlike AI Twin, Manual AI has its own prompt and does not imitate the account owner by default.
Use it: send .ai explain this simply, or reply to a message with .ai help me write a response. It includes context from up to 30 recent messages, the replied-to message and supported media. Reply to the assistant’s answer to continue the chain.

Settings. Trigger command, a dedicated system prompt, Google Search, permission for other people to call the command and debugging. Access for others is off by default. Output streams gradually and long results may be split across messages. The command’s overall processing limit is 240 seconds.
Keep in mind. Search can supply recent information but does not make model output a verified fact. Manual AI context and AI Twin’s expanded history are separate modes. Enabling other users spends your Gemini quota and may publish the result in that same conversation.
06 / Every module
Voice and recordings → text
What it does. Transcribes voice messages, video notes, ordinary audio and video. It can add a summary or return only the summary. Useful at work, in transit or when you need the agreements from a long conversation.
Manual use: reply to supported media with .text. For an MP3 sent as a document, or several recordings, use .fix as a reply or .fix N task: that path explicitly handles audio documents.
Automatic processing applies to voice messages and video notes. Your own and incoming messages have separate switches. Per-contact settings can be on, off or inherited from global settings. This handler does not automatically transcribe every MP3 or ordinary video.

Output choices
- Full transcription when details and wording matter.
- Transcription with a short summary for quick reading and optional detail.
- Summary only for less output in the chat; configurable globally or for a contact.
Tasks are queued within each conversation. Long results are split into messages; adjacent automatic results can be appended to an existing output where practical. Prepared text is retained privately if delivery is interrupted.
Quality depends on noise, overlapping speech, names, language and recording quality. Speaker identities may be unknown: this is not a reliable identity-verification tool. In v2.9.3, Telegram download failures are distinguished from transcription failures; a 90-second lack of byte progress is no longer presented as a failure to understand the audio.
07 / Every module
Text and attachment batches — .fix
What it does. Turns a rough draft into readable text: improves presentation, combines messages and organizes ideas. An extra task can request transcription, comparison or an agreement list. The module is off by default; enable Text Structurer before using it.
Three ways to start
| Example | Sources |
|---|---|
.fix my rough draft |
Text following the command |
.fix as a reply |
The selected message or attachment |
.fix 5 combine this into a clear text |
Exactly five preceding messages in the same chat/topic |
.fix 2 transcribe both conversations without shortening |
Two preceding messages, including their audio files |
The number counts messages, not every file in the chat or minutes of audio. Sources from either participant are selected before the command in chronological order. The range is 1–20. If the requested messages are missing, the bot explains the problem instead of silently processing fewer.

Supported sources
Voice, audio and MP3 documents; video notes and video; photos; PDF; UTF-8/UTF-16 text and common text formats; DOCX, XLSX, PPTX, ODT, ODS and ODP. Office handling extracts text, cell and slide content; it is not a full formula engine or a reproduction of document formatting. Legacy binary DOC/XLS/PPT and arbitrary archives are outside this list.
Text/Office extraction is limited to 256 KiB per file and 512 KiB of extracted text across a batch. An unsupported, unavailable or unread attachment stops the batch. Its caption does not substitute for the file, and oversized sources are not silently truncated.
What happens to the sources?
This is a replacement workflow. After the complete successful batch result is acknowledged, its source messages are deleted where the account has permission. If an original cannot be edited, the result is sent separately. Source-reading and generation failures preserve originals. Try it on copies in a test conversation first.
The command shows which batch item is being read. A generation step is capped at three minutes; downloading, extracting several files and delivery may add time. Settings include the command and output prompt. An explicit transcription request takes precedence over the usual “write an author’s post” style.
08 / Every module
YouTube summaries — .sum
What it does. Fetches accessible video context, including subtitles, and produces a summary. Use it to decide whether to watch a long video or to collect its main points afterward.
Send .sum https://youtu.be/... or reply with .sum to a message containing a link. It processes the first matching YouTube URL. The summary streams gradually. This is an owner-triggered command; settings include activation, trigger, prompt, debugging and cache clearing.
What it does not promise. It does not guarantee inspection of every video frame. Missing context/subtitles, restricted access or an authorization requirement can prevent a summary. Cookies may help with content available to your own account, but do not unlock somebody else’s private video. YouTube context is cached for up to seven days; clear it from the menu when needed.
09 / Every module
Files instead of links — .dl
What it does. Downloads supported TikTok videos/photo posts, Instagram Reels, YouTube Shorts, Pinterest pins and short pin.it links. Sends video, photos or a photo album with a title/caption. Large albums are split into Telegram groups of up to ten items.
Manual use: reply .dl to a link. Automatic use: enable your own and/or other people’s links. Individual chat settings can override global behavior, command access, platform switches and link replacement.

With replacement enabled, the original link is deleted only after media delivery is confirmed. A failed download or send keeps the source. Jobs use a bounded queue with duplicate-event protection; media uploads should not occupy every menu request slot.
Limits. Specific supported URL patterns work, not every video site. Availability depends on the platform, yt-dlp/gallery-dl, authorization, region, size and Telegram restrictions. Watermark-free delivery depends on the source version provided by the platform; it is not a universal guarantee. Upload cookies through the relevant settings section.
10 / Every module
Smart shopping lists — .shop
What it does. Uses AI to turn a request such as “milk, eggs and something for tea” into a shopping list. It attempts to create a native Telegram checklist and falls back to text if that is unavailable for the account/chat.
Send .shop milk, bread, 6 eggs. Or select particular chats/topics for automatic parsing. Automation is limited to that list, rather than every group on the account. Settings include allowed senders, prompt, command, access for others and source-text deletion.

Duplicate events are filtered; a short recent list can be updated instead of producing a new message. Bot messages, via-bot messages and the module’s own output are filtered to reduce loops.
Review access for others. Current defaults enable the module, allow_others and source replacement. Set these deliberately before use. The model may misunderstand a quantity or add an unwanted item: inspect the list before shopping.
11 / Every module
Deleted and edited message archive
What it does. When enabled, caches incoming messages from selected private conversations and sends deletion notices, previous edited-text versions and available media to a private archive. Use an existing forum group or create an archive through the menu; separate topics help organize contacts.
Configure first: module activation, destination, tracked chats/exclusions, deletion/edit/TTL switches, notification delay and individual-file limits. The whole module is off by default; its individual retention switches initially default to on.
It cannot recover arbitrary messages deleted before it saw them. If NexusTG did not receive/cache a message before deletion, media expired or a file exceeded limits, the content may be unavailable. The module handles incoming private non-bot messages, not secret chats. Protected content is skipped.
Reliability and delivery
Text is committed before waiting for media. Events and notification jobs are durable; acknowledged stages can continue after a restart. An unknown send/group-creation outcome is retained for review rather than blindly repeated. See storage for quotas and eviction priorities.
TTL and view-once content
The code retains a separate switch for disappearing content. Turning it off stops new TTL text/media caching. However, retaining disappearing content conflicts with Telegram’s requirements that it disappear; queues and delays do not remove that risk. The presence of a feature is not a promise that it is permitted or sanction-free. Telegram API Terms, §1.4.
12 / Every module
Custom Saved Messages — .save
What it does. Forwards a selected message into a chosen chat, channel or forum topic. Useful for links, files, ideas or project materials that deserve a dedicated destination instead of one large Saved Messages stream.
- Enable Custom Saved in its settings.
- Set the destination chat and optional topic. Your account must be able to send there.
- Reply to a message with
.save. The trigger is configurable.
Moving ordinary Saved Messages
A separate switch transfers new items saved after activation. It does not bulk-migrate old history. Successful forwarding is recorded before the original is deleted. Unconfirmed forwarding never triggers deletion; the receipt journal supports finishing confirmed cleanup after a restart.
Different from the deletion archive: Custom Saved is your explicit choice of where to put an item. Message Saver monitors selected incoming conversations and their changes.
13 / Every module
Always online
What it does. Runs a task periodically sending Telegram an offline=False update for the connected account. A single Always online on/off button controls it; there is no separate large submenu.
The desired random refresh range is roughly 60–90 seconds. It is shortened where necessary using Telegram server configuration and sampled status expiry. Network errors and FloodWait can delay refresh. Optional diagnostic inspection should not turn a successful status update into a five-minute pause.
Why another account may still see “recently.” Privacy settings, exceptions, other active clients and the server affect visibility. Last seen and current online status are distinct signals, but their visibility rules are linked. The module does not change your privacy settings or guarantee a continuous green dot. See the Telegram FAQ.
14 / Every module
Chat activity simulation
What it does. For a chosen duration, sends a chat action such as typing, uploading a photo, recording audio/video/video notes, uploading a document or choosing a sticker. It does not create an actual message, recording or file.
Open a contact’s card → activity → action → duration in minutes. Stop it early from the menu. A new task replaces the previous one in that conversation. Durations must be positive and finite, with a maximum of 24 hours per launch.
Unlike Always online, this shows a specific action in a specific conversation. Actions use the shared scheduler and Telegram cooldowns. Artificial statuses have separate API Terms limitations.
15 / Every module
Profile information
My profile shows Telegram fields available for the connected account: name, username, ID, accessible phone number, bio, Premium and available restriction/verification flags. A contact’s card can request their available profile fields.
This is not a hidden-phone lookup or a privacy bypass. Unavailable Telegram fields do not become accessible through the bot. A 30-second cache and bounded requests reduce repeated loading delays.
16 / Every module
Gemini keys, models and tests
Core settings → API keys combines the list, status, reveal/hide controls and tests. The normal view shows fingerprints and locally available key/model combinations, separately for search. This is local readiness, not Google’s exact remaining request balance.
An explicit owner action reveals full keys. Test results group successful responses, quota exhaustion, invalid keys, forbidden access, timeouts and other errors. Stop cancels the active test and returns to the menu; unanswered requests do not count as successful checks. Tests themselves consume requests.
Only an explicit API_KEY_INVALID verdict automatically removes a key, with an owner notification containing its fingerprint and the number remaining. Ordinary 429 quota and 403 access errors do not by themselves justify deletion.
About the free API
Gemini limits requests and input tokens; availability depends on the model and project. Multiple keys in one project do not provide separate quotas. Daily RPD resets at midnight Pacific time, not the bot’s timezone; minute limits apply separately. Check current values in AI Studio: official Gemini rate limits.
All configured keys participate in fair rotation: each request leases a free key instead of waiting for the first busy key. One request uses a given key at a time; completion, failure and cancellation release it. Account pools remain independent. Model order is editable in core settings. The bot tries available combinations and tracks cooldowns, with search and normal requests separate. A model ID written in the fallback list is not proof of free access: test it and check your project.
17 / Every module
Where did fact checking go?
The dedicated .fact module is temporarily paused: it registers no normal userbot message handler and is hidden from ordinary settings. Its previous configuration remains. It is therefore not listed as a currently working demonstration command.
Manual AI and AI Twin have their own search switches. Enabling those does not reactivate the dedicated fact checker. Check primary sources yourself for important claims.
18 / Install and manage
What you need
| Requirement | Purpose |
|---|---|
| A Telegram account | Userbot identity |
| Your own BotFather token | Separate controller bot |
api_id and api_hash from my.telegram.org |
Telegram client authorization |
| A Gemini API key with model access | AI replies and recognition |
| A running computer or VPS | Background tasks |
| Docker on Linux or Python 3.11/3.12 | Runtime environment |
One server can host multiple independent accounts. Activity, history and media determine load; there is no universal “bots per 1 GB” figure. Native installations need project dependencies and ffmpeg; installers and Docker prepare the environment. Normal bot polling does not require your own public website or domain.
19 / Install and manage
Install on Windows, Linux or Docker
Windows — one account
Open PowerShell and run the official repository’s installer:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/newfpv/NexusTG/main/install.ps1 | iex"
It installs into %USERPROFILE%\NexusTG, prepares Python 3.11 with uv, validates the token and creates a launcher shortcut. Open your controller in Telegram and send /start. Closing the process stops the service.
Linux / VPS — primary controller with additional-account support
bash <(curl -sL "https://raw.githubusercontent.com/newfpv/NexusTG/main/install.sh")
The apt-based installer prepares Docker/Compose where necessary and creates a primary profile for a fresh installation. Choose a language, provide your BotFather token and continue in Telegram.
Manual managed installation on Linux
git clone https://github.com/newfpv/NexusTG.git
cd NexusTG
python3 accounts.py add main
You need Docker Compose and Python 3.10+ for the management script; the container runs Python 3.11. Use sudo python3 accounts.py … if Docker requires root. The token prompt is hidden. Add more profiles later.
Standalone Docker Compose
git clone https://github.com/newfpv/NexusTG.git
cd NexusTG
cp .env.example .env
# Set TG_BOT_TOKEN and LANG_FILE in .env
docker compose up -d --build
docker compose logs -f nexustg
This is a separate mode using ./data. Multi-bot management belongs to a managed installation; ordinary Compose alone is not the accounts.py mode. For native development, use Python 3.11/3.12, install pyproject.toml dependencies, configure .env and run python main.py.
20 / Install and manage
Connect your account and follow setup
The first person to send /start to a new bot becomes its owner. Do this immediately yourself. Later visitors cannot take over; ordinary updates and settings resets preserve ownership.
Initial setup requests Telegram API ID/hash, Gemini keys and an IANA timezone such as Europe/Minsk. Optionally upload a Netscape cookies.txt file. Authorize through a phone number and Telegram code or QR, then provide the two-step verification password if needed. Temporary QR/login messages are cleaned up when the flow finishes or changes.
A resumable 22-step walkthrough follows authorization: account, prompt, history budget, AI scope, reading/typing, delays, sleep, search, debugging, cookies, voice, downloads, YouTube, archive, saved items, shopping, structuring, Manual AI, online and chats. Keys, models and timezone are not repeated as redundant cards.
The wizard opens the actual settings editors and lets you skip, go back or continue later. Reopen it from settings. For a first trial, test keys and try .ai/.text in a test conversation, then enable the automation you need.
21 / Install and manage
Find the right settings
The main menu opens chats and tools. Core settings holds account-wide options, API keys, models, timezone and, for the primary owner, My bots. A chat card holds exclusions and individual AI Twin, voice and downloader behavior.
My chats lists ten private conversations per page, including archived private chats, with one button per row and navigation arrows. Groups, bots and Telegram service messages are excluded from this AI Twin contact picker. The list is cached, so the last known data remains usable during reconnects; Refresh requests current dialogs.
Global/inherited values follow the account-wide setting; explicit on/off values override it. Command access for other people is configured per module and does not grant access to your private controller.
22 / Install and manage
Command cheat sheet
Send these from the connected personal account in an ordinary Telegram chat. They are not replacements for /start in the controller. Exceptions for other participants are separate settings. These are the default, configurable triggers.
| Command | Example and action |
|---|---|
.ai question |
.ai compare the options above — manual assistant |
.text as a reply |
Transcribe voice/audio/video/video notes |
.fix text |
Rewrite a draft; enable the module first |
.fix as a reply |
Process a selected text or supported file |
.fix N task |
1–20 preceding messages including media |
.sum URL |
Summarize accessible YouTube context |
.dl as a reply |
Download a supported link |
.shop items |
Create a shopping list |
.save as a reply |
Forward to the configured saved destination |
.fact is paused. If you changed a trigger, the default may no longer work. Saved Messages transfer, archiving and online presence use switches rather than commands sent repeatedly to each contact.
23 / Install and manage
Context, speed and usage
A larger window can remember recent agreements but adds history reads, recognition work, latency and input tokens. The history budget is a data-volume limit, not a daily free-token allowance or the complete context capacity of a particular model.
AI Twin prioritizes recent attachments, reuses cached descriptions and trims history to its budget. The first request after expanding coverage can take much longer. A collage of tiny unreadable text is not equivalent to 29 readable originals: a model cannot recover exact words from missing pixels.
Each AI tool prepares sources differently: .ai uses up to 30 messages, AI Twin up to 1000 within its budget, .fix N an explicit 1–20-message batch. Increase the budget after checking latency and quota. Start with text, then add media. Use .fix N when you want an explicit set of files compared or transcribed.
Google determines model access and quota. NexusTG stores local cooldowns and tries another available combination, separately for search and normal requests. It does not know every remaining server-side limit; a green indicator means no known local cooldown.
24 / Install and manage
Independent bots, shared code
Each person gets a separate controller and account. In a managed Linux installation, only the primary controller’s owner sees Core settings → My bots → Add bot. Add a new BotFather token, then let the intended owner start that new bot first and complete their own configuration.
Added bots cannot add further bots. Their Gemini keys, prompts, database, cookies, Telegram session, archive and temporary files are independent; primary-account settings are not copied. The manager displays account names, state, quotas and bounded diagnostic events. Rename changes the manager label, not the Telegram profile name.
Enable, disable or restart an added bot without deleting its data. An added bot can also be removed from its account card after a named confirmation. Its worker stops before local settings, session, caches and archive are permanently deleted. Other bots keep running. The BotFather bot and Telegram messages are not deleted. Legacy external-storage profiles require server-side removal; external symlink targets are preserved. The primary cannot be disabled or removed from this panel. Manager logs exclude message text, phone numbers, keys and raw exceptions; this does not make all server logs safe to publish.
NexusTG/
core/ shared application code
modules/ shared modules
accounts/
main/.env primary controller token
main/account.json profile and owner
main/data/ its databases, session, cookies and media
second/.env
second/account.json
second/data/ another independent private state
Terminal management
python3 accounts.py add second
python3 accounts.py list
python3 accounts.py logs second -f
python3 accounts.py restart second
python3 accounts.py disable second
python3 accounts.py enable second
python3 accounts.py update
One profile runs directly. Adding a second briefly restarts the container into separate-worker mode. Later additions do not restart existing workers. An image update briefly restarts everyone. This isolates account state; it is not a security sandbox for untrusted people with server access.
25 / Install and manage
Prompts, language and cookies
The AI Twin prompt defines conversational style and known owner facts; per-chat rules refine one dialog. The Manual AI prompt defines the assistant, the .fix prompt defines source processing, and YouTube/shopping have their own tasks. Changing one does not automatically change every tool.
The bot language uses language_RU.json or language_EN.json through LANG_FILE; both interface translations are included. This wiki’s RU/EN switch changes the documentation, not a running bot’s language.
Cookies are an optional Netscape .txt file for sources requiring authorization. Upload them in the YouTube/downloader cookies section. One account uses data/cookies.txt; profiles have separate copies. Cookies can grant access to a web session: do not include them when sharing this guide, and replace expired cookies.
Use an IANA timezone name instead of a fixed “+3”. Debugging can expose context fragments in private server logs; disable unnecessary debug options after setup.
26 / Operations
Disk use and archive priorities
Each managed profile has a separate local archive-media quota, initially 2 GiB. The primary owner changes it in My bots → account → Archive media limit. The panel shows media usage, text database size and the server filesystem’s used/free space.
Eviction order when space runs out:
- Forwarded media, such as shared posts.
- Heavy original attachments.
- Other ordinary attachments.
- Original voice messages and video notes last.
Oldest files go first within a class. Text and previous edited-text versions have no age or media-quota expiry. The old 180-day deletion is gone. Text databases can therefore keep growing and require separate free-space monitoring.
A lower limit is applied by the worker, normally within 30 seconds after an active download finishes. Zero removes local archive media and stops new caching. It does not delete copies already sent to the Telegram archive.
Individual-file limits are separate: defaults are 20 MiB for ordinary media and 50 MiB for TTL, editable in the module. One staged download, other caches, databases, Docker and other applications are outside the media quota. Low free space can cause earlier media eviction to protect text writes.
27 / Operations
Backups and migration
Back up complete account state, not just code. Standalone mode needs .env and data/. Managed mode needs the entire accounts/ directory, installation configuration and .accounts.mounts.json if external data directories were adopted. Back up those external directories too.
For a simple consistent copy, stop the relevant process/container, copy its state and start it again. Do not copy one live SQLite file without its WAL or a consistent database-backup mechanism. Backups contain Telegram authorization and keys; keep them away from public websites and repositories.
Adopt a previous standalone installation
python3 accounts.py adopt main --env-file .env --data-dir data --legacy-container NexusTG
Use the actual legacy container name. The command binds the existing directory rather than deleting it, with rollback to the old container on failed startup. Never run old and new processes together using the same Telegram session. Details: account management.
28 / Operations
Updates and maintenance
Managed accounts
cd ~/NexusTG
git status --short
# Review and preserve any local changes first:
git pull --ff-only
python3 accounts.py update
python3 accounts.py list
Standalone Docker Compose
cd ~/NexusTG
git status --short
git pull --ff-only
docker compose up -d --build
docker compose logs --tail=100 nexustg
Do not use git reset --hard over local modifications or delete data//accounts/ for a clean reinstall. On Windows, restart the launcher/process after updating code; refresh the environment through the installer or dependency manager when dependencies change.
On a small VPS, shared code and preloaded dependencies reduce memory use while each account keeps its own databases. Managed Compose defaults to a 1536 MiB ceiling for the whole group, not a reservation per bot. Size it from measured peaks. Managed profiles share four heavy media operations by default; NEXUS_GLOBAL_MEDIA_SLOTS overrides that concurrency ceiling. It does not increase Gemini quotas. Limit history, automatic video and unused background features to reduce load; do not remove dependencies blindly.
29 / Operations
Data, access and limitations
Keep the controller private. Do not share its token, Telegram session, .env, cookies or backups. Before handing a friend a new installation, ensure that they sent its first /start and configured their own account and keys.
AI-enabled tools send selected messages and attachments to an external provider. Archiving stores copies on the server and, when configured, in a Telegram group. Participants should understand the processing you enable; technical capability does not replace permission to handle data.
Shared queues respect server cooldowns and reduce duplicate work. MTProto FloodWait, controller Bot API 429 and an authorization failure are distinct conditions. Reports of unwanted messages remain a separate risk.
Telegram restricts interference with disappearing content and status indicators, and its terms also address Telegram-data use for AI. No “100% ban protection” is claimed. Read the Telegram API Terms and module behavior notes before enabling affected functions.
30 / Operations
Understand what is happening
| Symptom | Check |
|---|---|
| Long context collection | First-time recognition of many files; refresh status and inspect file counts, cache and logs |
| Download error | Telegram connectivity, file availability and free space; this is not yet a Gemini transcription error |
| Transcription failed | Model audio access, key state, recording quality and format |
.fix does nothing |
Is the module enabled, the trigger unchanged and the sender the owner? |
.fix 2 misses MP3 |
It selects two preceding messages in the same chat/topic; use a version supporting audio documents |
Sources disappeared after .fix |
Successful batches replace sources; test on copies |
| No My bots button | Requires managed mode, the primary bot and its owner |
| Missing chats | Go to the next page; groups/bots are excluded, archived private chats are supported |
| Recently instead of online | Privacy/exceptions, other clients, accepted status updates and server cooldowns |
| Archive media missing | Activation/filters, quotas, file limits, content protection and receipt timing |
| Gemini quota error | API keys and AI Studio; another key in the same project is not another quota |
Diagnose without exposing private content
In managed mode, open My bots → account → recent logs. At most 100 structured events are exported: UTC time, severity, source module/function/line and a known error category. Raw messages and key values are excluded.
For server logs, use python3 accounts.py logs NAME -f or your mode’s Docker logs. Review full logs before sharing: debug output and other handlers may contain private data. A useful issue report includes the version, command without personal text, file type, stage, time and a safe diagnostic event.
Avoid repeatedly pressing launch during recognition. New input can replace an AI Twin task, while already prepared attachment descriptions stay cached. The manual button cannot bypass a mandatory Telegram wait.
31 / Operations
Code and extensions
Modules live in modules/, the core in core/. Startup loads userbot handlers and controller routers. A new module file requires a restart. Add settings and translations to both languages, and route Telegram operations through the shared scheduler.
Use checked media downloads and clean temporary files. Do not delete sources before replacement delivery is confirmed. Do not create another Telegram client with a running account’s authorization just to test it. Preserve separate paths and settings between workers.
Test cancellation, timeout, FloodWait, unknown send outcomes and restart recovery, not just a successful response. Test examples and operating notes are in the repository.
32 / Operations
The last month of updates
This review covers 23 September–23 October 2026. The current published version is v2.10.0, commit f197e11. Descriptions were checked against code, not only older menu text. The table groups user-visible changes; linked releases provide full details.
| Version / date | What changed for users |
|---|---|
| v2.10.0 · 23 Oct | Three concurrent media jobs, all-key rotation, confirmed additional-bot removal, download MiB and queue counters |
| v2.9.4 · 22 Oct | Detailed AI Twin progress: phase, media counters, cache, skips and timeout limits without a false completion estimate |
| v2.9.3 · 22 Oct | Media-connection recovery, two download slots, progress-aware timeouts and menu capacity during uploads |
| v2.9.2 · 20 Oct | .fix N task reads MP3 documents and other attachments; incomplete batches are not presented as successful |
| v2.9.1 · 20 Oct | AI Twin reaction read receipts, bounded structuring, long-result delivery and presence diagnostics |
| v2.9.0 · 20 Oct | Per-account Telegram queues, durable archive jobs, randomized status refresh and acknowledged-stage recovery |
| v2.8.0 · 20 Oct | Named/renamable accounts, safe logs, media quotas, no text expiry, chat pages, full EN and a 22-step wizard |
| v2.7.1 · 20 Oct | One code directory with separate account folders; private backups excluded from Git/Docker |
| v2.7.0 · 20 Oct | Primary-owner management of independent bots; first-/start ownership |
| v2.6.0 · 20 Oct | Guided setup and shared dependency memory with independent workers |
| v2.5.1 · 19 Oct UTC | Immediate API-test cancellation; unanswered requests do not count as checked |
| v2.5.0 · 19 Oct UTC | Compact key/test screens and acknowledged new Saved Messages transfers |
| v2.4.0 · 19 Oct UTC | Configurable history budget, online status and key diagnostics |
| v2.3.3 · 19 Oct UTC | Explicit speakers, quotes and forwarded origins in compact context |
| v2.3.2 · 19 Oct UTC | Owner persona moved into system instructions |
| v2.3.1 · 19 Oct UTC | Batched recognition, timezone-aware clock, manual replies, caching and recovery |
| v2.3.0 · 9 Oct | QR login, responsive menus, Pinterest, TikTok photo albums, batch .fix and summary-only voice |
Older claims of 100/300-message history, latest release 2.2.1, a 180-day text expiry or an active .fact do not describe this version. Dates are GitHub publication dates in UTC and may differ from your local calendar day.
33 / Operations
Sources, credits and license
Source and releases: newfpv/NexusTG. The license is GNU AGPL-3.0, not MIT. The stack includes Python, Aiogram, Kurigram, SQLite, Gemini, yt-dlp and gallery-dl.
Some methods and approaches were inspired by SpyBot, created by woxov. NexusTG is independently developed; this credit records that influence.
This page uses real Telegram screenshots of a running NexusTG instance and actual sample command results. RU and EN have separate captures. A neutral contact name hides personal names; old conversations, phone numbers, keys and private prompts are excluded. The English audio sample uses synthesized speech. Model output and Telegram appearance can vary.
START / YOUR OWN SETUP
Start with one useful task
Try .ai or transcription in a test conversation first. Then enable the modules you need and configure each account independently.