await context.loadMessagePayload({ force: true });
attachment.toString()
на выходе будет формат ВКонтакте.docker compose build && docker compose up -d
.docker compose pull && docker compose up -d
но уже только с получением образа из регистра докера в docker compose.cd /path/to && docker compose pull && docker compose up -d
const response = await fetch('https://example.com/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
operationName: 'fetchAuthor',
query: 'query fetchAuthor { author { id name } }',
variables: {},
}),
});
const data = await response.json();
// Это должно быть вне обработчика закэшировано
const myPhrasesList = new Set([
"test test test test test",
"test test test test test",
"test test test test test",
"test test test test test",
"test test test test test",
"test test test test test"
// ... 1mln length
]);
for (object of wsData) {
if (!myPhrasesList.has(object.description)) {
continue;
}
this.notification(object, object.description).then()
}
tasks {
_id
name
status
children {
_id
parentId
name
status
}
<template>
<div class="textarea">
<textarea
name="card-textarea"
id=""
cols="30"
:rows="rows"
:placeholder="placeholder"
:value="value"
@input="$emit('input', $event.target.value)"
>
</textarea>
</div>
</template>
props: {
placeholder: {
type: String,
default: ""
},
rows: {
type: Number,
default: 5
},
value: {
type: String
}
}
cmd.on(/^(?:test)$/i, async (message, bot) => {
let senderId;
// Если ответ на сообщение
if (message.hasReplyMessage) {
senderId = message.replyMessage.senderId;
// Если пересланное сообщение
} else if (message.hasForwards) {
senderId = message.forwards[0].senderId;
}
console.log('senderId', senderId)
})
await sequelize.sync({ alter: true })
this.$apollo.mutate({
mutation: gql`mutation createWrite($input: MyMutationInput!) {
createWrite(input: $input) {
write {
email
}
}
}`,
variables: {
input: {
data: {
name: data.name,
email: data.email,
title: data.title,
text: data.text,
doctor: data.doctor,
date: data.arrive,
polite: data.polite
}
}
}
})
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error(error);
});