Skip to content

Commit

Permalink
add contact and location to markup keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
parsgit authored Feb 21, 2020
1 parent 5e0caf9 commit 79bdde0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions BotFire.php
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,18 @@ public function btn($name,$callback_data=null)

return $this;
}

public function contact($name)
{
$this->btns[]=['text'=>$name,'request_contact'=>true];
return $this;
}

public function location($name)
{
$this->btns[]=['text'=>$name,'request_location'=>true];
return $this;
}

public function get()
{
Expand Down

0 comments on commit 79bdde0

Please sign in to comment.