Getting A Document Details

I am trying to add a /ban command in my telegram robot using mongodb… The cmds /ban and /unban work prefectly with mongodb… But When I Try To Fetch the data(Document) which I Inserted through ban cmd is getting A KeyError… I am Working On Python And I Will Share My Codes, Inserted Document And Error Below…

How I Insert Document Through /ban cmd

How I Tries To Fetch The Document :

Hi @MoviezHood,

There are some details missing on your post, perhaps you have submitted the post too early ?
So that others could help you better, please provide:

  • Code that perform the fetch operation
  • The error that you’re encountering
  • An example document in the collection that you’re trying to retrieve


1 Like