- Create your tlg bot using @BotFather
- Press /start
- After this u'll get your's bot token
- Create chat (u must do it, because u'll get sms)
- Open your browser and input https://api.telegram.org/botXXXXXXXXXXXXXXXXXXXXXXX/getUpdates , where XXXXXXXXXXXXXXXXXXXXXXX - token, what u've got from @BotFather
- Input this token and chat id in php file
- DONE!
p.s. src: https://habr.com/ru/post/348332/