diff --git a/src/Dialog.php b/src/Dialog.php index ba867f9..11562bd 100644 --- a/src/Dialog.php +++ b/src/Dialog.php @@ -243,7 +243,8 @@ public function __serialize(): array ]; } - public function getDialogKey(): string + /** @internal This method is a subject for changes in further releases < 1.0 */ + final public function getDialogKey(): string { return implode('-', [$this->getUserId(), $this->getChatId()]); } diff --git a/src/DialogManager.php b/src/DialogManager.php index c5dd225..1bff5d4 100644 --- a/src/DialogManager.php +++ b/src/DialogManager.php @@ -92,6 +92,7 @@ private function readDialogState($key): Dialog return $this->store->get($key); } + /** @internal This method is a subject for changes in further releases < 1.0 */ private function generateDialogKey(Update $update): string { return implode('-', [$update->getMessage()->from->id, $update->getChat()->id]);