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

Error with contacts that don't have telegram account! #115

Closed
Sajjad-Arjmand opened this issue Nov 29, 2023 · 0 comments · Fixed by Sajjad-Arjmand/driver-telegram#1 or #116
Closed

Comments

@Sajjad-Arjmand
Copy link
Contributor

  • BotMan Version: 2.8.2
  • driver-telegram version: 2.0.4
  • PHP Version: 7.3

Description:

I was testing botman using a very simple controller that only hears('{message}') and replies. it replies any kind of messages except the contacts that didn't have telegram account!

ErrorException: Undefined index: user_id in file vendor\botman\driver-telegram\src\TelegramContactDriver.php on line 54

Steps To Reproduce:

I think line 54 in TelegramContactDriver.php should be like the above lines for fixing this issue:

$this->event->get('contact')['user_id'], => $this->event->get('contact')['user_id'] ?? '',

do you agree with me?

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