php-telegram-cli-client icon indicating copy to clipboard operation
php-telegram-cli-client copied to clipboard

problem in getContactList()

Open GoLover opened this issue 8 years ago • 0 comments

hey dude . when i use getContactList() it's return NULL to me , i can't understand why . ! i even use your exmaple file , it's return null to

NULL
PHP Notice:  Trying to get property of non-object in /root/php-discovery-shell-master/example.php on line 13

it's point to this line var_dump($telegram->msg($contactList[0], '"Te\'st"' . "\n" . time()));

when i just have one contact in my contacts list , everything is ok, but when i have more contacts it's return null , please check script again

GoLover avatar Nov 23 '16 19:11 GoLover