Please Bot Php how to option /start?

Write a bot for carts, you need a referral system, the link https://t.me/бот/start=id passed aydishnik user, and at the start it turns out the message /start {ID}
Probably a stupid question, but I don't get how to get the parameter {ID}?
Write in php, using a library TelegramBot\Api
March 20th 20 at 11:45
1 answer
March 20th 20 at 11:47
Simply extract from the text of the message when this command is all. Take the message is received when the /start and cut-line the first 6 characters (the length of the "/start") and get the ID. It is possible to surely remove extra spaces, etc
So I am asking how to code the text messages :D - dewayne commented on March 20th 20 at 11:50
Did similar for PHP, are unlikely to prompt in Python there are convenient ways to access the API of the cart :p - yasmeen.Lyn commented on March 20th 20 at 11:53

Find more questions by tags PHPBotsTelegram