Git Product home page Git Product logo

tweb's People

Contributors

alexwebarchitect avatar autoproblems avatar dependabot[bot] avatar emcifuntik avatar fromaline avatar gusarov avatar hanayashiki avatar iamfronty avatar morethanwords avatar paradigman avatar po-lan avatar richardrigutins avatar ruslan-gennadievich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tweb's Issues

[Feature Request] Add full RTL support

Hebrew, Arabic, Persian, Urdu and several others use scripts written from right to left.

This is a blog post about adjusting Spotify to support these languages:
https://engineering.atspotify.com/2019/04/15/right-to-left-the-mirror-world/

I will start testing it myself and see if I can contribute without breaking the UI completely.

Currently the most important thing is to add dir=auto to the input boxes so typing in these languages will be more coherent.

Thank you.

[BUG] When trying to check folder tab with several chats it's loading forever

Describe the bug

When trying to check folder tab with several chats it's loading forever

To Reproduce

Steps to reproduce the behavior:

  1. Go to tab with different types of chats
  2. Get an issue with loading

Expected behavior

Loading chat folders normally

Screenshots

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome 95
  • Telegram WebK 0.9.1.22

Additional context
You can also see the bug report here: https://bugs.telegram.org/c/10550

[BUG] Doesn't work anymore on old Chromium 73.0.3683.75

Describe the bug
I use old Chromium version (73.0.3683.75), because this is latest Chromium version available in my debian release (stretch).

Recently (1-2 days ago) web telegram K stopped to work in this version.

To Reproduce
Open Chromium 73.0.3683.75 (in debian stretch).
Open web.telegram.org/k (I already logged in).

Expected behavior
Normal working web client

What I see
I see nearly empty page instead: two empty panels.
And the following message in console:

Uncaught (in promise) TypeError: Failed to execute 'setActionHandler' on 'MediaSession': The provided value 'stop' is not a valid enum value of type MediaSessionAction.
    at new <anonymous> (appMediaPlaybackController.ts:74)
    at Module.137 (appMediaPlaybackController.ts:485)
    at a (bootstrap:63)

Desktop (please complete the following information):

  • OS: debian
  • Browser chromium 73.0.3683.75

webp preview is missing

image

I cannot attach webp to GitHub - I changed extension to gif, you can use this file for testing.
out

[Feature Request] Make it possible to add people to contacts without knowing their phone number

Is your feature request related to a problem? Please describe.
I cannot add people to contacts if I don't know their phone number. This is possible to do in other clients (e.g. Android client).

Describe the solution you'd like
Make it possible to add anyone to contacts if I open their profile (e.g. they send a message to me, or I can see their message in a group, etc.)

Describe alternatives you've considered
A fix for #45 added a way to add contacts by phone number. This doesn't work if you don't know the phone number.

Additional context
Currently, when viewing a profile of someone who is in the contacts, there is an "edit contact" button. When viewing a profile of someone who is not in the contacts, this button is hidden using display: none. It is possible to unhide this button using developer tools, and then use it to add this person to contacts (click it, make some changes and save). This feature request is to make it possible to do the same without resorting to hacks.

[BUG] Blank in Brave browser

It's blank on Brave. It used to work, though. I'm logged in - if that matters.

Screenshots

Telegram Web 2021-05-14 20-14-14

Desktop (please complete the following information):

  • OS: macOS Big Sur
  • Browser Brave
  • Version1.24.85 Chromium: 90.0.4430.212 (Official Build) (x86_64)

[BUG] Typing :D<ENTER> results in dress being added to a post instead of very common emoji.

Describe the bug

Typing in :D at the end of the message and hitting results in dress being added to a post.

:D is a very common emoji and having it change to a dress by default makes no sense.

To Reproduce
Steps to reproduce the behavior:

  1. Type a message
  2. Add a broad smile :D
  3. Hit an enter
  4. Dress shows up.

Expected behavior

Message should be sent with a broad smile

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Any (Windows)
  • Browser: Firefox
  • Version: Current

[BUG] Escape button on an extrenal keyboard doesn't function in Chromium OS (Edited)

Describe the bug
To exit all open chats, the Escape key on an external keyboard can be used on Windows in Chrome, but it doesn't respond / do anything in CloudReady (Chromium OS) 94.

