We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a985c8 + d386abf commit 784c209Copy full SHA for 784c209
src/Commands/AdminCommands/ChatsCommand.php
@@ -53,7 +53,7 @@ class ChatsCommand extends AdminCommand
53
*/
54
public function execute(): ServerResponse
55
{
56
- $message = $this->getMessage();
+ $message = $this->getMessage() ?: $this->getEditedMessage() ?: $this->getChannelPost() ?: $this->getEditedChannelPost();
57
58
$chat_id = $message->getChat()->getId();
59
$text = trim($message->getText(true));
src/Commands/AdminCommands/CleanupCommand.php
@@ -365,7 +365,7 @@ public function executeNoDb(): ServerResponse
365
366
367
368
369
$text = $message->getText(true);
370
371
// Dry run?
src/Commands/AdminCommands/DebugCommand.php
@@ -52,7 +52,7 @@ class DebugCommand extends AdminCommand
52
$pdo = DB::getPdo();
$chat = $message->getChat();
$text = strtolower($message->getText(true));
src/Commands/AdminCommands/SendtochannelCommand.php
@@ -63,7 +63,7 @@ class SendtochannelCommand extends AdminCommand
63
64
65
66
67
68
$user_id = $message->getFrom()->getId();
69
@@ -359,7 +359,7 @@ protected function publish(Message $message, $channel_id, $caption = null): stri
359
360
public function executeNoDb(): ServerResponse
361
362
363
364
if ($text === '') {
src/Commands/AdminCommands/WhoisCommand.php
@@ -60,7 +60,7 @@ class WhoisCommand extends AdminCommand
60
61
62
$command = $message->getCommand();
src/Commands/Command.php
@@ -184,7 +184,7 @@ public function preExecute(): ServerResponse
184
}
185
186
if ($this->isPrivateOnly() && $this->removeNonPrivateMessage()) {
187
188
189
if ($user = $message->getFrom()) {
190
return Request::sendMessage([
src/Commands/SystemCommand.php
@@ -53,7 +53,7 @@ public function execute(): ServerResponse
protected function executeActiveConversation(): ?ServerResponse
if ($message === null) {
return null;
@@ -84,7 +84,7 @@ protected function executeActiveConversation(): ?ServerResponse
84
85
protected function executeDeprecatedSystemCommand(): ?ServerResponse
86
87
88
89
90
src/Commands/UserCommands/StartCommand.php
@@ -47,7 +47,7 @@ class StartCommand extends UserCommand
47
48
49
50
- //$message = $this->getMessage();
+ //$message = $this->getMessage() ?: $this->getEditedMessage() ?: $this->getChannelPost() ?: $this->getEditedChannelPost();
51
//$chat_id = $message->getChat()->getId();
//$user_id = $message->getFrom()->getId();
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments