Skip to content

Commit c276034

Browse files
committed
WebZ → WebA (#2860)
1 parent d1b74ed commit c276034

8 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Telegram Web Z
1+
# Telegram Web A
22

3-
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).
3+
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).
44

55
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.
66

‎dev/telegraphChangelog.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const pageTemplate = `
2121
<h3>Commits since ${version}</h3>\
2222
<p><i>This list is automatically updated when a new commit pushed to the beta repo</i></p>\
2323
<ul id="list"></ul>\
24-
<aside><a href="https://t.me/webzchat">WebZ Discussion</a> <b>|</b> <a href="https://t.me/webzcommentsru">WebZ Обсуждение</a></aside>\
24+
<aside><a href="https://t.me/webzchat">WebA Discussion</a> <b>|</b> <a href="https://t.me/webzcommentsru">WebA Обсуждение</a></aside>\
2525
<aside><i>Last update: ${new Date().toLocaleDateString('en-CA')}</i></aside>\
2626
</body>
2727
`.trim();
@@ -41,8 +41,8 @@ updateChangelog();
4141
async function updateTelegraph(dom) {
4242
const api = new Telegraph();
4343
const content = domToNode(dom.window.document.body).children;
44-
const result = await api.editPage(AUTH_TOKEN, 'WebZ-Beta-04-01', 'Telegram WebZ Beta Changelog', content, {
45-
author_name: 'WebZ team',
44+
const result = await api.editPage(AUTH_TOKEN, 'WebA-Beta-03-20', 'Telegram WebA Beta Changelog', content, {
45+
author_name: 'WebA team',
4646
author_url: 'https://t.me/webztalks',
4747
});
4848
// eslint-disable-next-line no-console

‎src/api/gramjs/methods/bots.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export async function requestWebView({
184184
startParam,
185185
themeParams: theme ? buildInputThemeParams(theme) : undefined,
186186
fromBotMenu: isFromBotMenu || undefined,
187-
platform: 'webz',
187+
platform: 'weba',
188188
...(threadId && { topMsgId: threadId }),
189189
...(sendAs && { sendAs: buildInputPeer(sendAs.id, sendAs.accessHash) }),
190190
}));
@@ -210,7 +210,7 @@ export async function requestSimpleWebView({
210210
url,
211211
bot: buildInputPeer(bot.id, bot.accessHash),
212212
themeParams: theme ? buildInputThemeParams(theme) : undefined,
213-
platform: 'webz',
213+
platform: 'weba',
214214
}));
215215

216216
return result?.url;

‎src/components/left/settings/passcode/SettingsPasscodeStart.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ const SettingsPasscodeStart: FC<OwnProps> = ({
3636

3737
<p className="settings-item-description" dir="auto">
3838
When you set up an additional passcode, a lock icon will appear on the chats page.
39-
Tap it to lock and unlock your Telegram WebZ.
39+
Tap it to lock and unlock your Telegram WebA.
4040
</p>
4141
<p className="settings-item-description mb-3" dir="auto">
42-
Note: if you forget your local passcode, you&apos;ll need to log out of Telegram WebZ and log in again.
42+
Note: if you forget your local passcode, you&apos;ll need to log out of Telegram WebA and log in again.
4343
</p>
4444
</div>
4545

‎src/components/payment/PaymentModal.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ const PaymentModal: FC<OwnProps & StateProps & GlobalStateProps> = ({
517517
onCloseAnimationEnd={handleModalClose}
518518
>
519519
<p>
520-
Sorry, Telegram WebZ doesn&apos;t support payments with this provider yet. <br />
520+
Sorry, Telegram WebA doesn&apos;t support payments with this provider yet. <br />
521521
Please use one of our mobile apps to do this.
522522
</p>
523523
<div className="dialog-buttons mt-2">

‎src/config.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ApiLimitType } from './global/types';
22

3-
export const APP_NAME = process.env.APP_NAME || 'Telegram WebZ';
3+
export const APP_NAME = process.env.APP_NAME || 'Telegram WebA';
44
export const APP_VERSION = process.env.APP_VERSION!;
55
export const RELEASE_DATETIME = process.env.RELEASE_DATETIME;
66

@@ -14,7 +14,7 @@ export const IS_TEST = process.env.APP_ENV === 'test';
1414
export const IS_PERF = process.env.APP_ENV === 'perf';
1515
export const IS_BETA = process.env.APP_ENV === 'staging';
1616

17-
export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebZ-Beta-04-01';
17+
export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebA-Beta-03-20';
1818

1919
export const DEBUG_ALERT_MSG = 'Shoot!\nSomething went wrong, please see the error details in Dev Tools Console.';
2020
export const DEBUG_GRAMJS = false;
@@ -245,7 +245,7 @@ export const RE_TELEGRAM_LINK = /^(https?:\/\/)?telegram\.org\//i;
245245
export const TME_LINK_PREFIX = 'https://t.me/';
246246
export const USERNAME_PURCHASE_ERROR = 'USERNAME_PURCHASE_AVAILABLE';
247247
export const PURCHASE_USERNAME = 'auction';
248-
export const TME_WEB_DOMAINS = new Set(['t.me', 'web.t.me', 'k.t.me', 'z.t.me']);
248+
export const TME_WEB_DOMAINS = new Set(['t.me', 'web.t.me', 'a.t.me', 'k.t.me', 'z.t.me']);
249249

250250
// eslint-disable-next-line max-len
251251
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']);

‎src/versionNotification.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**Telegram Web Z was updated to version 1.60**
1+
**Telegram Web A was updated to version 1.60**
22

33
[🤩](customEmoji:5373026167722876724) **What’s New**
44

‎webpack.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const STATOSCOPE_REFERENCE_URL = 'https://webz.dev/build-stats.json';
2828
const DEFAULT_APP_TITLE = `Telegram${APP_ENV !== 'production' ? ' Beta' : ''}`;
2929

3030
const {
31-
BASE_URL = 'https://web.telegram.org/z/',
31+
BASE_URL = 'https://web.telegram.org/a/',
3232
APP_TITLE = DEFAULT_APP_TITLE,
3333
} = process.env;
3434

0 commit comments

Comments
 (0)