To Reproduce
Steps to reproduce the behavior:

  1. Select a chat.
  2. Hit the Escape key on the keyboard.
  3. Nothing happens.

Expected behavior
To exit the currently open chat and return to the initial view, like shown below.

Screenshots
image

Desktop (please complete the following information):

  • OS: CloudReady 94.2 (Chromium OS)
  • Browser: Chromium 94.0.4606.105
  • Samsung NC110

[BUG] Shared phone number break the screen

Describe the bug
When click in shared phone number, the site crash and "split" the screen

To Reproduce
Steps to reproduce the behavior:

  1. Click on some shared phone number

  2. See error

Expected behavior
Tbh idk

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Win10
  • Browser: Brave
  • Version: Version 1.26.74 Chromium: 91.0.4472.124 (Official Build) (64-bit)

[BUG] Doesn't report that my account is limited

Describe the bug
Currently my telegram account is limited. I. e. I wrote people annoying messages, and they somehow reported that they see my behavior as wrong. So, now I am unable to send messages to strangers.

Unfortunately, web client K unable to correctly show this status. When I try to send a message to a stranger, I simply see clock icon near my message and nothing else. I. e. the client shows the message as "in progress". And no any kind of error message.

Compare this with "old" web client. If I send a message using old client, I see clear error message: "Sorry, you can only send messages to mutual contacts at the moment. More info »"

I can send screenshots if you want.

I use old chromium version 73.0.3683.75.

Desktop (please complete the following information):

  • OS: debian gnu/linux stretch
  • Browser chromium
  • Version 73.0.3683.75

Losing scroll position in unread chats

Describe the bug
I use groups a lot and when I leave the chat selected and use another tab and when I go back to the tab I lose the last message seen, I need to go up the chat every time to view the last message I viewed.

Desktop (please complete the following information):

  • OS: [W10]
  • Browser [Vivaldi]
  • Version [4.0]

[Feature Request] code refactor

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I'm little bit confused with codebase of telegram k. I Tried to learn it for about 3-4 days and it's really hard. All app like a big heap. Maybe i'm not so good in development, but it's really hard to understand this code. Usage of vanilla js with custom event listeners (rootScope), custom state managment, storages, a lot of promises, async logic and workers. And it's all in very long classes (1k-5k lines of code only for one class). It's unreal to keep in mind all this logic.

I'm not sure about simplicity of code maintaining. Maybe for Telegram contest it's okay but in the long term this raises questions. Most likely, new feature will lead more logic and more lines of code. And if you tried to not use React only because it take some KB of loading data, some future basic new features will inflate the codebase.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Global refactor of codebase

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

In ideal world - use just simple React. Vanilla is not the best choice for interfaces with big logic.

[BUG] Send by enter

Describe the bug
Send by enter dont work with caption

To Reproduce
Steps to reproduce the behavior:

  1. Go to a random chat (whatever)
  2. Click on "photo or video" or just make a ctrl V
  3. Add a caption
  4. See error: when you press enter to send the site just drop one line

Expected behavior
Send the message

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Brave
  • Version: 1.24.85

Additional context
image

[BUG] not able to use Input Method Engine

Describe the bug
I can't use RIME IME to type Chinese(CJK) words.

To Reproduce
Steps to reproduce the behavior:

  1. Download and Install RIME IME here: https://rime.im/download/
  2. Login to Telegram WebK
  3. Focus on a Chat text box
  4. Type Chinese(CJK) words, nothing happened.

Expected behavior
I should type CJK words by using RIME IME.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 94

Additional context
The WebK version is alpha 0.8.5

[BUG] Complete Emoji Sequences such as :joy: do not trigger emoji popover

Describe the bug
When typing emoji sequences such as :joy: 😂 or :sweat_smile: 😅, the emoji popover disappears as soon as the final : is typed, making it impossible to select 😂 without mouse input (pressing enter at :joy creates :joystick: 🕹️).

To Reproduce
Steps to reproduce the behavior:

  1. Write a new message
  2. Type :joy
  3. Observe popover
  4. Type final :, text is now :joy:
  5. Observe popover disappearing

Expected behavior
The popover should still be visible directly after the final : is typed so an exactly named emoji can be inserted.

Screenshots

Partial Emoji Sequence:
partial

Complete Emoji Sequence:
complete

Desktop (please complete the following information):

  • OS: Linux (Arch Linux)
  • Browser: Firefox 89
  • Version: WebK alpha 0.5.6

[BUG] Messages in the active chat are marked as read even when tab is not focused

Describe the bug
Messages in the currently open chat are marked as read even when the tab is not in focus. This means that also no notifications sounds are produced for the messages, since the client thinks the user has read them. The bug can be worked around by selecting a chat where no messages are expected (e.g. Saved Messages) since messages from other non-active chats still cause notifications.

To Reproduce
Steps to reproduce the behavior:

  1. Select a chat with a Friend
  2. Switch to a different tab
  3. Make your friend send you a message
  4. Observe that the message causes no notifications
  5. Observe that your friend sees that you immediately "read" the message

Expected behavior
Messages should not be marked as read and notifications should occur when the tab is not active

Screenshots
Not applicable

Desktop (please complete the following information):

  • OS: Linux (Arch Linux)
  • Browser: Firefox 89
  • Version: WebK alpha 0.5.6

[BUG] Message context menu overlapped by browser context menu

Describe the bug
In Google Chrome (and when installed as a PWA) the right-click context menu of messages in a conversation is overlapped by the browser context-menu. Therefore it is often not usable, which takes the only option to reply to a message.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any conversation.
  2. Right click on a message.
  3. In most cases the browser menu overlaps the message context menu

Expected behavior
The expected behaviour would be that the browser context menu doesn't show up at all. Probably the event is still further propagated. event.stopPropagation() or similar could fix it, but I haven't looked into the details of the code yet.

Screenshots
Screenshot 2021-10-06 102232

Desktop:

  • OS: Windows 10
  • Browser: chrome
  • Version: 94.0.4606.61 (Official Build) (64-bit)

[BUG] Cannot retrieve history from normal group to supergroup

Describe the bug
History conversation is not kept when transform to a supergroup.

To Reproduce
Steps to reproduce the behavior:

  1. Create a private chat with two people or more
  2. Send some message
  3. Check that history is set to Visible when adding new members
  4. Transform group as Supergroup (private or public) keeping history to member
  5. Check that previous message disappear

Expected behavior
Previous normal group and supergroup message should be merged as it is on Desktop or Mobile. This whenever I delete cache or application. (New fresh desktop install was able to merge both history)

Screenshots
Web :
image

Desktop :
image

Desktop :

  • OS: Windows
  • Browser Chrome
  • Version 94.0.4606.81 (Build officiel) (64 bits)

the voice note being played is not stopped when a new voice note is sent

Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce
go in private chat or group where there is a voice note
play the voice note and send a voice note, the audio of the voice note played will not be blocked

Expected behaviour
when a previous voice note is produced and I am sending a new voice note, I expect the old voice note to stop playing

Actual behaviour
play the voice note and send a voice note, the audio of the voice note played will not be blocked

Operating system
Windows 11 20H1 22000.194(Microsoft Edge) &macOS Big Sur 11.6 (20G165)

[BUG] Mediaplayer timestamps getting cropped

Describe the bug
In the full-screen media viewer, with tall videos playing, the timestamp info gets out of bounds or cropped.
To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://t.me/WSTchat/10328'
  2. Click on 'the play button.'
  3. See error

Expected behavior
The video timestamp to fit the screen.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome 96 Beta

Additional context
Perhaps, just like YouTube, the media player should have a fixed size (16:9 on a 16:9 display, etc.) rather than following the playing video's size and aspect ratio.

[BUG] some files not found

Hello

Just run npm i && npm start:

ERROR in ./src/components/sidebarRight/tabs/gifs.ts
Module not found: Error: Can't resolve '../../../lib/appManagers/appInlineBotsManager' in '/home/ruslan/Документы/tweb/src/components/sidebarRight/tabs'
 @ ./src/components/sidebarRight/tabs/gifs.ts 20:0-81 95:37-57
 @ ./src/components/emoticonsDropdown/index.ts
 @ ./src/components/chat/input.ts
 @ ./src/components/chat/chat.ts
 @ ./src/lib/appManagers/appImManager.ts
 @ ./src/lib/appManagers/appDialogsManager.ts
 @ ./src/pages/pageIm.ts
 @ ./src/index.ts

