You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can send "Is typing..." Action with (type()) or (typeAndWait(3)) which placed under Botter instance through $this->botter.
For example:
classSignupConversationextendsConversation {
publicfunctionstart()
{
$this->botter->typeAndWait(2); // Type and Wait for 2 seconds$this->say("What's your name?");
}
}
For other actions (like send photo, send video or..) You should use the custom request builder to send a custom request to sendChatAction.
For example:
classSignupConversationextendsConversation {
publicfunctionstart()
{
$botter->buildRequest("sendChatAction")
->chat_id($this->botter->getUserId()) // $this->botter->getUserId() returns current user chat_id
->action('upload_photo')
->send();
$this->say("What's your name?");
}
}
Hello. How can I make a reaction to an event in Conversation and is it possible? Sorry for my English
The text was updated successfully, but these errors were encountered: