def welcome(message):
a = sub + str(message.text)
sub11 = '/home/pi/Desktop/bot2.0/subs/11.txt'
sub10 = '/home/pi/Desktop/bot2.0/subs/10.txt'
sub9 = '/home/pi/Desktop/bot2.0/subs/9.txt'
sub8 = '/home/pi/Desktop/bot2.0/subs/8.txt'
global subs
subs = [line.rstrip('\n') for line in open(a, 'rt')]
if str(message.chat.id) not in subs:
id = open(subs, 'a')
id.write(str(message.chat.id) + '\n')
id.close()