chat_ids = [...]
for chat_id in chat_ids:
send_message(message, token, random_id, chat_id ...)
{
"type": "message_new",
"object": {
"message": {
"from_id": user_id,
"text": "Привет",
"reply_message": {
"from_id": ivan_id,
"text": "В чат менеджере",
"attachments": [],
}
},
}
user_id = data['object']['message']['from_id']
ivan_id = data['object']['message']['reply_message']['from_id']
То ли я дурак, то ли лыжи не едут
headers={'Authorization': 'Bearer SECRET_KEY',
'Accept': 'application/json',
'Content-Type': 'application/json',
}
params={'amount': {'value': 59.21,
'currency': 'RUB',
},
'comment': 'Text comment',
'expirationDateTime': '2020-04-13T14:30:00+03:00',
'customer': {},
'customFields': {},
}
params = json.dumps(params)
g = requests.put('https://api.qiwi.com/partner/bill/v1/bills/<уникальный номер счета>',
headers=headers,
data=params,
)
driver = webdriver.Chrome()
driver.find_element_by_xpath('.//li[@data-regtype="ph"]').text
if response != 'МАТЕМАТИКА' or response КАКОЙ-ТО ЗНАК 'РУССКИЙ ЯЗЫК':
if user_id==admin_id and mess_user = 'kick':