ERROR in ./src/components/chat/autocompleteHelper.ts
Module not found: Error: Can't resolve '../../helpers/dom/attachlistNavigation' in '/home/ruslan/Документы/tweb/src/components/chat'
 @ ./src/components/chat/autocompleteHelper.ts 6:0-74 21:44-64
 @ ./src/components/chat/stickersHelper.ts
 @ ./src/components/chat/input.ts
 @ ./src/components/chat/chat.ts
 @ ./src/lib/appManagers/appImManager.ts
 @ ./src/lib/appManagers/appDialogsManager.ts
 @ ./src/pages/pageIm.ts
 @ ./src/index.ts

ERROR in ./src/lib/appManagers/appImManager.ts
Module not found: Error: Can't resolve './appInlineBotsManager' in '/home/ruslan/Документы/tweb/src/lib/appManagers'
 @ ./src/lib/appManagers/appImManager.ts 28:0-58 620:69-89
 @ ./src/lib/appManagers/appDialogsManager.ts
 @ ./src/pages/pageIm.ts
 @ ./src/index.ts

ERROR in /home/ruslan/Документы/tweb/src/components/chat/autocompleteHelper.ts
./src/components/chat/autocompleteHelper.ts 7:33-73
[tsl] ERROR in /home/ruslan/Документы/tweb/src/components/chat/autocompleteHelper.ts(7,34)
      TS2307: Cannot find module '../../helpers/dom/attachlistNavigation' or its corresponding type declarations.

ERROR in /home/ruslan/Документы/tweb/src/components/chat/bubbles.ts
./src/components/chat/bubbles.ts 11:42-86
[tsl] ERROR in /home/ruslan/Документы/tweb/src/components/chat/bubbles.ts(11,43)
      TS2307: Cannot find module '../../lib/appManagers/appInlineBotsManager' or its corresponding type declarations.

ERROR in /home/ruslan/Документы/tweb/src/components/chat/chat.ts

[BUG] Pinned chats were archived and cannot unarchive it

Describe the bug
My pinned chats were archived in 'k' and cannot unarchive it. Even "Saved Messages" is archived for some reason. For other chats, "Unarchive" button appears but does nothing.

They are not archived in the 'z' version and the old Telegram web.

To Reproduce
This happened without any interaction. Last week I loaded the k version and it has stayed like this.

Expected behavior
The pinned chats should not have been archived. They are not archived in Telegram app or other web apps.

Screenshots

Tab panel

Screenshot

Full Window

Screenshot

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Vivaldi
  • 4.3.2439.39 (Stable channel) (64-bit)

Additional context
Happens in the full browser windows as well as the tab panel

[Feature Request] Support 64-bit IDs

Is your feature request related to a problem? Please describe.
For a long time, Telegram used 32-bit identifiers for users, groups and channels. After it became apparent that the available identifiers are running out, it switched to using 64-bit identifiers. Currently, all existing identifiers still fit into 32 bits, but this is not going to be the case for long.

Describe the solution you'd like
Telegram Web K should update its TL-schema to layer 133, which uses 64-bit identifiers.

Additional context
Pavel Durov's post that announces the migration to 64-bit IDs.

[BUG] Menu won't resize on small screens / items not scrollable (potential fix included)

Describe the bug
The main menu isn't scrollable and gets cropped off on small screens (high zoom).

To Reproduce
Steps to reproduce the behavior:

  1. Increase page zoom level.
  2. Click on the left menu button.
  3. Try to scroll down.
  4. See error.

Expected behavior
The menu itself to be reduced in height and the list to be scrollable.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 & 11; Chrome OS
  • Browser: Chrome
  • Version: all (92, 93, 94, 95)

Smartphone (please complete the following information):

  • Device: POCOPHONE F1
  • OS: Android 11
  • Browser Chrome
  • Version: all (current: 95)

Additional context
My own fix is this CSS snippet:

#column-left .sidebar-tools-button .btn-menu { max-height: 90vh; overflow: overlay; }
image

Video demo:
https://drive.google.com/file/d/1YHIQZKO9ZHTQQMWa38AlQePzkgBlGMFa/view?usp=sharing

[BUG] Multiline Code Blocks not sent as code blocks

