PoshGram provides functionality to send various message types to a specified Telegram chat via the Telegram Bot API. Seperate PowerShell functions are used for each message type. Checks are included to ensure that file extensions, and file size restrictions are adhered to based on Telegram requirements.

Minimum PowerShell version


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PoshGram -RequiredVersion 1.0.2

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Jake Morrison


(c) 2019 Jake Morrison. All rights reserved.



telegram telegramx bot telegram-bot-api powershell powershell-module Messenger Message Notification Notifications Notify Send Messaging Automation Photo Photos Pictures Video Videos Gif Gifs Animations Location Coordinates Media Documents Audio SMS


Test-BotToken Send-TelegramTextMessage Send-TelegramLocalPhoto Send-TelegramURLPhoto Send-TelegramLocalDocument Send-TelegramURLDocument Send-TelegramLocalVideo Send-TelegramURLVideo Send-TelegramLocalAudio Send-TelegramURLAudio Send-TelegramLocalAnimation Send-TelegramURLAnimation Send-TelegramLocation Send-TelegramMediaGroup


This module has no dependencies.

Release Notes

1.0.2 :
   Addressed bug where certain UTF-8 characters would fail to send properly in Send-TelegramTextMessage
   Cosmetic code change for Invoke functions to use splat parameters
1.0.0 :
   Addressed bug in Send-TelegramTextMessage that wasnt handling underscores
   Added code to support AWS Codebuild
0.9.0 :
   Restructured module for CI/CD Workflow
   Added Invoke-Build capabilities to module
   Added Animation functionality:
   Added location functionality:
   Added multi-media functionality:
   Consolidated private support functions
   Code Logic improvements
0.8.4 Added IconURI to manifest
0.8.3 Initial beta release.

Version History

Version Downloads Last updated
2.3.0 88 11/27/2022
2.2.2 3,202 6/3/2022
2.2.0 443 4/5/2022
2.0.0 4,582 10/18/2021
1.16.0 4,113 4/9/2021
1.15.0 5,519 11/15/2020
1.14.0 13,483 8/28/2020
1.12.0 42,224 1/25/2020
1.10.1 5,791 12/18/2019
1.10.0 189 10/19/2019
1.0.2 (current version) 607 3/19/2019
1.0.0 131 1/7/2019
0.8.4 213 7/9/2018
0.8.3 19 7/3/2018
0.8.1 14 7/2/2018
Show less