groupID = 0 # положительный ID Вашей группы.
def deleter(id, all, cm):
vk_session.method('messages.delete', {'chat_id': id, 'delete_for_all': all, 'cmids': cm, 'group_id': groupID})
deleter(id, 1, cmds)
let actionCalculate = '-', inputCalculator = '50-5';
inputCalculator.split(actionCalculate).reduce((firstNumber, secondNumber) => {
let resultNumber;
switch (actionCalculate) {
case '+':
resultNumber = Number(firstNumber) + Number(secondNumber);
break;
case '-':
resultNumber = Number(firstNumber) - Number(secondNumber);
break;
case '*':
resultNumber = Number(firstNumber) * Number(secondNumber);
break;
case '/':
resultNumber = Number(firstNumber) / Number(secondNumber);
break;
};
return resultNumber;
});