Describe the bug
When sending a message containing a multiline codeblock using the triple backtick (```) syntax, the code block renders correctly in the sending client, but receiving clients (and WebK on reload of the page) don't see the message formatted as a code block (formatting sequences such as ** and __ are correctly not interpreted though, unlike WebZ).

To Reproduce
Steps to reproduce the behavior:

  1. Send a message containing a triple backtick code block
  2. Observe that the message looks correct on the sending client
  3. Observe that the message looks incorrect on the receiving client
  4. Observe that the message is also incorrect when reloading the page on the sending client

Expected behavior
Messages with code blocks should correctly be sent as such and be seen the same by all participants

Screenshots

Sent message:
sent-message

Sender-Side Appearance (before reload):
sender-appearance-before

Sender-Side Appearance (after reload):
sender-appearance-after

Receiver-Side Appearance:
receiver-appearance

Desktop (please complete the following information):

  • OS: Linux (Arch Linux)
  • Browser: Firefox 89
  • Version: WebK alpha 0.5.6

Additional context
I suspect the problem is that the message metadata for the formatting is not correctly added when sending the message, which explains why it works client-side until the page is reloaded (and the message is restored from storage)

[BUG] Right click triggers browser's context menu

Describe the bug
When right-clicking any element to trigger WebK's context menu, the browser's context menu pops up on top, making it impossible to use WebK's context menu. Upon left-clicking off the browser's menu, it disappears, thus making WebK's menu available.

To Reproduce
Steps to reproduce the behavior:

  1. Right-click on any message or chat
  2. Both WebK's and browser's context menu pop up
  3. Left-click outside browser's menu
  4. WebK's menu is available

Expected behavior
Right-clicking chats or messages trigger only WebK's context menu

Screenshots
2021-04-28-190749_screenshot_blurred
2021-04-28-190755_screenshot_blurred

Desktop:

  • OS: Linux
  • Browser: Firefox
  • Version: 88

[BUG] Selected chat's avatar images don't show up

Describe the bug
Selected channel's avatar doesn't show up in the chats list.

Expected behavior
The avatar image to be displayed alongside the channel name.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome Beta 96

Additional context
web.telegram.org-1635263655417.log

image
The avatar image html tag doesn't appear.

Of course, reloading the website fixed it.

[BUG] 2FA / Login Bug

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Set up 2FA on telegram
  2. Scan QR Code using iOS Client
  3. Incomplete will show on iOS Client
  4. See error

Expected behavior
Login to continue and prompt for 2FA

Screenshots
iosScreenshot

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser Google Chrome
  • Version Google Chrome | 88.0.4324.150 (Official Build) (64-bit)
    chrome version

Smartphone (please complete the following information):

  • Device: iPhone X
  • OS: 14.4.2
  • Telegram Client
  • 7.7

Additional context
Add any other context about the problem here.

Log from telegram:

Incomplete login attempt. Dear Francis, we detected an attempt to log into your account from a new device on 06/05/2021 at 11:51:37 UTC.

Device: Web
Location: REDACT,REDACT (IP = REDACTED)

Nobody gained access to your chats because the login was not completed. The code was entered correctly, but no correct password was given.

If this wasn't you, you can terminate the incomplete login in Settings > Devices (or Privacy & Security > Active Sessions).

Similar case when logging in using phone number:
Telegram received login code but the page just stucks
image

[BUG] application is not reproducible with custom http-only domain

Describe the bug
Application is not reproducible with custom domain. When I deploy public on server with HTTP (not https) access it won't starting.

To Reproduce
Steps to reproduce the behavior:

  1. Use node 12 (lts)
  2. run npm i && npm run build
  3. publish public folder to website without ssl support
  4. find error in devtools

Expected behavior
Runnable telegram web application

Desktop (please complete the following information):

  • Browser Chrome
  • Version 89

Additional context
Console output from devtools:

logger.ts:44 [3.129] [API-PROXY]: WORKER ERROR ErrorEvent {isTrusted: true, message: "Uncaught ReferenceError: caches is not defined", filename: "http://tgweb.local/mtproto.worker.2fda2f3995e9e0f73938.bundle.worker.js", lineno: 3, colno: 316147, …}
s.error @ logger.ts:44
(anonymous) @ mtprotoworker.ts:319
error (async)
registerWorker @ mtprotoworker.ts:318
(anonymous) @ mtprotoworker.ts:191
13 @ mtprotoworker.ts:543
r @ bootstrap:63
11 @ langPack.ts:1
r @ bootstrap:63
Promise.then (async)
(anonymous) @ index.ts:110
(anonymous) @ main.2246262129bd79d2031c.bundle.js:1
s @ main.2246262129bd79d2031c.bundle.js:1
(anonymous) @ index.ts:39

[BUG] On Vivaldi web panel, "Send by Enter" and "Send by Ctrl+Enter" both don't send messages

Describe the bug
On the regular vivaldi tab, the "Send by Enter" does work. But whiling using the webk version on a web panel, and "Send by Enter" is set, the "Enter" button creates new lines. When switching to "Send by Ctrl+Enter" as a option, "Ctrl+Enter" does nothing and "Enter" creates new lines.

Clicking the send button works.

To Reproduce
Steps to reproduce the behavior:

  1. Open Vivaldi browser,
  2. Create a web panel with "https://webk.telegram.org"
  3. Set the Keyboard setting to "Send by Enter"
  4. Try to send a message to anyone by using the "Enter Key"

Expected behavior
"Enter" key should send the message

Screenshots
Send by Enter
Screen recording

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Vivaldi
  • Version: 3.8.2259.42

Additional context
Using dark mode, animations off, autoplay media off

[Feature Request] Audio messages on Webkit (Safari & Co.)

I'm using WebKit satisfaction creating a webapp of your project, unique problem are missing audio messages.

The broweser is gnome-web of whose engine is webkit2-gtk3, I gave access permissions to the microphone but the record key does not appear
Schermata da 2021-04-26 10-27-29

[BUG] Displaying certain messages results in broken HTML

Describe the bug

When converting some messages to HTML for display, Telegram Web K may generate incorrect HTML, which results in broken UI.

To Reproduce
Steps to reproduce the behavior:

  1. View this message in Telegram Web K.
  2. See this
    screenshot
    image

When looking at the generated HTML, it contains this fragment:

<img src="assets/img/emoji/25aa.png" alt="&#9642;<a class="anchor-url" href="https://medium.com/everstake/near-protocol-contribution-to-the-development-of-the-non-fungible-token-market-8f58d3e078b7" target="_blank" rel="noopener noreferrer"onclick="showMaskedAlert(this)">&#65039;</a>" class="emoji">

That is, there is a HTML link within the value of alt attribute. This is not a valid HTML.

Expected behavior
The message should be displayed correctly (similar to t.me preview).

Desktop (please complete the following information):

  • OS: GNU/Linux
  • Browser: Firefox
  • Version: 78.12

[Feature Request] Electron-compatible and -specific features

Is your feature request related to a problem? Please describe.
Hi, I find this client of telegram really beautiful and smooth. It would be a waste if it only works in browser! I am wraping an electron version of it under: https://github.com/hanayashiki/tweb-electron It now works (mostly) nicely on my MacBook Pro. However, I find only implementing a simple wrapper is not enough.

Describe the solution you'd like
Electron is not just a browser without the URL bar.

There are numbers of differences that need to keep in mind. For example, when click on a address, it should pop up the user's browser instead of opening an electron window.

Plus, electron gives us the power to electron itself, lower network layers and OS apis, so features like MTProto proxy, Socks5 proxy, local file system access, etc, can be implemented too.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

No.

Additional context
Add any other context or screenshots about the feature request here.

No.

[BUG]

[Feature Request] Support more administrative functions

Is your feature request related to a problem? Please describe.
It is difficult to administer groups and channels using Telegram Web K, as only some of the necessary functions are supported.

Describe the solution you'd like
Telegram Web K should support the following additional functions:

  • View the status of each group member (regular member/admin/owner).
  • View the list of subscribers in a channel.
  • Delete all messages in a group, delete all messages sent by a specific user.
  • Appoint new admins and edit admins' permissions.
  • Transfer ownership of a group or a channel.
  • Kick, ban and unban users, view the list of banned users.
  • View admin log.
  • Configure discussion group for a channel.
  • Configure sticker set for a group.
  • Configure message signatures for a channel.
  • Configure slow mode.
  • View channel statistics.

Nginx reverse proxy API error: WebSocket connection to'wss://...' failed: Error during WebSocket handshake: Unexpected response code: 404

When I want to reverse proxy the website, I cannot reverse proxy the WSS:// link, and the browser prompts the following error:

WebSocket connection to 'wss://pluto.web.telegram.org/apiws' failed: Error during WebSocket handshake: Unexpected response code: 404

01

Nginx has added the following:

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';

Hope you can help me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.