Powershell tools for Telegram Messenger
If any of the scripts that I have created helped you, please consider donating to support the work. Don't hesitate to request any features or ask for an advice on implementing the tools that I provide. Any amount helps my projects a lot! Thank you very much!
This script lets you send a message using Telegram - fast, cool and secure messenger. You can use it to send a message when a script is finished, when your SCCM OSD Task Sequence ended or encountered an error, when there's a new application version found (i.e. by you other site-crawling script) - pretty much any notification can be done using this tool. How to use it:
- Install Telegram and register an account.
- Get yourself a Telegram bot using @BotFather inside Telegram
- Get your Bot API token from @BotFather
- Create a goup or channel or use existing chats to get your messages.
- Get you chat, group or channel ID using this guide
- Use Send-TLGMessage script with the parameters that you've got above: Install-Script -Name "Send-TLGMessage" -Force
Enter text to send. This Value can be piped from another command, like:
(gwmi win32_computersystemproduct).IdentifyingNumber | Send-TLGMessage -RecieverID ID -BotToken TOKEN
Enter a Telgram chat, group or channel ID. Use this guide to find the ID
Get you bot token from @BotFather, follow their guide
If you add that parameter to a script, the message will be sent without sound notification (silently).
If you add that parameter to a script, yuo can specify Telegram HTTP proxy settings, if Telegram servers are not directly accessable in your country
Enter proxy address ie https://tlg.proxy.com or 22.344.556.123
Enter proxy port i.e. 1234
Enter user name for proxy server authentication
Enter password for proxy server authentication