mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: fix telegram message format
This commit is contained in:
		| @@ -66,7 +66,7 @@ class TelegramController extends Controller | |||||||
|         $obj->message_type = !isset($data['message']['reply_to_message']['text']) ? 'message' : 'reply_message'; |         $obj->message_type = !isset($data['message']['reply_to_message']['text']) ? 'message' : 'reply_message'; | ||||||
|         $obj->text = $data['message']['text']; |         $obj->text = $data['message']['text']; | ||||||
|         $obj->is_private = $data['message']['chat']['type'] === 'private'; |         $obj->is_private = $data['message']['chat']['type'] === 'private'; | ||||||
|         if ($obj->message_type === 'reply') { |         if ($obj->message_type === 'reply_message') { | ||||||
|             $obj->reply_text = $data['message']['reply_to_message']['text']; |             $obj->reply_text = $data['message']['reply_to_message']['text']; | ||||||
|         } |         } | ||||||
|         return $obj; |         return $obj; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user