I am getting the error ValueError: Could not find the input entity for . Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.. This error comes from client.send_message(bot_id, 'reset').
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