Заготовка опросов

This commit is contained in:
Халимов Рустам
2026-04-07 01:01:29 +03:00
parent 02a85fc587
commit c45f4db61c
23 changed files with 824 additions and 249 deletions

View File

@@ -111,6 +111,9 @@ export interface Message {
callType?: 'voice' | 'video' | string | null;
callStatus?: 'missed' | 'completed' | 'cancelled' | 'declined' | string | null;
duration?: number | null;
pollOptions?: Array<{ Text: string; VoteCount: number }>;
pollIsMultipleChoice?: boolean;
pollIsClosed?: boolean;
}
export interface Chat {

View File

@@ -158,6 +158,18 @@ const translations = {
pinMessage: 'Закрепить',
unpinMessage: 'Открепить',
pinnedMessage: 'Закреплённое сообщение',
poll: 'Опрос',
pollTab: 'Опросы',
createPoll: 'Создать опрос',
pollQuestion: 'Вопрос',
pollQuestionPlaceholder: 'Задайте вопрос...',
pollOptions: 'Варианты ответа',
pollOption: 'Вариант',
addOption: 'Добавить вариант',
pollSettings: 'Настройки',
anonymousVoting: 'Анонимное голосование',
multipleAnswers: 'Выбор нескольких вариантов',
pollButton: 'Опрос',
forwardMessage: 'Переслать сообщение',
forward: 'Переслать',
forwardedFrom: 'Переслано от',
@@ -182,7 +194,7 @@ const translations = {
deleteChatConfirm: 'Удалить чат? Это действие нельзя отменить.',
pinChat: 'Закрепить чат',
unpinChat: 'Открепить чат',
chatCleared: 'Чат очищен',
chatCleared: 'Очищено',
typeYourStoryPlaceholder: 'Напишите историю...',
uploadMedia: 'Загрузить медиа',
chooseBackground: 'Цвет фона',
@@ -560,6 +572,18 @@ const translations = {
pinChat: 'Pin chat',
unpinChat: 'Unpin chat',
chatCleared: 'Chat cleared',
poll: 'Poll',
pollTab: 'Polls',
createPoll: 'Create Poll',
pollQuestion: 'Question',
pollQuestionPlaceholder: 'Ask a question...',
pollOptions: 'Options',
pollOption: 'Option',
addOption: 'Add Option',
pollSettings: 'Settings',
anonymousVoting: 'Anonymous Voting',
multipleAnswers: 'Multiple Answers',
pollButton: 'Poll',
groupSettings: 'Group settings',
editGroupName: 'Edit name',
addMember: 'Add member',