You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($chat->isGroupChat() || $chat->isSuperGroup()) {
$data['reply_to_message_id'] = $message->getMessageId();
}
$data['text'] = $message_type;
Request::sendMessage($data);
// Handle new chat members
if ($message->getNewChatMembers()) {
return $this->getTelegram()->executeCommand('newchatmembers');
}
// Handle left chat members
if ($message->getLeftChatMember()) {
return $this->getTelegram()->executeCommand('leftchatmember');
}
// The chat photo was changed
if ($new_chat_photo = $message->getNewChatPhoto()) {
// Whatever..
}
// The chat title was changed
if ($new_chat_title = $message->getNewChatTitle()) {
// Whatever...
}
// A message has been pinned
if ($pinned_message = $message->getPinnedMessage()) {
// Whatever...
}
return Request::emptyResponse();
}
`
The text was updated successfully, but these errors were encountered:
my bot set privacy mode:DISABLED
Commands/Group/GenericmessageCommand.php cannot listen for messages
`
public function execute(): ServerResponse
{
$message = $this->getMessage();
$chat = $message->getChat();
$chat_id = $chat->getId();
$user_id = $message->getFrom()->getId();
$message_type = $message->getType();
$data = ['chat_id' => $chat_id];
`
The text was updated successfully, but these errors were encountered: