klev-o / telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can i get the id of a person who enters in a channel?

TravisScottex opened this issue · comments

how can i get the id of a person who enters in a channel via an invitation link? $update->message->new_chat_members doesn't work

Added this feature in version 1.3.0 - according to the official documentation "Added the ability to process join requests that were created without an invite link. Bots will receive the 'chat_join_request' update as usual."
It follows from this that you can get the id in an advising way: $update->chat_join_request->from->id