I've been dealing with this part of the code, trying to get a possitive, but being unable to get one. After a while discovered that my function "if bola in open('users.txt'):" isn't trying to identify one part of the string, since it will only give me a possitive if users.txt only contains the word "Bola". I mean, if I write " Bola" inside user.txt it will give me a false. I managed to understand the problem, but don't know how to fix it. Tried using U.find() but it didn't work either... any solution will be apreciated...
thanks in advance
U=open('users.txt','a+')
bola = "Bola"
if bola in open('users.txt'):
U.close()
print("usercid found")
else:
U.write("[" + str(cid) + "]"+str(m.from_user.first_name)+"\n")
U.close()
print("no usercid gaaaaa")