if any(map(duration_time.lower().startswith, ['s', 'с'])):
duration_timer = datetime.datetime.utcnow() + datetime.timedelta(seconds=int(duration_mute))
if any(map(duration_time.lower().startswith, ['m', 'м'])):
duration_timer = datetime.datetime.utcnow() + datetime.timedelta(minutes=int(duration_mute))
if any(map(duration_time.lower().startswith, ['h', 'ч'])):
duration_timer = datetime.datetime.utcnow() + datetime.timedelta(hours=int(duration_mute))
if any(map(duration_time.lower().startswith, ['d', 'д'])):
duration_timer = datetime.datetime.utcnow() + datetime.timedelta(days=int(duration_mute))
async function getUsername() {
const response = await window.tauri.promisified({
cmd: 'get_username'
});
const username = response.result;
console.log(username); # Проверим содержимое username.
const element = document.getElementById('greeting');
element.innerHTML = username;
}
message = await bot.send_message(chat_id='-00000000', text=f'{message.from_user.username} Находиться в меню и нажал кнопку')
message_id = message.message_id