Fleet logo
Menu An icon indicating that interacting with this button will open the navigation menu.
Fleet logo An 'X' icon indicating that this can be interacted with to close the navigation menu.

Solutions

a small chevron
Device management

Device management

Remotely manage, and protect laptops and mobile devices.

Orchestration

Orchestration

Automate tasks across devices, from app installs to scripts.

Software management

Software management

Inventory, patch, and manage installed software.

GitOps

Infrastructure as code

See every change, undo any error, repeat every success.

Deployment

Deployment

Run Fleet the way that fits your team.

Extend Fleet

Extend Fleet

Integrate your favorite tools with Fleet.


Customers
Pricing

More

a small chevron
Docs

Docs

Guides

Guides

Support

Support

News

News

Get your license

Get your license

The handbook

The handbook

GitOps for device management

In-person workshop for beginners.

Join us
Get a demo
Solutions A small chevron
Device management

Device management

Remotely manage, and protect laptops and mobile devices.

Orchestration

Orchestration

Automate tasks across devices, from app installs to scripts.

Software management

Software management

Inventory, patch, and manage installed software.

GitOps

Infrastructure as code

See every change, undo any error, repeat every success.

Deployment

Deployment

Run Fleet the way that fits your team.

Extend Fleet

Extend Fleet

Integrate your favorite tools with Fleet.

Customers Pricing
More A small chevron

GitOps for device management

In-person workshop for beginners.

Join us
Docs

Docs

Guides

Guides

Support

Support

News

News

Get your license

Get your license

The handbook

The handbook

Get a demo
Software/
Telegram
Telegram icon

Telegram

Windows | 6.5.1

Telegram is a messaging app with a focus on speed and security.

Self-service install

To install Telegram on your work computer:

  1. Navigate to the Fleet Desktop icon in the OS menu bar and select My device.
  2. From the Self-service tab, navigate to Telegram and click Install.

Don’t see Telegram or the Fleet Desktop icon? Send a link to this page to your IT team.

Uninstall Telegram

Run the following script in Powershell to uninstall Telegram:

# Attempts to locate Telegram Desktop's uninstaller from registry and execute it silently

$displayName = "Telegram Desktop"
$publisher = "Telegram FZ-LLC"

$paths = @(
  'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
  'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall',
  'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
  'HKCU:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
)

$uninstall = $null
foreach ($p in $paths) {
  $items = Get-ItemProperty "$p\*" -ErrorAction SilentlyContinue | Where-Object {
    $_.DisplayName -and ($_.DisplayName -eq $displayName -or $_.DisplayName -like "$displayName*") -and ($publisher -eq "" -or $_.Publisher -eq $publisher)
  }
  if ($items) { $uninstall = $items | Select-Object -First 1; break }
}

if (-not $uninstall -or -not $uninstall.UninstallString) {
  Write-Host "Uninstall entry not found"
  Exit 0
}

# Kill any running Telegram processes before uninstalling
Stop-Process -Name "Telegram" -Force -ErrorAction SilentlyContinue

$uninstallString = $uninstall.UninstallString
$exePath = ""
$arguments = ""

# Parse the uninstall string to extract executable path and existing arguments
# Handles both quoted and unquoted paths
if ($uninstallString -match '^"([^"]+)"(.*)') {
    $exePath = $matches[1]
    $arguments = $matches[2].Trim()
} elseif ($uninstallString -match '^([^\s]+)(.*)') {
    $exePath = $matches[1]
    $arguments = $matches[2].Trim()
} else {
    Write-Host "Error: Could not parse uninstall string: $uninstallString"
    Exit 1
}

# Build argument list array, preserving existing arguments and adding /S for silent (Inno Setup)
$baseArgumentList = @()
if ($arguments -ne '') {
    # Split existing arguments and add them
    $baseArgumentList += $arguments -split '\s+'
}

function Invoke-Uninstall {
    param(
        [string]$Executable,
        [array]$BaseArgs,
        [array]$ExtraArgs
    )

    $finalArgs = @()
    if ($BaseArgs) {
        $finalArgs += $BaseArgs
    }
    if ($ExtraArgs) {
        $finalArgs += $ExtraArgs
    }

    Write-Host "Uninstall executable: $Executable"
    Write-Host "Uninstall arguments: $($finalArgs -join ' ')"

    try {
        $processOptions = @{
            FilePath = $Executable
            ArgumentList = $finalArgs
            NoNewWindow = $true
            PassThru = $true
            Wait = $true
            WorkingDirectory = (Split-Path -Path $Executable -Parent)
        }

        $process = Start-Process @processOptions
        return $process.ExitCode
    } catch {
        Write-Host "Error running uninstaller: $_"
        return 1
    }
}

$preferredSilentArgs = @("/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART")
$exitCode = Invoke-Uninstall -Executable $exePath -BaseArgs $baseArgumentList -ExtraArgs $preferredSilentArgs

if ($exitCode -ne 0) {
    Write-Host "Preferred silent uninstall failed with exit code $exitCode. Retrying with /S."
    $exitCode = Invoke-Uninstall -Executable $exePath -BaseArgs $baseArgumentList -ExtraArgs @("/S")
}

Exit $exitCode

Is Telegram up to date?

Run this query in Fleet to find old versions of Telegram across all your computers:

SELECT 1 FROM programs WHERE name = 'Telegram Desktop' AND version <= '6.5.1';

Share

Share this article on Hacker News Share this article on LinkedIn Share this article on Twitter
Docs REST API Guides A pencil iconEdit page
Fleet logo
Solutions Device management Orchestration Software management Integrations Pricing
Documentation Support Docs API Release notes Get your license
Company About Trust Jobs Logos/artwork Why open source?
a small checkmarkSOC2 Type 2 Creative Commons Licence CC BY-SA 4.0
© 2026 Fleet Inc. Privacy
Slack logo GitHub logo LinkedIn logo X (Twitter) logo Youtube logo Mastadon logo