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

Class 'BotMan\BotMan\Messages\Attachments\Contact' not found #96

Closed
komarove opened this issue Oct 24, 2020 · 1 comment
Closed

Class 'BotMan\BotMan\Messages\Attachments\Contact' not found #96

komarove opened this issue Oct 24, 2020 · 1 comment

Comments

@komarove
Copy link

komarove commented Oct 24, 2020

  • BotMan Version: 2.4.1
  • PHP Version: 7.2

Description:

When I send contact to bot I got error in vendor\\botman\\driver-telegram\\src\\TelegramContactDriver.php.
There is no class BotMan\BotMan\Messages\Attachments\Contact

Steps To Reproduce:

Send contact to bot.

@filippotoso
Copy link
Contributor

I just tested this code and it works correctly.

        $this->askForContact('Please share a contact.', function ($contact) {
            $this->say(print_r($contact, true));
        });

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