wdym? Like when you should call return or what? return fully stops function from executing further, so at the end of your calculations
I have already sent two examples which one is correct.
both? they are both at the end
Good then why my function can't reply for this command?
json var isnt defined define json variable $json = $telegram->getChatMember....
Are you using a library? what is $telegram made of?
Full code here https://t.me/BotTalk/633924
oh god 🤦♀ If you want help from me You have to do what I say You can not use a variable outside of the function
Type the full code please?
you want us to create the whole library for you?
Full code for reply if admin send message
add {$json = } to the beginning like this -> https://t.me/BotTalk/634011
just send us damn error already
BTW my code can run on heroku if you have account github
There's no error just the bot didn't reply
Hmmm I checked the code it looks clean though
But didn't reply and no error message something wrong I can't know it
Simplest way would be to print all your actions into console. At least you will know at what stage your code breaks
Обсуждают сегодня