@@ -2478,6 +2478,41 @@ public Objects.Message get_message_info(string chatId, string messageId)
24782478 return new Objects . Message ( JObject . Parse ( response . Content ) ) ;
24792479 }
24802480
2481+ /// <summary>
2482+ /// Allows you to get comments from a blog, THIS FUNCTION IS NOT FINISHED
2483+ /// </summary>
2484+ /// <param name="blogId"></param>
2485+ /// <param name="start"></param>
2486+ /// <param name="size"></param>
2487+ /// <param name="sorting"></param>
2488+ /// <returns></returns>
2489+ /// <exception cref="Exception"></exception>
2490+ public List < Objects . Comment > get_blog_comments ( string blogId , int start = 0 , int size = 25 , Types . Sorting_Types sorting = Types . Sorting_Types . Newest )
2491+ {
2492+ string sortingType = "" ;
2493+ switch ( sorting )
2494+ {
2495+ case Types . Sorting_Types . Newest :
2496+ sortingType = "newest" ;
2497+ break ;
2498+ case Types . Sorting_Types . Oldest :
2499+ sortingType = "oldest" ;
2500+ break ;
2501+ case Types . Sorting_Types . Top :
2502+ sortingType = "vote" ;
2503+ break ;
2504+ }
2505+ RestClient client = new RestClient ( helpers . BaseUrl ) ;
2506+ RestRequest request = new RestRequest ( $ "/g/s/blog/{ blogId } ?sort={ sortingType } &start={ size } &size={ size } ") ;
2507+ request . AddHeaders ( headers ) ;
2508+ var response = client . ExecuteGet ( request ) ;
2509+ if ( ( int ) response . StatusCode != 200 ) { throw new Exception ( response . Content ) ; }
2510+ if ( debug ) { Trace . WriteLine ( response . Content ) ; }
2511+
2512+ return null ; // FINISH LATER
2513+
2514+ }
2515+
24812516
24822517 /// <summary>
24832518 /// Sets the SubClient of the Client, not for development use
0 commit comments