Conversational Bot : Fetching news error

I am getting an error while fetching news on the telegram app. it quotes " object of type ‘NoneType’ has no len() ".
small talk is working fine but unable to fetch news .

hey @palashrai31 ,
kindly upload your repository on github and share the link here.
Will need to check the code for this .

Thank You :slightly_smiling_face:. here the code link

hey @palashrai31 ,
it need some debugging , as i dont have all of your files.
DO like this.
when you input some text from the telegram and when it reaches your fetch_news function , under this function just print parameters ( function parameter that is receives ).
On successful run , it will print a dict in command prompt running behind, have a look in that and verify that the keys are the same that you are requiring in the code.

its working now , Thank you sir!

hey @palashrai31 ,
Good to hear that .