title: Could not find the input entity for <telethon.tl.types.PeerUser object at
body: <p>I am getting the error <em>ValueError: Could not find the input entity for . Please read <a href="https://docs.telethon.dev/en/latest/concepts/entities.html" rel="noreferrer">https://docs.telethon.dev/en/latest/concepts/entities.html</a> to find out more details.</em>. This error comes from client.send_message(bot_id, 'reset').</p>
  
  <pre><code>def run_test(self,name,bot_id):
          self.start = time.time()
          api_id = 10*****
          api_hash = 'c1*********************************'
  
          with TelegramClient('anon', api_id, api_hash) as client:
              #breakpoint()
              results = {'results':[], 'start': time.asctime(time.localtime(self.start)), 'conversations': len(self.conversations['tests'])}
  
              Button(self, text='Cancel', width=20, font=("Lucinda Sans", 12),command=self.cancel(client)).pack()
  
              statusintro = 'Bot Instance ' + name +': '
              testtitle = ""
  
              self.show_output(statusintro + testtitle)
  
              if self.conversationReset is False:
                  client.send_message(bot_id, self.conversations['tests'][self.test_counter]['questions'][self.question_counter])
              else:
                  print (bot_id)                
                  client.send_message(bot_id, 'reset')
                  self.conversationReset = False
  </code></pre>