if (int(message.from_user.id)) in admins:
cur.execute("insert into subscriptions (id_user) values (?)",
(id_user))
Return a k sized list of elements chosen from the population with replacement. If the population is empty, raises IndexError.
i = input("Вопрос строчный?").lower()
if i == 'да':
ro = int (input("Вопрос числовой 1 "))
if ro < 10:
print ("ответ1! ")
elif ro >= 10:
print ("ответ1\n")
print ("ответ1")
elif i == 'нет':
ro = int(input("Вопрос числовой 2"))
if ro < 10:
print ("ответ2")
elif ro >= 10:
print ("ответ2\n")
print ("ответ2")
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36'}
#собрали куки
s = requests.Session()
s.get('http://color.photofuneditor.com', headers=headers)
# затем идет тот же самый код из ответа, только через сессию
r = s.post('http://color.photofuneditor.com/ceremony-vegas', data=payload, headers=headers)
Попробуйте в формате @channelusername передать