Telegram Chat Box Demo! arrow

wp_telegram_send_photo()

Description

Returns the send Photo result.

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

 

Parameters

wp_telegram_send_photo( $channel_name, $image, $msg, $after_text = false );
  • $channel_name (string) (Required) The Channel name(@YourChannelName) OR Channel ID(-100xxxxxxxxxx) or Group ID (-xxxxxxxxxx)
  • $image (string) (Required) The image URL.
  • $msg (string) (Required) The SMS text message.
  • $after_text (bool) (Optional) Showing after text if become true.

 

Example

Send Photo message to a channel

$channel_name = "@YourChannelName"
$image = "https://wp-telegram.com/wp-content/themes/wp-telegram.com/assets/image/logo-light.png"
$msg = "This is a test message.";
$after_text = true;
wp_telegram_send_photo( $channel_name, $image, $msg, $after_text = false )

 

Feel free to contact!