I'm trying to send a message to user, who joined to a group, with my telegram bot. I add bot to the group and bot is admin in group. and I set the Group Privacy off. I get user with new_chat_member when user joined to group, but the message send to user infinitely. And the update which is for when a member join to group is pending. how I should answer the incoming update when a user join to telegram group?
I'm trying to send a message to user, who joined to a group, with my telegram bot. I add bot to the group and bot is admin in group. and I set the Group Privacy off. I get user with new_chat_member when user joined to group, but the message send to user infinitely. And the update which is for when a member join to group is pending. how I should answer the incoming update when a user join to telegram group?
if(isset($arrayMessage['message'])) { if (isset($arrayMessage['message']['new_chat_member'])) { $text= "hello"; $url= "https://api.telegram.org/bot".$token."/sendMessage?chat_id=".$chat_id."&text=".$text; file_get_contents($url); } } I'm using laravel .