Skip to content

Commit 958885a

Browse files
authored
Fix issue #267
1 parent f7be2f2 commit 958885a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Telegram.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,19 @@ public function messageFromGroup()
20422042

20432043
return true;
20442044
}
2045-
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+
20462058
/// Get the title of the group chat
20472059

20482060
/**

0 commit comments

Comments
 (0)