I have a bot and this bot send some message to my channel with a cronjob. these messages are kind of photo, simple text, video, gif(document) and voice.
some time’s I try to send photos with below code:
$this->api->apiRequest( 'sendPhoto', array( 'chat_id' => $this->chatid, 'photo' => $this->msg_data['file_id'], 'caption' => $this->msg_text, 'reply_to_message_id' => $this->message_id, 'reply_markup' => $reply_markup, ) );
What is the problem? Why does not send some photos?