def send_photo ( self , photo : str , caption : str = None , reply : Message = None , on_success : callable = None , reply_markup : botapi . ReplyMarkup = None ) : self . twx . send_photo ( peer = self , photo = photo , caption = caption , reply = reply , reply_markup = reply_markup , on_success = on_success )
how to send a photo by python telegram bot
Send photo to this peer . : param photo : File path to photo to send . : param caption : Caption for photo : param reply : Message object or message_id to reply to . : param on_success : Callback to call when call is complete .
def send_photo(self, photo: str, caption: str=None, reply: Message=None, on_success: callable=None,
                   reply_markup: botapi.ReplyMarkup=None):
        """
        Send photo to this peer.
        :param photo: File path to photo to send.
        :param caption: Caption for photo
        :param reply: Message object or message_id to reply to.
        :param on_success: Callback to call when call is complete.

        :type reply: int or Message
        """
        self.twx.send_photo(peer=self, photo=photo, caption=caption, reply=reply, reply_markup=reply_markup,
                            on_success=on_success)