From 458ebac9469e8cff805e918cf2fc84784d1f1236 Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 7 Oct 2024 15:37:11 -0400 Subject: [PATCH] Updated User --- src/TgBotLib/Objects/User.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/TgBotLib/Objects/User.php b/src/TgBotLib/Objects/User.php index 805059d..24b804b 100644 --- a/src/TgBotLib/Objects/User.php +++ b/src/TgBotLib/Objects/User.php @@ -31,6 +31,20 @@ return $this->id; } + /** + * Sets the unique identifier for this user or bot. This number may have more than 32 significant bits and some + * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 + * significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. + * + * @param int $id + * @return $this + */ + public function setId(int $id): User + { + $this->id = $id; + return $this; + } + /** * True, if this user is a bot *