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

Problem with survey #45

Closed
camoralb opened this issue Feb 24, 2021 · 2 comments
Closed

Problem with survey #45

camoralb opened this issue Feb 24, 2021 · 2 comments

Comments

@camoralb
Copy link

Hi! I am using this template for my custom bot. I need a functionality like the /survey one, but since I am testing it only asks for the name (the first question), i write the name and then nothing happens. It is stuck there. I already h¡gave a look to the database and it is saving the conversation, but only the "state" var. I think it is not coming again from client to bot or viceversa when I write a answert. Could you help me please?

@noplanman
Copy link
Member

Hi 👋

Please make sure that you have the correct commands in your folder. In this case, you can get the ones for the conversation feature here:
https://github.com/php-telegram-bot/example-bot/tree/d29a7b266ecfa43df71db2d28ec7cb94c34b66f9/Commands/Conversation

Try to put only the SurveyCommand.php and GenericmessageCommand.php files from there in your custom commands folder.

@mertizci
Copy link

Hi 👋

Please make sure that you have the correct commands in your folder. In this case, you can get the ones for the conversation feature here: https://github.com/php-telegram-bot/example-bot/tree/d29a7b266ecfa43df71db2d28ec7cb94c34b66f9/Commands/Conversation

Try to put only the SurveyCommand.php and GenericmessageCommand.php files from there in your custom commands folder.

I tried the above changes but its not working. Testing on Php 7.4.3.

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

3 participants