← All changes
|
includes/Core/Integration/Telegram/TelegramHandler.php
+5
-0
V3.0.2
→
3.3.1
View file →
| @@ -145,8 +145,13 @@ | ||
| 145 | 145 | $allList[$list->my_chat_member->chat->title] = (object) [ |
| 146 | 146 | 'id' => $list->my_chat_member->chat->id, |
| 147 | 147 | 'name' => $list->my_chat_member->chat->title, |
| 148 | 148 | ]; |
| 149 | + } elseif (isset($list->channel_post->chat->title, $list->channel_post->chat->id)) { | |
| 150 | + $allList[$list->channel_post->chat->title] = (object) [ | |
| 151 | + 'id' => $list->channel_post->chat->id, | |
| 152 | + 'name' => $list->channel_post->chat->title, | |
| 153 | + ]; | |
| 149 | 154 | } |
| 150 | 155 | } |
| 151 | 156 | uksort($allList, 'strnatcasecmp'); |
| 152 | 157 | |