Closed immortal25ir closed 4 years ago
https://github.com/Eleirbag89/TelegramBotPHP/blob/19ee63772ff3e13c57142b04a5e71e8bf34236bc/Telegram.php#L1770
caption must be : public function Caption() { $type = $this->getUpdateType(); if ($type == self::CHANNEL_POST) { return @$this->data['channel_post']['caption']; } return @$this->data['message']['caption']; }
public function Caption() { $type = $this->getUpdateType(); if ($type == self::CHANNEL_POST) { return @$this->data['channel_post']['caption']; } return @$this->data['message']['caption']; }
Done, thank you!
https://github.com/Eleirbag89/TelegramBotPHP/blob/19ee63772ff3e13c57142b04a5e71e8bf34236bc/Telegram.php#L1770
caption must be :
public function Caption() { $type = $this->getUpdateType(); if ($type == self::CHANNEL_POST) { return @$this->data['channel_post']['caption']; } return @$this->data['message']['caption']; }