how can add functionality on the share button of the telegram in php bot

I’m facing a issue in the php telegram bot. In this bot i need to add some functionality like, when we open the bot and run the /start command then we received some caption or inline keyboard button. like this first image…

caption message and buttons

after that when we share this message to another user or contacts of the telegram users, using this share button (check this image for share button image)…
enter image description here.

when we click on this share button then a popup open which showing the list of telegram users from our contact list.

then we select one or more users to share this bot message to other users,

then we click on the send button after select few users to share.
enter image description here

when click on the send button then the bot message will forwarded to the selected user, but as when we share then we should get response in the bot then message was send, and after share we add some functionality that we will received some reward amount after share.

so in the php telegram bot, how i can add functionality that when i click on share and send to other users then we get some reward.

so how i can archive this functionality.

how i can add funcitonality on share button.

i try to get the inline query response, but still don’t get required functionality.

when we search and open the telegram bot then its showing a start button. as we click on this start button then its send a welcome message,

because as we click on the start button then its getting the command /start and we add functionality
that the telegram bot api received /start command and then send response the welcome message.

thus we want to get some reward or any other message or can be add or update some value in the database when we click on the share the welcome message to other contacts.

so tell me how i can add functionality on the share button.