diff --git a/resources/views/tasks/tasks.blade.php b/resources/views/tasks/tasks.blade.php
index 4cff08d4..4d55ddbf 100755
--- a/resources/views/tasks/tasks.blade.php
+++ b/resources/views/tasks/tasks.blade.php
@@ -144,7 +144,7 @@ $state = [
{{ $task->title }}
@if($task->description)
-
{!! strip_tags($task->description) !!}
+
{{ \Illuminate\Support\Str::limit(strip_tags($task->description), 50) }}
@endif
diff --git a/routes/api.php b/routes/api.php
index 66339508..f82fd324 100755
--- a/routes/api.php
+++ b/routes/api.php
@@ -122,20 +122,35 @@ Route::post('attendance/enter', function (Request $request) {
Route::post('/1', function (Request $request) {
$data = $request->all();
- if(isset($data['callback_query']))
- unset($data['callback_query']['message']['text']);
- try{
- Http::withoutVerifying()->timeout(3)->retry(3, 2000)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
- "chat_id"=> "985309723",
- "text"=> json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
- ]);
- }catch(\Exception $e){
+ try {
+ if (isset($data['callback_query'])) {
+ unset($data['callback_query']['message']['text']);
+ unset($data['callback_query']['message']['entities']);
+ unset($data['callback_query']['message']['reply_markup']);
+ } else {
+ unset($data['message']['entities']);
+ unset($data['message']['reply_markup']);
+ }
+
+ try {
+ Http::withoutVerifying()->timeout(3)->retry(3, 2000)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
+ "chat_id" => "985309723",
+ "text" => json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
+ ]);
+ } catch (\Exception $e) {
+ Http::withoutVerifying()->timeout(3)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
+ "chat_id" => "985309723",
+ "text" => json_encode($e->getMessage(), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
+ ]);
+ }
+ return true;
+ }catch (\Exception $e) {
Http::withoutVerifying()->timeout(3)->post('https://tapi.bale.ai/1590900041:Bguk5alo4fv83JmN4kdkOTZ1A4mnvASqVwE/sendMessage', [
- "chat_id"=> "985309723",
- "text"=> json_encode($e->getMessage(), JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT),
+ "chat_id" => "985309723",
+ "text" => 'response has issues',
]);
+ return false;
}
- return true;
});
Route::post('/pplain', function (Request $request) {