Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Как отличить #388

Open
luminatee opened this issue Jan 9, 2023 · 1 comment
Open

Как отличить #388

luminatee opened this issue Jan 9, 2023 · 1 comment

Comments

@luminatee
Copy link

luminatee commented Jan 9, 2023

//Handle text messages
$bot->on(function (\TelegramBot\Api\Types\Update $update) use ($bot) {
    $message = $update->getMessage();
    $id = $message->getChat()->getId();
    ...
});

как понять откуда пришло сообщение? в личке или в группе?

@plakhotnyuk
Copy link

Проверяй по ChatId, а юзера по UserId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants