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.
1 parent f7be2f2 commit 958885aCopy full SHA for 958885a
Telegram.php
@@ -2042,7 +2042,19 @@ public function messageFromGroup()
2042
2043
return true;
2044
}
2045
-
+
2046
+ /// Get the contact phone number
2047
+ /**
2048
+ * \return a String of the contact phone number.
2049
+ */
2050
+ public function getContactPhoneNumber()
2051
+ {
2052
+ if ($this->getUpdateType() == self::CONTACT) {
2053
+ return $this->data["message"]["contact"]["phone_number"];
2054
+ }
2055
+ return '';
2056
2057
2058
/// Get the title of the group chat
2059
2060
/**
0 commit comments