From c276034a65a2d61147cd38604c18d6f00bd5c806 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 1 Apr 2023 06:15:59 -0500 Subject: [PATCH] =?UTF-8?q?WebZ=20=E2=86=92=20WebA=20(#2860)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- dev/telegraphChangelog.js | 6 +++--- src/api/gramjs/methods/bots.ts | 4 ++-- .../left/settings/passcode/SettingsPasscodeStart.tsx | 4 ++-- src/components/payment/PaymentModal.tsx | 2 +- src/config.ts | 6 +++--- src/versionNotification.txt | 2 +- webpack.config.js | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 12ff823d3..1f72a1e7b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Telegram Web Z +# Telegram Web A -This project won the first prize 🥇 at [Telegram Lightweight Client Contest](https://contest.com/javascript-web-3) and now is an official Telegram client available to anyone at [web.telegram.org/z](https://web.telegram.org/z). +This project won the first prize 🥇 at [Telegram Lightweight Client Contest](https://contest.com/javascript-web-3) and now is an official Telegram client available to anyone at [web.telegram.org/a](https://web.telegram.org/a). According to the original contest rules, it has nearly zero dependencies and is fully based on its own [Teact](https://github.com/Ajaxy/teact) framework (which re-implements React paradigm). It also uses a custom version of [GramJS](https://github.com/gram-js/gramjs) as an MTProto implementation. diff --git a/dev/telegraphChangelog.js b/dev/telegraphChangelog.js index ea94f3bd1..c04f3bfc5 100644 --- a/dev/telegraphChangelog.js +++ b/dev/telegraphChangelog.js @@ -21,7 +21,7 @@ const pageTemplate = `

Commits since ${version}

\

This list is automatically updated when a new commit pushed to the beta repo

\ \ - \ + \ \ `.trim(); @@ -41,8 +41,8 @@ updateChangelog(); async function updateTelegraph(dom) { const api = new Telegraph(); const content = domToNode(dom.window.document.body).children; - const result = await api.editPage(AUTH_TOKEN, 'WebZ-Beta-04-01', 'Telegram WebZ Beta Changelog', content, { - author_name: 'WebZ team', + const result = await api.editPage(AUTH_TOKEN, 'WebA-Beta-03-20', 'Telegram WebA Beta Changelog', content, { + author_name: 'WebA team', author_url: 'https://t.me/webztalks', }); // eslint-disable-next-line no-console diff --git a/src/api/gramjs/methods/bots.ts b/src/api/gramjs/methods/bots.ts index 43360fae8..7b43af4bf 100644 --- a/src/api/gramjs/methods/bots.ts +++ b/src/api/gramjs/methods/bots.ts @@ -184,7 +184,7 @@ export async function requestWebView({ startParam, themeParams: theme ? buildInputThemeParams(theme) : undefined, fromBotMenu: isFromBotMenu || undefined, - platform: 'webz', + platform: 'weba', ...(threadId && { topMsgId: threadId }), ...(sendAs && { sendAs: buildInputPeer(sendAs.id, sendAs.accessHash) }), })); @@ -210,7 +210,7 @@ export async function requestSimpleWebView({ url, bot: buildInputPeer(bot.id, bot.accessHash), themeParams: theme ? buildInputThemeParams(theme) : undefined, - platform: 'webz', + platform: 'weba', })); return result?.url; diff --git a/src/components/left/settings/passcode/SettingsPasscodeStart.tsx b/src/components/left/settings/passcode/SettingsPasscodeStart.tsx index 8f4e3da4c..7ad998bd1 100644 --- a/src/components/left/settings/passcode/SettingsPasscodeStart.tsx +++ b/src/components/left/settings/passcode/SettingsPasscodeStart.tsx @@ -36,10 +36,10 @@ const SettingsPasscodeStart: FC = ({

When you set up an additional passcode, a lock icon will appear on the chats page. - Tap it to lock and unlock your Telegram WebZ. + Tap it to lock and unlock your Telegram WebA.

- Note: if you forget your local passcode, you'll need to log out of Telegram WebZ and log in again. + Note: if you forget your local passcode, you'll need to log out of Telegram WebA and log in again.

diff --git a/src/components/payment/PaymentModal.tsx b/src/components/payment/PaymentModal.tsx index 1853c3ebb..62f99aaf1 100644 --- a/src/components/payment/PaymentModal.tsx +++ b/src/components/payment/PaymentModal.tsx @@ -517,7 +517,7 @@ const PaymentModal: FC = ({ onCloseAnimationEnd={handleModalClose} >

- Sorry, Telegram WebZ doesn't support payments with this provider yet.
+ Sorry, Telegram WebA doesn't support payments with this provider yet.
Please use one of our mobile apps to do this.

diff --git a/src/config.ts b/src/config.ts index 148f8ef8a..51aaf924c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,6 +1,6 @@ import type { ApiLimitType } from './global/types'; -export const APP_NAME = process.env.APP_NAME || 'Telegram WebZ'; +export const APP_NAME = process.env.APP_NAME || 'Telegram WebA'; export const APP_VERSION = process.env.APP_VERSION!; export const RELEASE_DATETIME = process.env.RELEASE_DATETIME; @@ -14,7 +14,7 @@ export const IS_TEST = process.env.APP_ENV === 'test'; export const IS_PERF = process.env.APP_ENV === 'perf'; export const IS_BETA = process.env.APP_ENV === 'staging'; -export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebZ-Beta-04-01'; +export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebA-Beta-03-20'; export const DEBUG_ALERT_MSG = 'Shoot!\nSomething went wrong, please see the error details in Dev Tools Console.'; export const DEBUG_GRAMJS = false; @@ -245,7 +245,7 @@ export const RE_TELEGRAM_LINK = /^(https?:\/\/)?telegram\.org\//i; export const TME_LINK_PREFIX = 'https://t.me/'; export const USERNAME_PURCHASE_ERROR = 'USERNAME_PURCHASE_AVAILABLE'; export const PURCHASE_USERNAME = 'auction'; -export const TME_WEB_DOMAINS = new Set(['t.me', 'web.t.me', 'k.t.me', 'z.t.me']); +export const TME_WEB_DOMAINS = new Set(['t.me', 'web.t.me', 'a.t.me', 'k.t.me', 'z.t.me']); // eslint-disable-next-line max-len export const COUNTRIES_WITH_12H_TIME_FORMAT = new Set(['AU', 'BD', 'CA', 'CO', 'EG', 'HN', 'IE', 'IN', 'JO', 'MX', 'MY', 'NI', 'NZ', 'PH', 'PK', 'SA', 'SV', 'US']); diff --git a/src/versionNotification.txt b/src/versionNotification.txt index fec65d28f..b30dd7903 100644 --- a/src/versionNotification.txt +++ b/src/versionNotification.txt @@ -1,4 +1,4 @@ -**Telegram Web Z was updated to version 1.60** +**Telegram Web A was updated to version 1.60** [🤩](customEmoji:5373026167722876724) **What’s New** diff --git a/webpack.config.js b/webpack.config.js index 6eadef3c1..33611ee07 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -28,7 +28,7 @@ const STATOSCOPE_REFERENCE_URL = 'https://webz.dev/build-stats.json'; const DEFAULT_APP_TITLE = `Telegram${APP_ENV !== 'production' ? ' Beta' : ''}`; const { - BASE_URL = 'https://web.telegram.org/z/', + BASE_URL = 'https://web.telegram.org/a/', APP_TITLE = DEFAULT_APP_TITLE, } = process.env;