Telegram.PostTelegram
Skip to content
mnscript
StringResult Telegram.PostTelegram(string, string) 

Description ​

Posts message to Telegram.

Arguments ​

string - Username or if multiples pipe delimited
string - The message to send to Telegram.

Returns ​

StringResult

Example ​

msc
using System;
using Web;

// Messages will only go to authorised accounts.
// https://api2.callmebot.com/txt/login.php  login and authorise via Telegram
// Or
// Search for user @CallMeBot_txtbot and send the message "/start"


string users = "relman"; // if sending to multiple people use | , e.g. "relz|onariz"
string message = "You are being raided!!";

// Creates a Telegram, adds some fields and posts it to your webhook
Telegram hook = new Telegram();

hook.PostTelegram(users, message);