It is this token which would allow you to send messages as the bot using http requests, rather than having to register a new Telegram username using a unique phone number.
From your Telegram client - connect to Bot Father and follow the conversation below (your inputs are in italics and unindented): Store your bot name, username and token safely.
Truth to be told, I’ve installed, and first used, Telegram about 3 hours before writing this post, but I saw so much potentials that I couldn’t wait to publish this.
Consider also that I was actually after something similar for Whats App, but there’s no official API from them yet.
Telegram is similar to Whatsapp: https://telegram.org/ but with full Cross platform support!If this is not good enough and you only want a private communication, you can send the link to your Bot to your friend(s): https://telegram.me/userbot This will work either if it is a Group Chat or not.It took me a little bit to work with this json but it wasn’t too difficult." $Response = Invoke-Rest Method -Uri "https://api.telegram.org/bot$($My Token)/send Message?chat_id=$($chat ID)&text=$($Message)" Something important before we continue: we can’t send a message to a user that hasn’t start a conversation with the Bot first (you can try once you know the user ID, however, you’ll get an error code 403 – ).
$Time Zone = Get-Cim Instance win32_timezone #Time Zone.