Add user page with profile picture, number and about. change font to Selawik.

This commit is contained in:
天クマ 2026-07-18 12:02:20 -03:00
commit cce7b74068
12 changed files with 219 additions and 29 deletions

View file

@ -102,6 +102,14 @@ export const waha = {
return request(`/api/${config.session}/chats/${chatId}/picture`);
},
async getUser(chatId) {
return request(`/api/${config.session}/contacts/${chatId}`);
},
async getUserAbout(chatId) {
return request(`/api/contacts/about?contactId=${chatId}&session=${config.session}`);
},
async readChat(chatId) {
return request('/api/sendSeen', {
method: 'POST',
@ -143,6 +151,15 @@ export const waha = {
});
},
async setStatus(text) {
return request(`/api/${config.session}/profile/status`, {
method: 'PUT',
body: JSON.stringify({
status: text
})
});
},
async sendFileMessage(chatId, file) {
const fileBase64 = await getBase64(file);
const body = {