I am using laravel 5.2 to create my telegram bot , this is my rout
Route::any('/tlgget' , 'TlgController@get') ;
I have disabled CSRF protection for this route.This is TlgController@get function :
public function get(Request $request)
{
$order = json_decode(json_encode($request->all() ));
$this->t_user_id = $order->message->from->id ;
$this->username = $order->message->from->username ;
$this->first_name = $order->message->from->first_name ;
$this->chat_id = $order->message->chat->id ;
$this->message = $order->message->text ;
$this->message_id = $order->message->message_id ;
$this->sendMessage( 'sssss' , 281222010) ;
if(isset($order->message->reply_to_message->message_id))
{
$this->reply_to_message = $order->message->reply_to_message->message_id ;
}
if( $this->registered_user = $this->user_registered())
{
return $this->analyze() ;
}
}
when I send a normal message to bot , telegram will send me a request and I can handel it in this function . but when I click on inline-keyboard , It seems this function laravel does not call this function
I dont know how to get inline-keyboard requests
via soheil yo