Telegram Chat Box Demo! arrow

wp_telegram_send_message()

Description

Returns the send Message result.

This function can be used in your themes or plugins for sending Messages simply.

 

Parameters

wp_telegram_send_message( $channel_name, $msg );
  • $channel_name (string) (Required) The Channel name(@YourChannelName) OR Channel ID(-100xxxxxxxxxx) or Group ID (-xxxxxxxxxx)
  • $msg (string) (Required) The SMS text message.

 

Example

Send Message to a channel.

$channel_name = "@YourChannelName"
$msg = "This is a test message.";
wp_telegram_send_message( $channel_name, $msg );

 

Feel free to contact!