Sending message in telegram bot with images
You can use /sendphoto
and set the caption
which appears under an image.
https://core.telegram.org/bots/api#sendphoto
How can I send image with text using telegram bot API?
use caption parameter in sendPhoto method
telegram_msg = requests.get('https://api.telegram.org/bot<botAPI>/sendPhoto?chat_id=<chat_id>&caption=some text')
How to send a photo with .webp extension via telegram bot
You have to specify the proper path of the file.
photo_url <- "https://www.gstatic.com/webp/gallery/1.webp"
bot.send_photo(message.chat.id, photo=photo_url)
Related Topics
Extension Mysqli Is Missing, Phpmyadmin Doesn't Work
Php Curl Required Only to Send and Not Wait for Response
How to Add Auto Numbering With Each Fetching Row
How to Edit Specific Json Key Values Using PHP
Display Text(Html) Saved in Database Using Ckeditor
How to Convert Jquery Ajax Success Data to a PHP Variable
Get Woocommerce Carts Total Amount
How to Combine Two Strings Together in PHP
Grabbing the Href Attribute of an a Element
Getting a File to Download Instead of Opening the Browser
Passing an Array to a Query Using a Where Clause
Laravel Eloquent How to Get the Minimum Value That Is Not Null
Patch and Put Request Does Not Working With Form-Data
How to Get the Values of Input Using PHP
How to Sends Two Values in Select Dropdown Using PHP
How to Prevent Multiple Inserts When Submitting a Form in PHP