print_r($time);
var_dump(in_array('16:25', $time));
var_dump(in_array('16:26', $time));
Array ( [0] => 16:25 [1] => 16:26 )
bool(true)
bool(false)
try:
vk.messages.send(
user_id = event.user_id,
random_id = random.randint(111111,999999999),
message = 'Привет'
)
except vk_api.Captcha as e:
print(e.url) #картинка с капчей
print(e.sid) #sid капчи для отправки ответа
captcha_fp = open(e.url, 'rb')
client = AnticaptchaClient(api_key)
task = ImageToTextTask(captcha_fp)
job = client.createTask(task)
job.join()
print(job.get_captcha_text())