mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-15 16:34:39 +02:00
fix(telegram): add note if content is omitted from preview page (#4210)
* fix(telegram): add note if content is omitted from preview page * lint
This commit is contained in:
parent
2e6e246759
commit
133dbf87c5
1 changed files with 7 additions and 1 deletions
|
@ -70,8 +70,14 @@ class TelegramBridge extends BridgeAbstract
|
||||||
{
|
{
|
||||||
$message = '';
|
$message = '';
|
||||||
|
|
||||||
|
$notSupported = $messageDiv->find('div.message_media_not_supported_wrap', 0);
|
||||||
|
if ($notSupported) {
|
||||||
|
// For unknown reasons, the telegram preview page omits the content of this post
|
||||||
|
$message = 'RSS-Bridge was unable to find the content of this post.<br><br>' . $notSupported->innertext;
|
||||||
|
}
|
||||||
|
|
||||||
if ($messageDiv->find('div.tgme_widget_message_forwarded_from', 0)) {
|
if ($messageDiv->find('div.tgme_widget_message_forwarded_from', 0)) {
|
||||||
$message = $messageDiv->find('div.tgme_widget_message_forwarded_from', 0)->innertext . '<br><br>';
|
$message .= $messageDiv->find('div.tgme_widget_message_forwarded_from', 0)->innertext . '<br><br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($messageDiv->find('a.tgme_widget_message_reply', 0)) {
|
if ($messageDiv->find('a.tgme_widget_message_reply', 0)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue